html,
body,
#app {
  height: 100%;
}

:root {
  --lulu-color-bg: #f5f7fa;
  --lulu-color-bg-elevated: #ffffff;
  --lulu-color-bg-soft: #eef4fb;
  --lulu-color-bg-muted: #e3eaf2;
  --lulu-color-surface: #ffffff;
  --lulu-color-surface-raised: #fbfcfd;
  --lulu-color-surface-selected: #e8f4f2;
  --lulu-color-border: #d7e0e6;
  --lulu-color-border-strong: #b8c7d1;
  --lulu-color-text: #17232b;
  --lulu-color-text-soft: #334650;
  --lulu-color-muted: #647680;
  --lulu-color-primary: #2563eb;
  --lulu-color-primary-hover: #1d4ed8;
  --lulu-color-primary-soft: #e4efff;
  --lulu-color-accent: #ff5a6d;
  --lulu-color-success: #237347;
  --lulu-color-danger: #b93535;
  --lulu-color-danger-soft: #fff0f0;
  --lulu-color-warning: #9a6a18;
  --lulu-color-own-message: #dbeafe;
  --lulu-color-peer-message: #ffffff;
  --lulu-font-family: Inter, "Segoe UI", Arial, sans-serif;
  --lulu-font-size-xs: 12px;
  --lulu-font-size-sm: 13px;
  --lulu-font-size-base: 14px;
  --lulu-font-size-md: 16px;
  --lulu-font-size-lg: 18px;
  --lulu-font-size-xl: 22px;
  --lulu-font-size-2xl: 28px;
  --lulu-line-height-tight: 1.25;
  --lulu-line-height-base: 1.5;
  --lulu-font-weight-regular: 400;
  --lulu-font-weight-medium: 600;
  --lulu-font-weight-bold: 750;
  --lulu-space-1: 4px;
  --lulu-space-2: 8px;
  --lulu-space-3: 12px;
  --lulu-space-4: 16px;
  --lulu-space-5: 20px;
  --lulu-space-6: 24px;
  --lulu-space-7: 32px;
  --lulu-space-8: 40px;
  --lulu-radius-xs: 4px;
  --lulu-radius-sm: 6px;
  --lulu-radius-md: 8px;
  --lulu-radius-lg: 10px;
  --lulu-radius-xl: 14px;
  --lulu-radius-pill: 999px;
  --lulu-radius-circle: 50%;
  --lulu-shadow-sm: 0 1px 2px rgb(23 35 43 / 6%);
  --lulu-shadow-md: 0 12px 28px rgb(23 35 43 / 12%);
  --lulu-shadow-lg: 0 24px 60px rgb(23 35 43 / 16%);
  --lulu-shadow-focus: 0 0 0 3px rgb(37 99 235 / 18%);
  --lulu-button-height: 38px;
  --lulu-input-height: 40px;
  --lulu-avatar-sm: 28px;
  --lulu-avatar-md: 40px;
  --lulu-avatar-lg: 76px;
  --lulu-card-padding: 16px;
  color: var(--lulu-color-text);
  background: var(--lulu-color-bg);
  font-family: var(--lulu-font-family);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.page-pull-refresh-shell {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.page-pull-refresh-indicator {
  color: #12335f;
  font-size: 13px;
  font-weight: 750;
  height: 0;
  line-height: 28px;
  opacity: 0;
  overflow: hidden;
  text-align: center;
  transform: translateY(-8px);
  transition: height 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.page-pull-refresh-indicator.active {
  height: min(var(--pull-distance, 44px), 64px);
  opacity: 1;
  transform: translateY(0);
}

.chat-detail-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.message-search-panel,
.conversation-profile-panel {
  align-self: center;
  background: #ffffff;
  border: 1px solid #d9e4f2;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(7, 29, 73, 0.08);
  margin: 24px;
  max-width: 680px;
  padding: 18px;
  width: min(100% - 32px, 680px);
}

.conversation-profile-panel {
  max-height: calc(100% - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.chat-panel-header,
.conversation-profile-hero {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.chat-panel-header h3,
.conversation-profile-hero strong {
  color: #071d49;
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}

.chat-panel-header small,
.conversation-profile-hero small {
  color: #5d6f7d;
  display: block;
  margin-top: 2px;
}

.chat-panel-search {
  align-items: center;
  background: #eef4fb;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 12px;
}

.chat-panel-search input {
  background: transparent;
  border: 0;
  min-height: 42px;
  outline: 0;
}

.message-search-form {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 14px;
}

.chat-panel-empty {
  background: #f3f7fc;
  border: 1px dashed #c9d8ea;
  border-radius: 12px;
  color: #526675;
  padding: 18px;
  text-align: center;
}

.message-search-results {
  display: grid;
  gap: 8px;
}

.message-search-results button,
.conversation-profile-list > div {
  background: #f8fbff;
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  color: #0f1f2e;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.message-search-results mark {
  background: #dbeafe;
  border-radius: 4px;
  color: #0b3b85;
  padding: 0 2px;
}

.conversation-profile-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.conversation-profile-list span,
.message-search-results small {
  color: #667085;
}

.profile-edit-style-page {
  margin: 0 auto;
  max-width: 560px;
  padding: 18px 18px 72px;
}

.profile-edit-avatar {
  align-items: center;
  display: grid;
  justify-items: center;
  margin: 14px 0 22px;
}

.profile-edit-avatar .avatar-large {
  align-items: center;
  background: #e9f1fc;
  color: #2563eb;
  display: inline-flex;
  height: 112px;
  justify-content: center;
  width: 112px;
}

.profile-edit-avatar button {
  background: transparent;
  border: 0;
  color: #2563eb;
  font-size: 17px;
  font-weight: 760;
  margin-top: 10px;
}

.profile-edit-fields,
.profile-edit-group {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-edit-field,
.profile-edit-row,
.profile-delete-entry {
  background: #ffffff;
  border: 0;
  border-radius: 12px;
  color: #0f1f2e;
  display: grid;
  padding: 14px 18px;
  text-align: left;
  width: 100%;
}

.profile-edit-field small {
  color: #667085;
  font-size: 13px;
  margin-top: 8px;
}

.profile-edit-row {
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
}

.profile-edit-row:first-child {
  border-radius: 12px 12px 0 0;
}

.profile-edit-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 12px 12px;
}

.profile-edit-row strong {
  color: #667085;
  font-weight: 650;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-delete-entry {
  color: #ef4444;
  font-size: 17px;
  font-weight: 760;
  text-align: center;
}

.about-brand-card-centered {
  align-items: center;
  display: grid;
  justify-items: center;
  margin-top: 18px;
  text-align: center;
}

.about-brand-card-centered img {
  height: 88px;
  width: 88px;
}

.about-brand-card-centered strong {
  font-size: 28px;
  margin-top: 12px;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

button {
  border: 1px solid #c8d0d8;
  border-radius: 8px;
  background: #ffffff;
  color: #1d2730;
  cursor: pointer;
  min-height: 36px;
  padding: 0 12px;
}

button.primary {
  background: #176b87;
  border-color: #176b87;
  color: #ffffff;
}

button.danger {
  border-color: #c23b3b;
  color: #a22d2d;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input,
textarea {
  border: 1px solid #c8d0d8;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

select {
  border: 1px solid #c8d0d8;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.app-shell {
  height: 100%;
  min-height: 100%;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel,
.panel {
  background: #ffffff;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
}

.login-panel {
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-panel h1,
.panel h2 {
  font-size: 22px;
  margin: 0 0 18px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field-label {
  color: #56626d;
  font-size: 13px;
  font-weight: 600;
}

.login-account-id-control {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 40px;
  margin-top: 6px;
}

.login-account-id-control input {
  margin-top: 0;
}

.login-account-history-toggle {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  min-width: 40px;
  padding: 0;
}

.chevron-down-svg {
  display: block;
}

.login-account-history {
  background: #f7f9fc;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.login-account-history-row {
  align-items: center;
  border-bottom: 1px solid #e4e9f2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.login-account-history-select,
.login-account-history-delete,
.login-account-history-clear {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 40px;
}

.login-account-history-select {
  color: #101828;
  font-weight: 650;
  justify-content: start;
  text-align: left;
}

.login-account-history-delete,
.login-account-history-clear {
  color: #667085;
}

.login-account-history-clear {
  border-top: 1px solid #e4e9f2;
}

.auth-inline-error,
.login-password-field-error,
.login-password-status {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.auth-inline-error,
.login-password-field-error,
.login-password-status {
  background: #fff4f3;
  border: 1px solid #f4b8b2;
  color: #a3291d;
}

.login-password-field-error[hidden],
.login-password-status[hidden] {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  background: #17252d;
  color: #ffffff;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  align-items: center;
  background: transparent;
  border-color: transparent;
  color: #d7e4ea;
  display: flex;
  gap: 10px;
  min-height: 42px;
  text-align: left;
}

.nav button.active {
  background: #ffffff;
  color: #20333c;
}

.nav-separator {
  border-top: 1px solid rgb(255 255 255 / 16%);
  margin: 10px 0;
}

.nav-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  width: 24px;
}

.nav-svg {
  display: block;
  height: 22px;
  width: 22px;
}

.nav-label {
  font-weight: 650;
}

.content {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  min-height: 0;
  padding: 24px;
}

.page-content {
  overflow: auto;
}

.group-center-content {
  overflow: hidden;
}

.chat-content {
  overflow: hidden;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.topbar h1 {
  font-size: 28px;
  margin: 0 0 4px;
}

.topbar .actions {
  align-items: center;
  margin-top: 0;
}

.current-account {
  align-items: flex-end;
  color: #526371;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.25;
  margin-right: 4px;
  min-width: 96px;
}

.current-account strong {
  color: #1d2a34;
  font-size: 14px;
}

.current-account-label {
  color: #7b8b97;
}

.demo-banner {
  align-items: center;
  background: #fff7df;
  border: 1px solid #e1c56d;
  border-radius: 8px;
  color: #4f3d0b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.demo-banner strong {
  font-size: 15px;
}

.demo-banner span {
  font-size: 14px;
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stack {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid #d9e0e6;
  border-radius: 6px;
  padding: 12px;
}

.compact-user-card {
  display: grid;
  gap: 8px;
}

.contact-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-tabs button {
  background: #ffffff;
  border-color: #d9e0e6;
}

.contact-tabs button.active {
  background: #176b87;
  border-color: #176b87;
  color: #ffffff;
}

.compact-disclosure {
  display: grid;
  gap: 10px;
}

.compact-disclosure > summary {
  cursor: pointer;
  font-weight: 750;
  list-style-position: inside;
}

.compact-disclosure[open] > summary {
  margin-bottom: 8px;
}

.contact-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  min-height: 0;
}

.contact-directory,
.contact-detail {
  min-height: 0;
}

.contact-directory .list {
  max-height: min(58vh, 620px);
  overflow-y: auto;
  padding-right: 4px;
}

.contact-card {
  display: grid;
  gap: 8px;
}

.contact-card.selected {
  border-color: #176b87;
  box-shadow: inset 3px 0 0 #176b87;
}

.contact-card-main {
  background: transparent;
  border: 0;
  display: grid;
  gap: 6px;
  min-height: auto;
  padding: 0;
  text-align: left;
}

.contact-remark-form {
  margin-top: 16px;
}

.contact-picker {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.contact-checkbox {
  align-items: center;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: 8px;
}

.contact-checkbox.disabled {
  opacity: 0.55;
}

.contact-checkbox input {
  width: auto;
}

.contact-checkbox .avatar {
  margin-right: 0;
}

.contact-checkbox strong,
.contact-checkbox small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-profile dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.contact-profile dl div {
  display: grid;
  gap: 2px;
}

.contact-profile dt {
  color: #60717d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-profile dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.item-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.item-meta,
.status {
  color: #60717d;
  font-size: 14px;
}

.success {
  color: #237347;
  min-height: 20px;
}

.muted {
  color: #60717d;
}

.avatar {
  align-items: center;
  background: #dfe8ec;
  border-radius: 50%;
  display: inline-flex;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  margin-right: 10px;
  overflow: hidden;
  vertical-align: middle;
  width: 40px;
}

.avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.avatar-large {
  height: 72px;
  width: 72px;
}

.avatar-upload {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-upload small {
  color: #60717d;
  width: 100%;
}

.display-user {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.display-user > div {
  min-width: 0;
}

.message-sender {
  align-items: center;
  color: #56626d;
  display: flex;
  font-size: 12px;
  gap: 6px;
  margin-bottom: 4px;
}

.message-sender .avatar {
  height: 22px;
  min-width: 22px;
  width: 22px;
}

.message-sender small,
.member-item small {
  color: #6a7680;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.actions.subdued {
  border-top: 1px solid #e3e8ec;
  margin-top: 8px;
  padding-top: 8px;
}

.discovery-search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.me-profile,
.settings-list {
  display: grid;
  gap: 14px;
}

.error {
  color: #a22d2d;
  min-height: 20px;
}

.toast-stack {
  display: grid;
  gap: 8px;
  left: 50%;
  margin: 0;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  transform: translateX(-50%);
  width: max-content;
  z-index: 1000;
}

.toast {
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  padding: 10px 12px;
}

.toast.success {
  background: #edf8f1;
  border-color: #a9d8ba;
  color: #237347;
}

.toast.error,
.error-view {
  background: #fff2f2;
  border-color: #e4b6b6;
  color: #a22d2d;
}

.error-view {
  border: 1px solid #e4b6b6;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 12px;
}

.error-view h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.error-view p {
  margin: 0;
}

.skeleton-list {
  display: grid;
  gap: 10px;
}

.skeleton-row {
  background: linear-gradient(90deg, #e6ebef, #f5f7f8, #e6ebef);
  background-size: 200% 100%;
  border-radius: 6px;
  height: 48px;
  animation: skeleton-pulse 1.3s ease-in-out infinite;
}

.list-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 140px;
  margin-bottom: 12px;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.modal-backdrop {
  align-items: center;
  background: rgb(24 32 38 / 45%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 20;
}

.modal {
  background: #ffffff;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  max-width: 380px;
  padding: 18px;
  width: 100%;
}

.modal h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.modal p {
  margin: 0;
}

.field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.metric {
  border: 1px solid #d9e0e6;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.metric strong {
  font-size: 22px;
}

.metric span {
  color: #60717d;
  font-size: 13px;
}

.full-span {
  grid-column: 1 / -1;
}

.loading {
  opacity: 0.75;
  pointer-events: none;
}

.chat-mvp {
  border: 1px solid #d9e0e6;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 240px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chat-list,
.chat-main,
.group-members {
  background: #ffffff;
  min-width: 0;
}

.chat-list {
  border-right: 1px solid #d9e0e6;
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-list-items {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-list-item {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e4e9ee;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 86px;
  padding: 12px;
  text-align: left;
}

.chat-list-item.selected {
  background: #eaf4f7;
}

.chat-list-title,
.chat-list-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-avatar {
  align-items: center;
  background: #dfe8ec;
  border-radius: 50%;
  color: #176b87;
  display: inline-flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.chat-list-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.chat-list-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-list-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.chat-list-title {
  font-weight: 700;
}

.chat-list-type,
.chat-list-time,
.chat-list-state,
.message-meta,
.chat-header p,
.member-item small {
  color: #60717d;
  font-size: 13px;
}

.unread-badge {
  align-items: center;
  background: #d54848;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 7px;
}

.chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: visible;
}

.chat-main-management {
  grid-template-rows: minmax(0, 1fr);
}

.chat-header {
  align-items: center;
  border-bottom: 1px solid #d9e0e6;
  display: flex;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
}

.chat-header h2 {
  font-size: 18px;
  margin: 0;
}

.chat-header p {
  margin: 4px 0 0;
}

.chat-back {
  display: none;
}

.chat-timeline {
  align-content: start;
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  position: relative;
}

.chat-timeline.empty {
  place-items: center;
}

.chat-default-empty {
  align-items: center;
  color: var(--lulu-color-muted);
  display: grid;
  gap: var(--lulu-space-3);
  justify-items: center;
  max-width: 360px;
  text-align: center;
}

.chat-default-empty .empty-icon {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-circle);
  box-shadow: var(--lulu-shadow-sm);
  display: inline-flex;
  font-size: 24px;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.chat-default-empty strong {
  color: var(--lulu-color-text);
  font-size: var(--lulu-font-size-lg);
}

.chat-default-empty p {
  margin: 0;
}

.chat-empty-actions {
  display: flex;
  gap: var(--lulu-space-2);
}

.chat-empty-actions a {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-text);
  font-weight: var(--lulu-font-weight-bold);
  padding: 8px 12px;
  text-decoration: none;
}

.chat-sync-state {
  display: flex;
  gap: 8px;
  min-height: 18px;
}

.chat-sync-state span {
  background: #edf4f7;
  border: 1px solid #cbdce3;
  border-radius: 999px;
  color: #46616d;
  font-size: 12px;
  padding: 2px 8px;
}

.load-older {
  justify-self: center;
}

.new-message-jump {
  align-self: end;
  background: #176b87;
  border-color: #176b87;
  bottom: 12px;
  color: #ffffff;
  justify-self: center;
  position: sticky;
  z-index: 2;
}

.message-stack {
  display: grid;
  gap: 10px;
}

.unread-divider {
  align-items: center;
  color: #b93636;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  grid-template-columns: 1fr auto 1fr;
  margin: 6px 0;
}

.unread-divider::before,
.unread-divider::after {
  background: #efb5b5;
  content: "";
  height: 1px;
}

.message-bubble {
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-width: min(78%, 560px);
  padding: 10px 12px;
  position: relative;
}

.message-bubble.own {
  background: #e9f5ef;
  justify-self: end;
}

.message-bubble.peer {
  background: #ffffff;
  justify-self: start;
}

.message-bubble:has(.image-message-card),
.message-bubble:has(.file-message-card) {
  padding: 6px;
}

.message-bubble:has(.image-message-card) {
  background: transparent;
  border-color: transparent;
  max-width: min(72%, 380px);
}

.message-bubble.optimistic {
  opacity: 0.78;
}

.message-body {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-meta,
.message-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.message-meta {
  color: #6a7882;
  font-size: 12px;
}

.message-system {
  align-self: center;
  background: #eef2f5;
  border-radius: 999px;
  color: #64727d;
  font-size: 12px;
  justify-self: center;
  padding: 5px 10px;
}

.message-actions.inline:empty {
  display: none;
}

.message-action-menu {
  opacity: 0;
  position: absolute;
  right: 6px;
  top: 6px;
  transition: opacity 120ms ease;
  z-index: 2;
}

.message-bubble.peer .message-action-menu {
  left: 6px;
  right: auto;
}

.message-bubble:hover .message-action-menu,
.message-bubble:focus-within .message-action-menu,
.message-action-menu[open] {
  opacity: 1;
}

.message-action-menu summary {
  align-items: center;
  background: rgb(255 255 255 / 88%);
  border: 1px solid #d6e0e6;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  list-style: none;
  width: 32px;
}

.message-action-menu summary::-webkit-details-marker {
  display: none;
}

.message-action-popover {
  background: #ffffff;
  border: 1px solid #d6e0e6;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgb(29 43 52 / 16%);
  display: grid;
  gap: 2px;
  margin-top: 4px;
  min-width: 112px;
  padding: 4px;
}

.message-action-popover button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #26343d;
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
}

.message-action-popover button:hover {
  background: #eef5f2;
}

.message-action-trigger {
  opacity: 0;
  position: absolute;
  right: 6px;
  top: 6px;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 2;
}

.message-bubble.peer .message-action-trigger {
  left: 6px;
  right: auto;
}

.message-bubble:hover .message-action-trigger,
.message-bubble:focus-within .message-action-trigger {
  opacity: 1;
}

.message-action-sheet-backdrop {
  background: rgb(23 35 43 / 28%);
  display: grid;
  inset: 0;
  padding: 12px;
  place-items: end center;
  position: fixed;
  z-index: 70;
}

.message-action-sheet {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-xl) var(--lulu-radius-xl) var(--lulu-radius-lg) var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-lg);
  display: grid;
  gap: 10px;
  max-width: 430px;
  padding: 12px;
  width: 100%;
}

.message-action-selected {
  background: var(--lulu-color-bg-soft);
  border-radius: var(--lulu-radius-lg);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.message-action-selected span,
.message-action-sheet button small,
.message-action-empty {
  color: var(--lulu-color-text-muted);
  font-size: 12px;
}

.message-action-selected strong {
  color: var(--lulu-color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-action-sheet-list {
  display: grid;
  gap: 4px;
}

.message-action-sheet button {
  background: transparent;
  border: 0;
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
}

.message-action-sheet button:hover:not(:disabled),
.message-action-sheet button:focus-visible {
  background: var(--lulu-color-bg-soft);
}

.message-action-sheet button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.message-action-future {
  border-top: 1px solid var(--lulu-color-border);
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
}

.message-action-cancel {
  background: var(--lulu-color-bg-soft) !important;
  text-align: center !important;
}

.message-composer {
  border-top: 1px solid #d9e0e6;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 12px;
}

.message-composer textarea {
  max-height: 120px;
  min-height: 44px;
  resize: none;
}

.attachment-picker {
  align-items: center;
  border: 1px solid #c8d0d8;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  min-height: 44px;
  padding: 0;
}

.attachment-file-input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.attachment-action-backdrop {
  background: rgb(10 18 28 / 30%);
  display: grid;
  inset: 0;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  place-items: end center;
  position: fixed;
  z-index: 65;
}

.attachment-action-sheet {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 18px 44px rgb(8 29 73 / 20%);
  display: grid;
  gap: 12px;
  padding: 10px 14px 14px;
  width: min(420px, 100%);
}

.attachment-sheet-handle {
  background: #d5dde8;
  border-radius: 999px;
  height: 4px;
  justify-self: center;
  width: 42px;
}

.attachment-action-sheet header {
  display: grid;
  gap: 3px;
}

.attachment-action-sheet header small,
.attachment-action-row small {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
  line-height: 1.35;
}

.attachment-action-row {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 64px;
  padding: 10px 12px;
  text-align: left;
}

.attachment-action-row span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.attachment-action-icon {
  align-items: center;
  background: #eef4ff;
  border-radius: var(--lulu-radius-md);
  color: #071d49;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.attachment-action-cancel {
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
  min-height: 44px;
  width: 100%;
}

.pending-attachment-card {
  align-items: center;
  border: 1px solid #cbdce3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  padding: 8px;
}

.pending-attachment-card img,
.pending-file-icon {
  align-items: center;
  background: #edf4f7;
  border-radius: 6px;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  object-fit: cover;
  width: 52px;
}

.pending-attachment-card strong,
.pending-attachment-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-attachment-card span,
.message-body.rich.file span {
  color: #60717d;
  font-size: 13px;
}

.image-message-card {
  display: grid;
  gap: 6px;
}

.image-preview-button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.image-preview-button img {
  border-radius: 8px;
  display: block;
  max-height: min(46vh, 420px);
  max-width: min(360px, 100%);
  object-fit: contain;
  width: auto;
}

.image-message-card .attachment-caption {
  background: #ffffff;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 7px 9px;
}

.message-body.rich audio,
.message-body.rich video {
  max-width: 100%;
}

.message-body.rich p,
.attachment-caption {
  margin: 6px 0 0;
}

.file-message-card {
  display: grid;
  gap: 6px;
}

.file-card-shell {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
}

.file-card {
  align-items: center;
  background: #f8fafb;
  border: 1px solid #d8e2e8;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 8px 10px;
  text-align: left;
  width: min(320px, 100%);
}

.file-card-shell .file-card {
  width: 100%;
}

.file-card:hover,
.image-preview-button:hover {
  border-color: #176b87;
}

.file-type-icon {
  align-items: center;
  background: #e8eef2;
  border-radius: 8px;
  color: #42515b;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.file-type-icon.pdf {
  background: #ffe9e9;
  color: #b32d2d;
}

.file-card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.file-card-main strong,
.file-card-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-action {
  align-items: center;
  background: #e7f1ee;
  border-radius: 999px;
  color: #176b87;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.attachment-unavailable {
  color: #a22d2d;
  font-size: 13px;
}

.image-retry {
  background: #fff6f6;
  border-color: #e4b6b6;
}

.attachment-preview-backdrop {
  align-items: center;
  background: rgb(14 20 24 / 70%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 30;
}

.attachment-preview-panel {
  display: grid;
  gap: 10px;
  max-height: 92vh;
  max-width: 92vw;
}

.attachment-preview-panel img {
  background: #101820;
  border-radius: 8px;
  max-height: 86vh;
  max-width: 92vw;
  object-fit: contain;
}

.attachment-preview-close {
  justify-self: end;
}

.message-composer.disabled {
  color: #60717d;
}

.group-members {
  border-left: 1px solid #d9e0e6;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.group-members h3 {
  margin: 0;
}

.member-list {
  display: grid;
  gap: 8px;
}

.member-tool-panel {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-2);
  margin: var(--lulu-space-3) var(--lulu-space-3) 0;
  padding: var(--lulu-space-3);
}

.member-tool-panel strong,
.member-tool-panel span,
.member-tool-panel small {
  display: block;
}

.member-tool-panel label {
  display: grid;
  gap: 6px;
}

.member-tool-panel button {
  justify-self: start;
}

.member-item {
  border: 1px solid #e4e9ee;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.member-item span {
  overflow-wrap: anywhere;
}

.member-form {
  display: grid;
  gap: 8px;
}

/* BB CHAT Design System v1 product component layer. */
body {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 76%), rgb(244 246 248 / 96%)),
    var(--lulu-color-bg);
  color: var(--lulu-color-text);
  font-size: var(--lulu-font-size-base);
  line-height: var(--lulu-line-height-base);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text-soft);
  display: inline-flex;
  font-weight: var(--lulu-font-weight-medium);
  justify-content: center;
  min-height: var(--lulu-button-height);
  padding: 0 var(--lulu-space-3);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

button:hover:not(:disabled) {
  background: var(--lulu-color-bg-soft);
  border-color: var(--lulu-color-border-strong);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.attachment-picker:focus-within {
  box-shadow: var(--lulu-shadow-focus);
  outline: 0;
}

button.primary {
  background: var(--lulu-color-primary);
  border-color: var(--lulu-color-primary);
  color: #ffffff;
}

button.primary:hover:not(:disabled) {
  background: var(--lulu-color-primary-hover);
  border-color: var(--lulu-color-primary-hover);
}

button.danger {
  background: var(--lulu-color-danger-soft);
  border-color: rgb(185 53 53 / 30%);
  color: var(--lulu-color-danger);
}

input,
textarea,
select {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  min-height: var(--lulu-input-height);
  padding: var(--lulu-space-2) var(--lulu-space-3);
}

textarea {
  line-height: var(--lulu-line-height-base);
}

.login-panel,
.panel,
.item,
.chat-mvp {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
}

.panel {
  padding: var(--lulu-card-padding);
}

.login-panel h1,
.panel h2,
.chat-header h2,
.group-members h3 {
  color: var(--lulu-color-text);
  font-weight: var(--lulu-font-weight-bold);
  letter-spacing: 0;
  line-height: var(--lulu-line-height-tight);
}

.layout {
  background: var(--lulu-color-bg);
}

.sidebar {
  background: #15282d;
  border-right: 1px solid rgb(255 255 255 / 8%);
  color: #ffffff;
  padding: var(--lulu-space-5);
}

.brand {
  align-items: center;
  display: flex;
  font-size: var(--lulu-font-size-xl);
  gap: var(--lulu-space-2);
  letter-spacing: 0;
}

.brand::before,
.login-panel h1::before {
  background-image: url("./assets/bb-chat-icon.svg?v=v82-557eec24448872cc");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 28px;
  margin-right: var(--lulu-space-2);
  width: 28px;
}

.login-panel h1,
.about-brand-card strong {
  align-items: center;
  display: flex;
}

.nav button {
  border-radius: var(--lulu-radius-md);
  color: #dce9eb;
  min-height: 42px;
  padding: 0 var(--lulu-space-3);
}

.nav button:hover:not(:disabled) {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.nav button.active {
  background: #ffffff;
  box-shadow: var(--lulu-shadow-sm);
  color: #20333c;
}

.content {
  gap: var(--lulu-space-3);
  padding: var(--lulu-space-6);
}

.page-content {
  min-height: 0;
}

.stack,
.list,
.form-stack,
.grid {
  gap: var(--lulu-space-3);
}

.item {
  padding: var(--lulu-space-3);
}

.item-title {
  color: var(--lulu-color-text);
  font-weight: var(--lulu-font-weight-bold);
}

.item-meta,
.status,
.muted,
.field-label,
.chat-list-type,
.chat-list-time,
.chat-list-state,
.message-meta,
.chat-header p,
.member-item small {
  color: var(--lulu-color-muted);
}

.success {
  color: var(--lulu-color-success);
}

.error,
.attachment-unavailable {
  color: var(--lulu-color-danger);
}

.avatar,
.chat-list-avatar {
  background: linear-gradient(135deg, var(--lulu-color-primary-soft), var(--lulu-color-bg-muted));
  border: 1px solid rgb(15 111 114 / 16%);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  height: var(--lulu-avatar-md);
  width: var(--lulu-avatar-md);
}

.avatar-large {
  box-shadow: inset 0 0 0 1px rgb(15 111 114 / 14%);
  height: var(--lulu-avatar-lg);
  width: var(--lulu-avatar-lg);
}

.actions {
  gap: var(--lulu-space-2);
}

.contact-tabs {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: inline-flex;
  padding: var(--lulu-space-1);
}

.contact-tabs button {
  background: transparent;
  border: 0;
  min-height: 34px;
}

.contact-tabs button.active {
  background: var(--lulu-color-surface);
  box-shadow: var(--lulu-shadow-sm);
  color: var(--lulu-color-primary);
}

.contact-workspace {
  gap: var(--lulu-space-4);
}

.contact-directory .list,
.contact-picker {
  scrollbar-color: var(--lulu-color-border-strong) transparent;
}

.contact-card,
.compact-user-card,
.discovery-user-card,
.member-item,
.contact-checkbox {
  background: var(--lulu-color-surface-raised);
  border-color: var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
}

.contact-card.selected {
  background: var(--lulu-color-surface-selected);
  border-color: rgb(15 111 114 / 42%);
  box-shadow: inset 3px 0 0 var(--lulu-color-primary);
}

.contact-checkbox {
  min-height: 64px;
  padding: var(--lulu-space-2);
}

.contact-checkbox:not(.disabled):hover {
  background: var(--lulu-color-bg-soft);
  border-color: var(--lulu-color-border-strong);
}

.compact-disclosure > summary {
  color: var(--lulu-color-text-soft);
}

.me-entry-panel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lulu-space-2);
}

.me-entry-panel button {
  min-width: 128px;
}

.me-profile .item,
.settings-list .item {
  background: var(--lulu-color-surface-raised);
}

.avatar-upload {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  padding: var(--lulu-space-3);
}

.avatar-upload label {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  cursor: pointer;
  display: inline-flex;
  font-weight: var(--lulu-font-weight-medium);
  min-height: var(--lulu-button-height);
  padding: 0 var(--lulu-space-3);
}

.avatar-upload input[type="file"] {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.avatar-upload small {
  color: var(--lulu-color-muted);
}

.metric {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  padding: var(--lulu-space-3);
}

.chat-mvp {
  background: var(--lulu-color-bg-muted);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-md);
}

.chat-list,
.chat-main,
.group-members {
  background: var(--lulu-color-surface);
}

.chat-list {
  border-right-color: var(--lulu-color-border);
}

.chat-list-item {
  background: var(--lulu-color-surface);
  border-bottom-color: var(--lulu-color-border);
  min-height: 82px;
  padding: var(--lulu-space-3);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.chat-list-item:hover:not(:disabled) {
  background: var(--lulu-color-bg-soft);
}

.chat-list-item.selected {
  background: var(--lulu-color-surface-selected);
  box-shadow: inset 3px 0 0 var(--lulu-color-primary);
}

.chat-list-avatar {
  min-width: 44px;
}

.unread-badge {
  background: var(--lulu-color-danger);
  font-weight: var(--lulu-font-weight-bold);
}

.chat-header {
  background: var(--lulu-color-surface);
  border-bottom-color: var(--lulu-color-border);
  min-height: 76px;
  padding: var(--lulu-space-3) var(--lulu-space-4);
}

.chat-timeline {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 78%), rgb(244 248 249 / 86%)),
    var(--lulu-color-bg);
  gap: var(--lulu-space-3);
  padding: var(--lulu-space-4);
}

.chat-sync-state span,
.message-system {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-muted);
}

.new-message-jump {
  background: var(--lulu-color-primary);
  border-color: var(--lulu-color-primary);
  border-radius: var(--lulu-radius-pill);
}

.unread-divider {
  color: var(--lulu-color-danger);
}

.unread-divider::before,
.unread-divider::after {
  background: rgb(185 53 53 / 28%);
}

.message-bubble {
  border-color: var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-sm);
  max-width: min(76%, 580px);
  padding: 10px 12px;
}

.message-bubble.own {
  background: var(--lulu-color-own-message);
  border-color: rgb(35 115 71 / 18%);
  border-bottom-right-radius: var(--lulu-radius-xs);
}

.message-bubble.peer {
  background: var(--lulu-color-peer-message);
  border-bottom-left-radius: var(--lulu-radius-xs);
}

.message-bubble:has(.image-message-card) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  max-width: min(74%, 420px);
  padding: 0;
}

.message-bubble:has(.file-message-card) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

.message-action-menu summary {
  background: rgb(255 255 255 / 92%);
  border-color: var(--lulu-color-border);
  box-shadow: var(--lulu-shadow-sm);
}

.message-action-popover {
  border-color: var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-md);
}

.message-action-popover button:hover {
  background: var(--lulu-color-primary-soft);
}

.message-composer {
  background: var(--lulu-color-surface);
  border-top-color: var(--lulu-color-border);
  gap: var(--lulu-space-3);
  padding: var(--lulu-space-3);
}

.message-composer textarea {
  background: var(--lulu-color-bg-soft);
  border-color: transparent;
  border-radius: var(--lulu-radius-lg);
  min-height: 46px;
}

.message-composer.disabled {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  color: var(--lulu-color-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--lulu-space-4);
}

.attachment-picker {
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  gap: var(--lulu-space-1);
  min-height: 46px;
}

.attachment-picker span {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: var(--lulu-font-size-lg);
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.pending-attachment-card,
.upload-preview-card {
  background: var(--lulu-color-bg-soft);
  border-color: var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  padding: var(--lulu-space-2);
}

.pending-attachment-card img,
.pending-file-icon {
  background: var(--lulu-color-bg-muted);
  border-radius: var(--lulu-radius-sm);
}

.pending-attachment-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.upload-state {
  color: var(--lulu-color-primary);
  font-weight: var(--lulu-font-weight-medium);
}

.media-message-card,
.image-message-card,
.file-message-card {
  gap: var(--lulu-space-2);
}

.media-preview-button,
.image-preview-button {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-sm);
}

.media-preview-button img,
.image-preview-button img {
  border-radius: calc(var(--lulu-radius-lg) - 1px);
  max-height: min(48vh, 440px);
  max-width: min(410px, 100%);
}

.image-message-card .attachment-caption,
.media-caption {
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
}

.media-file-card,
.file-card {
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-sm);
  min-height: 72px;
  padding: var(--lulu-space-3);
  width: min(360px, 100%);
}

.file-card:hover,
.image-preview-button:hover {
  border-color: var(--lulu-color-primary);
  box-shadow: 0 0 0 1px rgb(15 111 114 / 16%), var(--lulu-shadow-sm);
}

.file-type-icon {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text-soft);
  height: 48px;
  width: 48px;
}

.file-type-icon.pdf {
  background: var(--lulu-color-danger-soft);
  color: var(--lulu-color-danger);
}

.file-card-action {
  background: var(--lulu-color-primary-soft);
  color: var(--lulu-color-primary);
}

.attachment-preview-backdrop {
  background: rgb(9 19 24 / 78%);
}

.attachment-preview-panel img {
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-lg);
}

.group-members {
  border-left-color: var(--lulu-color-border);
  padding: var(--lulu-space-4);
}

.member-list {
  gap: var(--lulu-space-2);
}

/* Chat V2 product polish layer. */
.chat-route-layout .content,
.chat-content {
  padding: var(--lulu-space-5);
}

.chat-mvp {
  border-radius: var(--lulu-radius-xl);
  grid-template-columns: 320px minmax(0, 1fr) 260px;
  max-height: calc(100vh - 40px);
}

.chat-list-v2 {
  align-content: stretch;
  background: linear-gradient(180deg, var(--lulu-color-surface), var(--lulu-color-surface-raised));
  display: grid;
  grid-auto-rows: initial;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.chat-list-header,
.group-members-header {
  align-items: center;
  border-bottom: 1px solid var(--lulu-color-border);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: var(--lulu-space-4);
}

.chat-list-header strong,
.group-members-header h3 {
  color: var(--lulu-color-text);
  font-size: var(--lulu-font-size-lg);
  font-weight: var(--lulu-font-weight-bold);
  margin: 0;
}

.chat-list-header span,
.group-members-header span {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
}

.chat-list-item {
  border-bottom: 0;
  border-radius: var(--lulu-radius-lg);
  grid-template-columns: 52px minmax(0, 1fr);
  margin: 4px var(--lulu-space-2);
  min-height: 76px;
  padding: 10px;
}

.chat-list-item.selected {
  background: var(--lulu-color-surface-selected);
  box-shadow: inset 3px 0 0 var(--lulu-color-primary), var(--lulu-shadow-sm);
}

.chat-list-avatar {
  font-size: var(--lulu-font-size-md);
  height: 52px;
  min-width: 52px;
  width: 52px;
}

.chat-list-title {
  font-size: var(--lulu-font-size-base);
}

.chat-list-summary {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
}

.chat-list-time {
  flex: 0 0 auto;
  font-size: 11px;
}

.chat-list-type {
  font-size: var(--lulu-font-size-xs);
}

.chat-list-empty {
  align-items: center;
  color: var(--lulu-color-muted);
  display: grid;
  gap: var(--lulu-space-2);
  justify-items: center;
  margin: var(--lulu-space-6) var(--lulu-space-4);
  min-height: 180px;
  text-align: center;
}

.chat-list-empty strong {
  color: var(--lulu-color-text);
}

.chat-list-skeleton {
  display: grid;
  gap: var(--lulu-space-1);
  padding-top: var(--lulu-space-2);
}

.skeleton-conversation {
  pointer-events: none;
}

.skeleton-line {
  animation: skeleton-pulse 1.3s ease-in-out infinite;
  background: linear-gradient(90deg, #eef3f6 0%, #f8fafb 50%, #eef3f6 100%);
  background-size: 200% 100%;
  border-radius: var(--lulu-radius-pill);
  display: block;
  height: 10px;
  width: 68%;
}

.skeleton-line.wide {
  height: 13px;
  width: 86%;
}

.skeleton-line.short {
  width: 42%;
}

.chat-main {
  background: var(--lulu-color-bg);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.chat-header {
  background: rgb(255 255 255 / 88%);
  justify-content: space-between;
  overflow: visible;
  position: relative;
  z-index: 12;
}

.chat-header-main {
  min-width: 0;
}

.chat-header-avatar {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.chat-header-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.chat-header-main h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header-actions {
  display: flex;
  gap: var(--lulu-space-2);
  margin-left: auto;
}

.chat-header-feedback {
  background: var(--lulu-color-primary-soft);
  border: 1px solid rgb(15 111 114 / 20%);
  border-radius: var(--lulu-radius-pill);
  bottom: -14px;
  color: var(--lulu-color-primary);
  font-size: var(--lulu-font-size-xs);
  padding: 4px 10px;
  position: absolute;
  right: var(--lulu-space-5);
  z-index: 14;
}

.chat-header-actions > button,
.member-menu-reserve {
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-muted);
  height: 34px;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.chat-timeline {
  background:
    radial-gradient(circle at 16px 16px, rgb(15 111 114 / 4%) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgb(255 255 255 / 76%), rgb(240 245 246 / 92%)),
    var(--lulu-color-bg);
  background-size: 24px 24px, auto, auto;
  min-width: 0;
  overflow-x: hidden;
  padding: var(--lulu-space-5);
}

.message-stack {
  gap: var(--lulu-space-3);
  min-width: 0;
}

.time-divider {
  align-self: center;
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  box-shadow: var(--lulu-shadow-sm);
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
  justify-self: center;
  padding: 4px 10px;
}

.message-bubble {
  gap: var(--lulu-space-2);
  max-width: min(72%, 620px);
}

.message-bubble.peer {
  border-color: rgb(23 35 43 / 8%);
}

.message-bubble.own {
  background: linear-gradient(180deg, var(--lulu-color-own-message), #d5eee5);
}

.message-content-frame {
  display: grid;
  gap: var(--lulu-space-2);
  min-width: 0;
}

.reply-placeholder {
  display: none;
}

.message-meta {
  align-items: center;
  color: var(--lulu-color-muted);
  font-size: 11px;
  gap: var(--lulu-space-1);
}

.read-state {
  color: var(--lulu-color-primary);
}

.message-sender {
  margin-bottom: 0;
}

.message-sender .avatar {
  height: var(--lulu-avatar-sm);
  min-width: var(--lulu-avatar-sm);
  width: var(--lulu-avatar-sm);
}

.message-action-menu summary {
  height: 28px;
  width: 34px;
}

.message-action-popover button:disabled {
  color: var(--lulu-color-muted);
}

.message-composer {
  align-items: end;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.message-composer textarea {
  box-shadow: inset 0 0 0 1px rgb(23 35 43 / 3%);
  line-height: 22px;
  max-height: min(30vh, 180px);
  min-height: 44px;
  overflow-y: hidden;
  padding: 11px 14px;
  resize: none;
}

.message-composer .primary {
  border-radius: var(--lulu-radius-lg);
  min-height: 48px;
  min-width: 48px;
}

.attachment-picker {
  border-radius: var(--lulu-radius-lg);
  min-height: 48px;
}

.composer-icon-button {
  align-items: center;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  min-height: 48px;
  padding: 0;
  width: 48px;
}

.composer-send-button {
  background: #2563eb;
  border-color: #2563eb;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgb(37 99 235 / 18%);
  color: #ffffff;
  cursor: pointer;
}

.composer-send-button:focus-visible {
  outline: 3px solid rgb(37 99 235 / 28%);
  outline-offset: 2px;
}

.composer-send-button:disabled,
.composer-send-button[aria-disabled="true"],
.composer-send-button[data-send-state="disabled"] {
  background: #e7edf5;
  border-color: #d9e2ee;
  box-shadow: none;
  color: #8a98a9;
  cursor: not-allowed;
  opacity: 1;
}

.message-composer .composer-send-button:disabled:hover,
.message-composer .composer-send-button[aria-disabled="true"]:hover,
.message-composer .composer-send-button[data-send-state="disabled"]:hover {
  background: #e7edf5;
  border-color: #d9e2ee;
  box-shadow: none;
  transform: none;
}

.upload-preview-card {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 62%);
}

.media-preview-button,
.media-file-card {
  overflow: hidden;
}

.media-file-card {
  grid-template-columns: 52px minmax(0, 1fr) 34px;
}

.file-card-action {
  height: 32px;
  width: 32px;
}

.group-members {
  background: var(--lulu-color-surface);
  gap: 0;
  padding: 0;
}

.group-members-header {
  border-bottom-color: var(--lulu-color-border);
}

.member-list {
  gap: 6px;
  padding: var(--lulu-space-3);
}

.member-item {
  align-items: center;
  border: 0;
  border-radius: var(--lulu-radius-lg);
  grid-template-columns: 40px minmax(0, 1fr) minmax(58px, max-content);
  padding: 10px;
  position: relative;
}

.member-item:hover {
  background: var(--lulu-color-bg-soft);
}

.member-item.can-open-profile {
  cursor: pointer;
}

.member-item.can-open-profile:hover,
.member-item.can-open-profile:focus-visible {
  background: var(--lulu-color-primary-soft);
  outline: 2px solid var(--lulu-color-primary);
  outline-offset: 2px;
}

.member-item .avatar {
  margin-right: 0;
}

.member-main,
.member-name {
  min-width: 0;
}

.member-main {
  display: grid;
  gap: 2px;
}

.member-name,
.member-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-presence {
  background: var(--lulu-color-success);
  border: 2px solid var(--lulu-color-surface);
  border-radius: var(--lulu-radius-circle);
  height: 10px;
  left: 38px;
  position: absolute;
  top: 38px;
  width: 10px;
}

.member-role {
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  padding: 3px 7px;
  white-space: nowrap;
  word-break: keep-all;
}

.member-meta {
  align-items: end;
  display: grid;
  gap: 3px;
  justify-items: end;
  max-width: min(110px, 31vw);
  min-width: 58px;
}

.member-creator,
.member-status {
  color: var(--lulu-color-muted);
  line-height: 1.25;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.member-creator {
  max-width: none;
}

.member-main small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.member-status {
  grid-column: auto;
}

.member-item button {
  grid-column: 2 / 4;
  justify-self: start;
}

.member-profile-backdrop {
  align-items: center;
  background: rgb(14 20 24 / 54%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: var(--lulu-space-5);
  position: fixed;
  z-index: 35;
}

.member-profile-dialog {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-lg);
  display: grid;
  gap: var(--lulu-space-4);
  max-width: min(420px, 100%);
  padding: var(--lulu-space-4);
  width: 100%;
}

.member-profile-dialog header,
.member-profile-summary,
.member-profile-dialog dl div {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto;
}

.member-profile-dialog header span {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
}

.member-profile-summary {
  grid-template-columns: auto minmax(0, 1fr);
}

.member-profile-summary .avatar {
  height: 48px;
  margin-right: 0;
  width: 48px;
}

.member-profile-summary strong,
.member-profile-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-profile-summary small,
.member-profile-dialog dt {
  color: var(--lulu-color-muted);
}

.member-profile-dialog dl {
  display: grid;
  gap: var(--lulu-space-2);
  margin: 0;
}

.member-profile-dialog dt,
.member-profile-dialog dd {
  margin: 0;
}

.member-profile-actions {
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-profile-actions button {
  justify-content: center;
  min-width: 0;
}

.group-members > .compact-action,
.group-members > .actions,
.member-picker {
  margin: 0 var(--lulu-space-3) var(--lulu-space-3);
}

.member-picker {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  display: grid;
  gap: var(--lulu-space-2);
  padding: var(--lulu-space-3);
}

.member-picker-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.member-candidate-list {
  display: grid;
  gap: var(--lulu-space-2);
  max-height: 220px;
  overflow: auto;
}

.member-candidate {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: auto 34px minmax(0, 1fr);
  padding: var(--lulu-space-2);
}

.member-candidate input[type="checkbox"] {
  accent-color: var(--lulu-color-primary);
  cursor: pointer;
  height: 18px;
  min-height: 18px;
  width: 18px;
}

.member-candidate input[type="checkbox"]:focus-visible {
  box-shadow: var(--lulu-shadow-focus);
  outline: 0;
}

.member-candidate input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Sprint 16 Theme 2: Chat Home productization. */
.chat-mvp {
  grid-template-columns: 336px minmax(0, 1fr) 280px;
}

.chat-list-item {
  height: 78px;
  min-height: 78px;
  overflow: hidden;
}

.chat-list-avatar-wrap {
  display: inline-flex;
  height: 52px;
  position: relative;
  width: 52px;
}

.presence-dot {
  background: var(--lulu-color-muted);
  border: 2px solid var(--lulu-color-surface);
  border-radius: var(--lulu-radius-circle);
  display: inline-flex;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.presence-dot.online {
  background: var(--lulu-color-success);
}

.presence-dot.idle {
  background: #a5b2b8;
}

.chat-list-avatar-wrap .presence-dot {
  bottom: 2px;
  position: absolute;
  right: 2px;
}

.chat-list-title {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.chat-list-title > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-indicator,
.conversation-type-badge,
.mention-indicator {
  align-items: center;
  border-radius: var(--lulu-radius-pill);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: var(--lulu-font-weight-bold);
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 5px;
}

.pin-indicator {
  background: var(--lulu-color-bg-muted);
  color: var(--lulu-color-muted);
  text-transform: uppercase;
}

.conversation-type-badge,
.mention-indicator {
  background: var(--lulu-color-primary-soft);
  color: var(--lulu-color-primary);
}

.chat-list-summary.draft {
  color: var(--lulu-color-warning);
  font-weight: var(--lulu-font-weight-medium);
}

.unread-dot-placeholder {
  flex: 0 0 22px;
}

.icon-button {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-muted);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.icon-button:hover:not(:disabled),
.dropdown-menu[open] > .icon-button {
  background: var(--lulu-color-primary-soft);
  border-color: rgb(15 111 114 / 24%);
  color: var(--lulu-color-primary);
}

.dropdown-menu {
  position: relative;
}

.dropdown-menu > summary {
  list-style: none;
}

.dropdown-menu > summary::-webkit-details-marker {
  display: none;
}

.dropdown-panel {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-md);
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.dropdown-panel button {
  background: transparent;
  border: 0;
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-text-soft);
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
}

.dropdown-panel button:hover:not(:disabled) {
  background: var(--lulu-color-bg-soft);
}

.chat-header-main p {
  align-items: center;
  display: flex;
  gap: 6px;
}

.chat-timeline {
  padding: 18px 20px 16px;
}

.message-stack {
  margin: 0 auto;
  max-width: min(100%, 760px);
  width: 100%;
}

.message-bubble {
  max-width: min(72%, 560px);
  min-width: 112px;
}

.message-bubble.failed {
  border-color: rgb(185 53 53 / 28%);
}

.message-bubble.optimistic {
  filter: saturate(0.9);
}

.read-state.sending {
  color: var(--lulu-color-warning);
}

.read-state.failed {
  color: var(--lulu-color-danger);
}

.message-system,
.time-divider,
.unread-divider {
  max-width: 100%;
}

.message-action-menu .dropdown-panel {
  min-width: 132px;
}

.message-composer {
  position: relative;
}

.composer-drop-hint {
  background: rgb(15 111 114 / 8%);
  border: 1px dashed rgb(15 111 114 / 24%);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-primary);
  display: none;
  font-size: var(--lulu-font-size-sm);
  font-weight: var(--lulu-font-weight-medium);
  grid-column: 1 / -1;
  padding: var(--lulu-space-2);
  text-align: center;
}

.message-composer.drag-over .composer-drop-hint {
  display: block;
}

.composer-input-shell {
  display: grid;
  min-width: 0;
}

.message-composer button:disabled {
  opacity: 0.58;
}

.image-retry {
  border-radius: var(--lulu-radius-md);
  padding: var(--lulu-space-3);
}

.media-preview-button,
.media-file-card {
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.media-preview-button:hover,
.media-file-card:hover {
  transform: translateY(-1px);
}

.message-bubble:has(.file-message-card) {
  gap: 4px;
}

.file-message-card {
  gap: 4px;
}

.media-file-card,
.file-card {
  min-height: 62px;
  padding: 8px 10px;
}

.file-type-icon {
  height: 42px;
  width: 42px;
}

.file-card-action {
  height: 28px;
  width: 28px;
}

.file-message-card .attachment-caption {
  margin-top: 4px;
  padding: 6px 8px;
}

/* Sprint 16 Theme 7: Desktop product UI polish. */
.chat-mvp {
  box-shadow: var(--lulu-shadow-lg);
}

.chat-list-v2 {
  overflow: hidden;
}

.chat-list-v2 .chat-list-items {
  min-height: 0;
  overflow-y: auto;
}

.chat-list-header {
  background: rgb(255 255 255 / 72%);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 3;
}

.chat-list-item {
  border: 1px solid transparent;
  box-shadow: none;
  gap: var(--lulu-space-3);
  grid-template-columns: 50px minmax(0, 1fr);
  height: 76px;
  margin: 3px var(--lulu-space-2);
  min-height: 76px;
  padding: 9px 10px;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.chat-list-item:hover:not(:disabled) {
  background: var(--lulu-color-bg-soft);
  border-color: rgb(15 111 114 / 12%);
  transform: translateY(-1px);
}

.chat-list-item:focus-visible {
  box-shadow: var(--lulu-shadow-focus);
  outline: 0;
}

.chat-list-item.selected {
  background: linear-gradient(135deg, var(--lulu-color-surface-selected), rgb(15 111 114 / 9%));
  border-color: rgb(15 111 114 / 18%);
  box-shadow: inset 3px 0 0 var(--lulu-color-primary), var(--lulu-shadow-sm);
}

.chat-list-item.selected .chat-list-time,
.chat-list-item.selected .chat-list-summary {
  color: var(--lulu-color-text-soft);
}

.chat-list-avatar,
.chat-list-avatar-wrap {
  height: 50px;
  min-width: 50px;
  width: 50px;
}

.chat-list-row {
  min-width: 0;
}

.chat-list-row:first-child {
  align-items: baseline;
}

.chat-list-row:nth-child(2) {
  align-items: center;
  min-height: 21px;
}

.conversation-pull-refresh {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 13px;
  font-weight: 650;
  height: 0;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
  transform: translateY(calc(var(--pull-refresh-distance, 0px) * 0.15));
  transition: height 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.conversation-pull-refresh.visible {
  height: min(48px, max(28px, var(--pull-refresh-distance, 28px)));
  opacity: 1;
}

.conversation-pull-refresh.ready,
.conversation-pull-refresh.refreshing,
.conversation-pull-refresh.success {
  color: #071d49;
}

.conversation-pull-refresh.error,
.add-friend-search-status.error,
.add-friend-search-status.invalid {
  color: #b42318;
}

.add-friend-search-status {
  background: #f8fafc;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  padding: 10px 12px;
}

.add-friend-search-status.found,
.add-friend-search-status.not-found {
  background: #eef6ff;
  border-color: #c9ddff;
  color: #071d49;
}

.chat-list-title {
  font-weight: var(--lulu-font-weight-bold);
  letter-spacing: 0;
}

.chat-list-time {
  color: var(--lulu-color-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 42px;
  text-align: right;
}

.chat-list-summary {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  line-height: 1.35;
}

.chat-list-type {
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unread-badge {
  box-shadow: 0 2px 8px rgb(218 53 69 / 24%);
  font-variant-numeric: tabular-nums;
}

.pin-indicator {
  color: transparent;
  font-size: 0;
  min-width: 18px;
  padding: 0;
}

.pin-indicator::before {
  color: var(--lulu-color-muted);
  content: "⌃";
  font-size: 12px;
  line-height: 1;
}

.conversation-type-badge,
.mention-indicator {
  height: 17px;
  min-width: 17px;
}

.chat-list-empty,
.chat-list-state,
.chat-empty-state {
  border-radius: var(--lulu-radius-lg);
}

.skeleton-line {
  background: linear-gradient(90deg, rgb(224 234 237 / 78%) 0%, rgb(248 250 251 / 94%) 50%, rgb(224 234 237 / 78%) 100%);
}

.chat-header {
  backdrop-filter: blur(16px);
  border-bottom-color: rgb(23 35 43 / 7%);
}

.chat-header-actions > button,
.member-menu-reserve,
.icon-button {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.chat-header-actions > button:hover:not(:disabled),
.member-menu-reserve:hover,
.icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.message-stack {
  gap: 10px;
}

.time-divider,
.unread-divider {
  backdrop-filter: blur(12px);
}

.time-divider {
  color: var(--lulu-color-text-soft);
  font-weight: var(--lulu-font-weight-medium);
  letter-spacing: 0;
}

.unread-divider {
  color: var(--lulu-color-primary);
  font-weight: var(--lulu-font-weight-bold);
}

.message-system {
  background: rgb(255 255 255 / 72%);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  box-shadow: var(--lulu-shadow-sm);
  justify-self: center;
  padding: 5px 12px;
}

.message-bubble {
  border-radius: 18px;
  box-shadow: var(--lulu-shadow-sm);
  padding: 9px 11px 7px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.message-bubble:hover {
  box-shadow: var(--lulu-shadow-md);
  transform: translateY(-1px);
}

.message-bubble.peer {
  background: var(--lulu-color-peer-message);
  border-bottom-left-radius: var(--lulu-radius-sm);
}

.message-bubble.own {
  border-bottom-right-radius: var(--lulu-radius-sm);
}

.message-bubble.failed {
  background: linear-gradient(180deg, var(--lulu-color-danger-soft), var(--lulu-color-surface));
  box-shadow: 0 8px 22px rgb(185 53 53 / 12%);
}

.message-bubble.optimistic {
  opacity: 0.78;
}

.message-highlight {
  box-shadow: 0 0 0 3px rgb(37 99 235 / 20%), var(--lulu-shadow-md);
}

.message-reply-quote {
  align-items: center;
  background: rgb(255 255 255 / 56%);
  border: 0;
  border-left: 3px solid var(--lulu-color-primary);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  cursor: pointer;
  display: grid;
  gap: 1px;
  justify-items: start;
  margin: 0 0 7px;
  max-width: 100%;
  padding: 6px 8px;
  text-align: left;
}

.message-bubble.own .message-reply-quote {
  background: rgb(255 255 255 / 32%);
}

.message-reply-quote strong,
.message-reply-quote small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-reply-quote strong {
  font-size: 12px;
  font-weight: 700;
}

.message-reply-quote small {
  color: var(--lulu-color-text-muted);
  font-size: 12px;
}

.message-forward-source {
  background: rgb(255 255 255 / 54%);
  border-left: 3px solid var(--lulu-color-primary);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
  padding: 7px 9px;
}

.message-bubble.own .message-forward-source {
  background: rgb(255 255 255 / 30%);
}

.message-forward-source span,
.message-forward-source small {
  color: var(--lulu-color-text-muted);
  font-size: 12px;
}

.message-forward-source strong,
.message-forward-source small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-meta {
  justify-content: flex-end;
  letter-spacing: 0;
}

.read-state::before {
  content: "✓";
  margin-right: 2px;
}

.read-state.sending::before {
  content: "•";
}

.read-state.failed::before {
  content: "!";
}

.message-actions.inline button {
  min-height: 28px;
  padding: 0 9px;
}

.message-action-menu summary {
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.message-bubble:hover .message-action-menu summary,
.message-bubble:focus-within .message-action-menu summary,
.message-action-menu[open] summary {
  opacity: 1;
  transform: translateY(0);
}

.message-action-popover {
  border-radius: var(--lulu-radius-lg);
  padding: 6px;
}

.media-preview-button:hover,
.media-file-card:hover {
  box-shadow: var(--lulu-shadow-md);
}

.file-type-icon.pdf {
  background: var(--lulu-color-danger-soft);
  color: var(--lulu-color-danger);
}

.message-composer {
  background: rgb(255 255 255 / 88%);
  border-top-color: rgb(23 35 43 / 7%);
  box-shadow: 0 -8px 24px rgb(23 35 43 / 5%);
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 12px 14px;
}

.composer-reply-bar {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-left: 3px solid var(--lulu-color-primary);
  border-radius: var(--lulu-radius-lg);
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  margin-bottom: -2px;
  padding: 8px 10px;
}

.composer-reply-bar strong,
.composer-reply-bar small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-reply-bar strong {
  font-size: 12px;
}

.composer-reply-bar small {
  color: var(--lulu-color-text-muted);
  font-size: 12px;
}

.forward-picker-backdrop {
  background: rgb(23 35 43 / 28%);
  display: grid;
  inset: 0;
  padding: 16px;
  place-items: end center;
  position: fixed;
  z-index: 60;
}

.forward-picker-panel {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-xl);
  box-shadow: var(--lulu-shadow-lg);
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto 1fr;
  max-height: min(620px, calc(100vh - 32px));
  padding: 14px;
  width: min(420px, 100%);
}

.forward-picker-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.forward-picker-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.forward-picker-header span,
.forward-search span {
  color: var(--lulu-color-text-muted);
  font-size: 12px;
}

.forward-picker-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forward-search {
  display: grid;
  gap: 5px;
}

.forward-search input {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  padding: 9px 11px;
  width: 100%;
}

.forward-error {
  background: var(--lulu-color-danger-soft);
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-danger);
  padding: 8px 10px;
}

.forward-target-list {
  display: grid;
  gap: 4px;
  min-height: 80px;
  overflow: auto;
}

.forward-target-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 8px;
  text-align: left;
  width: 100%;
}

.forward-target-row:hover:not(:disabled),
.forward-target-row:focus-visible {
  background: var(--lulu-color-bg-soft);
}

.forward-target-row:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.forward-target-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.forward-target-row strong,
.forward-target-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forward-target-row small,
.forward-empty-state {
  color: var(--lulu-color-text-muted);
}

.forward-empty-state {
  padding: 18px 10px;
  text-align: center;
}

.message-composer textarea {
  border-radius: 18px;
  min-height: 46px;
  transition: box-shadow 140ms ease, background-color 140ms ease;
}

.message-composer textarea:focus {
  background: var(--lulu-color-surface);
  box-shadow: var(--lulu-shadow-focus);
}

.attachment-picker,
.message-composer .primary,
.composer-emoji-button {
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.attachment-picker:hover,
.message-composer .primary:hover:not(:disabled),
.composer-emoji-button:hover {
  transform: translateY(-1px);
}

.composer-emoji-anchor {
  align-self: end;
  position: relative;
}

.composer-emoji-button {
  border-radius: var(--lulu-radius-circle);
  height: 46px;
  min-height: 46px;
  width: 46px;
}

.emoji-picker-panel {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-xl);
  bottom: 54px;
  box-shadow: var(--lulu-shadow-lg);
  display: grid;
  gap: 8px;
  padding: 10px;
  position: absolute;
  right: 0;
  width: min(292px, calc(100vw - 32px));
  z-index: 45;
}

.emoji-picker-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.emoji-picker-tabs button {
  background: transparent;
  border: 0;
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-text-muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  padding: 6px 9px;
}

.emoji-picker-tabs button.active,
.emoji-picker-tabs button:hover,
.emoji-picker-tabs button:focus-visible {
  background: var(--lulu-color-primary-soft);
  color: var(--lulu-color-primary);
}

.emoji-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(6, 1fr);
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.emoji-grid button {
  align-items: center;
  aspect-ratio: 1;
  background: transparent;
  border: 0;
  border-radius: var(--lulu-radius-md);
  cursor: pointer;
  display: grid;
  font-size: 22px;
  justify-items: center;
  line-height: 1;
  padding: 0;
}

.emoji-grid button:hover,
.emoji-grid button:focus-visible {
  background: var(--lulu-color-bg-soft);
}

.message-composer.disabled {
  justify-content: center;
  min-height: 64px;
}

.group-members {
  border-left-color: rgb(23 35 43 / 7%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  position: relative;
  touch-action: pan-y;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
}

.group-management-panel,
.chat-info-shell {
  align-self: stretch;
  background: #f3f5f8;
  display: flex;
  flex-direction: column;
  margin: 0;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior-y: contain;
  padding: 0;
  touch-action: pan-y;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.group-management-panel > .group-management-page-header,
.chat-info-shell > .chat-info-page-header {
  background: #ffffff;
  border-bottom: 1px solid #dfe5ee;
  flex: 0 0 auto;
  min-height: 58px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  position: sticky;
  top: 0;
  z-index: 3;
}

.group-management-page-header,
.chat-info-page-header {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.group-management-page-header::after,
.chat-info-page-header::after {
  content: "";
  display: block;
  height: 42px;
  width: 42px;
}

.group-management-page-header.has-header-action::after {
  display: none;
}

.group-management-back-button,
.chat-info-back-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-text);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0;
  white-space: nowrap;
  width: 42px;
}

.group-member-selection-done {
  align-items: center;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: var(--lulu-font-weight-semibold);
  justify-content: center;
  justify-self: end;
  min-height: 42px;
  min-width: 68px;
  padding: 0 16px;
  white-space: nowrap;
  word-break: keep-all;
}

.group-member-selection-done:disabled {
  background: #cbd5e5;
  cursor: not-allowed;
}

.group-member-selection-done.is-add:not(:disabled) {
  background: var(--lulu-color-primary);
}

.group-member-selection-done.is-remove:not(:disabled) {
  background: var(--lulu-color-danger);
}

.chat-info-page-header strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-management-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.group-management-title strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-management-body,
.chat-info-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: var(--lulu-space-3);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: var(--lulu-space-4) var(--lulu-space-4) calc(var(--lulu-space-5) + env(safe-area-inset-bottom));
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.group-management-body > *,
.chat-info-body > * {
  flex: 0 0 auto;
}

.group-management-nav {
  background: #ffffff;
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.group-management-context {
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  padding: var(--lulu-space-3);
}

.group-management-context > div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.group-management-context strong,
.group-management-context small,
.group-management-context span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.group-management-context small {
  color: var(--lulu-color-muted);
}

.group-management-nav-row,
.chat-info-row,
.chat-info-peer-card,
.chat-info-member-summary {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  border-radius: 0;
  color: var(--lulu-color-text);
  cursor: pointer;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto auto;
  justify-items: stretch;
  min-height: 52px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.group-management-nav-row span:first-child,
.chat-info-row-label {
  font-weight: var(--lulu-font-weight-bold);
  min-width: max-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-management-nav-row small,
.chat-info-row-value {
  color: var(--lulu-color-muted);
  line-height: 1.35;
  max-width: min(44vw, 210px);
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-management-nav-row small:empty,
.chat-info-row-value:empty {
  display: none;
}

.group-management-nav-arrow,
.chat-info-row-arrow {
  color: var(--lulu-color-muted);
  font-weight: var(--lulu-font-weight-bold);
  line-height: 1;
  white-space: nowrap;
}

.chat-info-section {
  background: #ffffff;
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.chat-info-summary-section {
  background: transparent;
  border: 0;
}

.chat-info-row,
.chat-info-peer-card,
.chat-info-member-summary {
  border-radius: 0;
  border-width: 0 0 1px;
}

.chat-info-section > :last-child {
  border-bottom: 0;
}

.chat-info-row-static {
  cursor: default;
}

.chat-info-switch-row {
  cursor: pointer;
}

.chat-info-switch-row:disabled {
  cursor: wait;
  opacity: 0.72;
}

.chat-info-peer-summary {
  cursor: default;
}

.chat-info-direct-hero {
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-height: 172px;
  padding: 26px 16px 24px;
  text-align: center;
}

.chat-info-direct-hero .chat-list-avatar {
  font-size: 28px;
  height: 74px;
  min-width: 74px;
  width: 74px;
}

.chat-info-peer-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 74px;
}

.chat-info-peer-card > span:nth-child(2),
.chat-info-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-info-peer-card strong,
.chat-info-peer-card small,
.chat-info-row-main strong,
.chat-info-row-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-info-peer-card small,
.chat-info-row-main small {
  color: var(--lulu-color-muted);
}

.chat-info-member-summary {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.chat-info-member-avatars {
  display: flex;
  min-width: 0;
}

.chat-info-member-avatars span {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border: 2px solid #ffffff;
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: var(--lulu-font-weight-bold);
  height: 30px;
  justify-content: center;
  margin-left: -8px;
  min-width: 30px;
  width: 30px;
}

.chat-info-member-avatars span:first-child {
  margin-left: 0;
}

.chat-info-member-strip {
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: repeat(var(--chat-info-member-summary-columns, 4), minmax(0, 1fr));
  overflow: hidden;
  padding: 12px;
}

.chat-info-member-strip button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--lulu-color-text);
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  min-height: 68px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.chat-info-member-strip small {
  color: var(--lulu-color-muted);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.chat-info-member-more-avatar {
  align-items: center;
  background: #eef2f7;
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-text);
  display: inline-flex;
  font-size: 16px;
  font-weight: var(--lulu-font-weight-semibold);
  height: 44px;
  justify-content: center;
  width: 44px;
}

.chat-info-member-action span {
  align-items: center;
  border: 1px dashed var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-muted);
  display: inline-flex;
  font-size: 26px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.chat-info-owner-only-label,
.group-mute-section-label {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
  padding: 10px 12px 4px;
}

.chat-info-switch {
  background: #d3d8e2;
  border-radius: var(--lulu-radius-pill);
  display: inline-flex;
  height: 28px;
  justify-content: flex-start;
  padding: 3px;
  width: 48px;
}

.chat-info-switch.is-on {
  background: #22b7a7;
}

.chat-info-switch::before {
  background: #ffffff;
  border-radius: var(--lulu-radius-circle);
  box-shadow: 0 1px 4px rgb(16 24 40 / 18%);
  content: "";
  display: block;
  height: 22px;
  width: 22px;
}

.chat-info-switch.is-on::before {
  transform: translateX(20px);
}

.chat-info-switch.is-busy {
  opacity: 0.66;
}

.chat-info-switch-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.chat-info-risk-section .chat-info-row-label,
.chat-info-row-danger .chat-info-row-label {
  color: var(--lulu-color-danger);
}

.group-management-subpage {
  display: grid;
  gap: var(--lulu-space-3);
  min-height: 0;
}

.group-management-subnav {
  align-items: center;
  display: flex;
  gap: var(--lulu-space-2);
  justify-content: space-between;
}

.group-management-subnav strong {
  min-width: 0;
}

.group-management-panel > .group-members,
.group-management-subpage > .group-members {
  border-left: 0;
  display: grid;
  gap: var(--lulu-space-3);
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.group-management-subpage > .group-members .member-list {
  max-height: none;
  overflow: visible;
  padding-bottom: var(--lulu-space-3);
  padding-right: 0;
}

.group-management-subpage > .group-members > .compact-action {
  position: static;
  width: 100%;
}

.group-member-directory-panel {
  background: #ffffff;
  gap: 0;
  position: relative;
}

.group-member-directory-search {
  background: var(--lulu-color-bg-soft);
  display: block;
  padding: 12px;
}

.group-member-directory-search input {
  background: #eef2f7;
  border: 0;
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  font: inherit;
  min-height: 44px;
  padding: 0 14px;
  width: 100%;
}

.group-member-directory-list {
  background: #ffffff;
  display: grid;
  padding-inline: 14px 28px;
}

.group-member-directory-row {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 76px;
  padding: 10px 0;
}

.group-member-directory-row:focus-visible,
.group-member-directory-row:hover {
  background: var(--lulu-color-primary-soft);
  outline: 2px solid var(--lulu-color-primary);
  outline-offset: -2px;
}

.group-member-directory-row .avatar {
  height: 48px;
  margin-right: 0;
  width: 48px;
}

.group-member-directory-row > span:last-child {
  display: block;
  font-size: 17px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member-profile-page {
  background: #ffffff;
  gap: 0;
}

.group-member-profile-card {
  display: grid;
  gap: 0;
}

.group-member-profile-hero {
  align-items: center;
  border-bottom: 1px solid var(--lulu-color-border);
  display: grid;
  justify-items: center;
  padding: 34px 20px;
  text-align: center;
}

.group-member-profile-hero .avatar {
  font-size: 28px;
  height: 84px;
  margin: 0 0 14px;
  width: 84px;
}

.group-member-profile-hero h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.group-member-profile-hero p {
  color: var(--lulu-color-muted);
  margin: 0;
}

.group-member-profile-hero .member-mute-profile-primary-actions {
  margin-top: 20px;
  max-width: 100%;
  width: 100%;
}

.group-member-profile-facts {
  display: grid;
  margin: 0;
}

.group-member-profile-facts div {
  align-items: center;
  border-bottom: 1px solid var(--lulu-color-border);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(86px, auto) minmax(0, 1fr);
  min-height: 62px;
  padding: 10px 16px;
}

.group-member-profile-facts dt {
  color: var(--lulu-color-muted);
}

.group-member-profile-facts dd {
  font-weight: var(--lulu-font-weight-semibold);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.member-profile-list-actions {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin: 0;
}

.group-member-profile-management-list {
  display: grid;
  margin: 0;
}

.group-member-profile-management-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(92px, 1fr) minmax(0, auto);
  min-height: 62px;
  padding: 10px 16px;
  width: 100%;
}

button.group-member-profile-management-row {
  cursor: pointer;
  font: inherit;
  grid-template-columns: minmax(92px, 1fr) minmax(0, auto) auto;
  text-align: left;
}

button.group-member-profile-management-row:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.group-member-profile-management-row .label {
  min-width: 0;
}

.group-member-profile-management-row .value {
  color: var(--lulu-color-muted);
  font-weight: var(--lulu-font-weight-semibold);
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.group-member-profile-action-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.group-member-profile-action-row > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.group-member-profile-action-row strong,
.group-member-profile-action-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member-profile-action-row small {
  color: var(--lulu-color-muted);
}

.group-member-selection-panel {
  background: #ffffff;
  gap: 0;
  min-height: 100%;
  position: relative;
}

.group-member-selection-search {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  display: flex;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
}

.group-member-selection-search input {
  background: #ffffff;
  border: 0;
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  flex: 1 1 auto;
  font: inherit;
  min-height: 44px;
  min-width: 0;
  padding: 0 14px;
}

.group-member-selection-chips {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  max-width: 48%;
  min-width: 0;
  overflow: hidden;
}

.group-member-selection-chip {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: var(--lulu-font-size-sm);
  font-weight: var(--lulu-font-weight-semibold);
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0 8px;
}

.group-member-selection-list {
  background: #ffffff;
  display: grid;
  padding-inline: 14px 28px;
}

.group-member-selection-row {
  align-items: center;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: 34px 56px minmax(0, 1fr);
  min-height: 84px;
  padding: 10px 0;
}

.group-member-selection-row input[type="checkbox"] {
  appearance: none;
  background: #ffffff;
  border: 2px solid #8492a8;
  border-radius: var(--lulu-radius-circle);
  cursor: pointer;
  display: grid;
  height: 24px;
  margin: 0;
  place-items: center;
  width: 24px;
}

.group-member-selection-row input[type="checkbox"]::after {
  color: #ffffff;
  content: "✓";
  font-size: 16px;
  font-weight: var(--lulu-font-weight-bold);
  line-height: 1;
  opacity: 0;
}

.group-member-selection-row.is-add input[type="checkbox"]:checked {
  background: var(--lulu-color-primary);
  border-color: var(--lulu-color-primary);
}

.group-member-selection-row.is-remove input[type="checkbox"]:checked {
  background: var(--lulu-color-danger);
  border-color: var(--lulu-color-danger);
}

.group-member-selection-row input[type="checkbox"]:checked::after {
  opacity: 1;
}

.group-member-selection-row input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.group-member-selection-row .avatar {
  height: 50px;
  margin: 0;
  width: 50px;
}

.group-member-selection-main {
  display: block;
  font-size: 17px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member-alpha-index {
  color: var(--lulu-color-primary);
  display: grid;
  font-size: 12px;
  gap: 1px;
  justify-items: center;
  line-height: 1.1;
  pointer-events: none;
  position: fixed;
  right: max(6px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-42%);
  z-index: 2;
}

.group-members-toolbar {
  display: flex;
  justify-content: flex-end;
}

.group-profile-management-panel,
.group-mute-panel,
.group-governance-panel,
.group-policy-form,
.group-policy-list {
  display: grid;
  gap: var(--lulu-space-3);
}

.group-owner-action-panel {
  display: grid;
  gap: var(--lulu-space-3);
  min-width: 0;
}

.group-owner-action-section {
  background: #ffffff;
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

.group-owner-action-section h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  padding: 16px 16px 8px;
}

.group-owner-action-section > p {
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-muted);
  line-height: 1.55;
  margin: 0;
  padding: 0 16px 14px;
}

.group-owner-transfer-form,
.group-owner-candidate-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.group-owner-candidate {
  align-items: center;
  border-bottom: 1px solid var(--lulu-color-border);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  min-height: 76px;
  min-width: 0;
  padding: 12px 16px;
}

.group-owner-candidate:last-child {
  border-bottom: 0;
}

.group-owner-candidate .avatar {
  height: 48px;
  width: 48px;
}

.group-owner-candidate-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.group-owner-candidate-main strong,
.group-owner-candidate-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-owner-candidate-main small {
  color: var(--lulu-color-muted);
}

.group-owner-candidate input[type="radio"] {
  appearance: none;
  background: #ffffff;
  border: 2px solid #7b8490;
  border-radius: var(--lulu-radius-circle);
  height: 24px;
  justify-self: end;
  margin: 0;
  position: relative;
  width: 24px;
}

.group-owner-candidate input[type="radio"]:checked {
  border-color: var(--lulu-color-primary);
}

.group-owner-candidate input[type="radio"]:checked::after {
  background: var(--lulu-color-primary);
  border-radius: var(--lulu-radius-circle);
  content: "";
  height: 12px;
  left: 4px;
  position: absolute;
  top: 4px;
  width: 12px;
}

.group-owner-confirm-button {
  justify-self: stretch;
  margin: 16px;
  min-height: 52px;
  width: calc(100% - 32px);
}

.group-owner-confirm-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.group-owner-action-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.group-owner-action-row > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.group-owner-action-row strong,
.group-owner-action-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-owner-action-row small {
  color: var(--lulu-color-muted);
}

.group-owner-action-row:last-child {
  border-bottom: 0;
}

.group-owner-action-row.is-disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.group-owner-action-row.is-disabled small {
  color: #98a2b3;
}

.group-owner-danger-row {
  cursor: pointer;
}

.group-owner-danger-row strong {
  color: var(--lulu-color-danger);
}

.group-governance-panel {
  gap: 0;
  padding: 0;
}

.group-policy-list {
  background: #ffffff;
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  gap: 0;
  overflow: hidden;
}

.group-policy-switch-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: stretch;
  min-height: 72px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.group-policy-switch-row:last-child {
  border-bottom: 0;
}

.group-policy-switch-row > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.group-policy-switch-row strong,
.group-policy-switch-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-policy-switch-row strong {
  white-space: nowrap;
}

.group-policy-switch-row small {
  color: var(--lulu-color-muted);
  white-space: normal;
}

.group-policy-auto-save-note {
  color: var(--lulu-color-muted);
  margin: 0;
  padding: 14px 16px;
  text-align: center;
}

.group-mute-panel {
  gap: 0;
  padding: 0;
  position: relative;
}

.group-mute-setting-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  border-radius: 0;
  color: var(--lulu-color-text);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 68px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.group-mute-setting-row > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.group-mute-setting-row strong,
.group-mute-setting-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-mute-setting-row small,
.group-mute-current-state,
.group-muted-member-list p {
  color: var(--lulu-color-muted);
}

.group-mute-duration-row {
  cursor: pointer;
}

.group-mute-member-entry {
  cursor: pointer;
}

.group-mute-current-state {
  margin: 0;
  padding: 0 12px 4px;
}

.group-muted-member-list {
  background: #ffffff;
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  display: grid;
  gap: 1px;
  margin-top: var(--lulu-space-3);
  overflow: hidden;
}

.group-muted-member-list > strong {
  padding: 8px 12px;
}

.group-muted-member {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-top: 1px solid var(--lulu-color-border);
  border-radius: 0;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 12px;
}

.group-muted-member span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.group-muted-member strong,
.group-muted-member small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-mute-duration-backdrop {
  background: rgb(16 24 40 / 34%);
  inset: 0;
  position: fixed;
  z-index: 54;
}

.group-mute-duration-sheet {
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  bottom: 0;
  box-shadow: 0 -20px 44px rgb(16 24 40 / 20%);
  display: grid;
  gap: 14px;
  left: 50%;
  max-height: calc(100dvh - env(safe-area-inset-top) - 24px);
  max-width: min(520px, 100vw);
  overflow-y: auto;
  padding: 14px 24px calc(24px + env(safe-area-inset-bottom));
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 55;
}

.group-mute-duration-sheet h3,
.group-mute-duration-sheet p {
  margin: 0;
  text-align: center;
}

.group-mute-duration-sheet p {
  color: var(--lulu-color-muted);
}

.group-mute-sheet-handle {
  background: #d5dae3;
  border-radius: var(--lulu-radius-pill);
  height: 5px;
  justify-self: center;
  width: 58px;
}

.group-mute-duration-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-mute-duration-grid button,
.group-mute-custom-duration {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  display: flex;
  min-height: 64px;
  padding: 0 14px;
}

.group-mute-duration-grid button {
  justify-content: center;
  width: 100%;
}

.group-mute-duration-grid button.selected {
  background: var(--lulu-color-primary-soft);
  border-color: var(--lulu-color-primary);
  color: var(--lulu-color-primary);
  font-weight: var(--lulu-font-weight-bold);
}

.group-mute-custom-duration {
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) minmax(72px, 112px);
  justify-content: space-between;
  width: 100%;
}

.group-mute-custom-duration > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.group-mute-custom-duration small {
  color: var(--lulu-color-muted);
}

.group-mute-custom-duration input {
  background: transparent;
  border: 0;
  min-width: 0;
  text-align: right;
  width: 120px;
}

.group-mute-estimated-unmute {
  min-height: 22px;
}

.group-mute-duration-sheet > .primary {
  justify-content: center;
  min-height: 56px;
  width: 100%;
}

.group-profile-readonly {
  display: grid;
  gap: var(--lulu-space-2);
}

.group-profile-facts {
  margin: 0;
}

.group-profile-index-list {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  overflow: hidden;
}

.group-profile-index-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 0 var(--lulu-space-4);
  text-align: left;
}

.group-profile-index-row:last-child {
  border-bottom: 0;
}

.group-profile-index-row strong {
  font-weight: 650;
  min-width: 0;
}

.group-profile-index-row small {
  color: var(--lulu-color-muted);
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-profile-field-readonly {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-text);
  min-height: 96px;
  padding: var(--lulu-space-4);
  white-space: pre-wrap;
  word-break: break-word;
}

.group-policy-form label {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: auto minmax(0, 1fr);
}

.group-policy-form input[type="checkbox"] {
  height: 18px;
  width: 18px;
}

.group-policy-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lulu-space-2);
}

.group-members-header {
  background: rgb(255 255 255 / 76%);
  backdrop-filter: blur(16px);
  min-height: 62px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.member-list {
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding-right: var(--lulu-space-2);
  scrollbar-width: thin;
}

.member-item {
  border: 1px solid transparent;
  min-height: 64px;
  padding: 8px 9px;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.member-item:hover {
  background: var(--lulu-color-bg-soft);
  border-color: rgb(15 111 114 / 12%);
  transform: translateX(1px);
}

.member-item .avatar {
  height: 38px;
  min-width: 38px;
  width: 38px;
}

.member-presence {
  left: 34px;
  top: 34px;
}

.member-role {
  font-weight: var(--lulu-font-weight-bold);
}

.member-status {
  color: var(--lulu-color-muted);
}

.member-item button,
.group-members > .compact-action,
.group-members > .actions button {
  min-height: 32px;
  padding: 0 10px;
}

.member-picker {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 58%);
}

/* Sprint 16 Theme 3: Contacts productization. */
.contact-center-v2,
.discovery-v2,
.me-v2 {
  display: grid;
  gap: var(--lulu-space-4);
  min-width: 0;
}

.contact-hero {
  align-items: center;
  background: linear-gradient(135deg, var(--lulu-color-surface), var(--lulu-color-primary-soft));
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: flex;
  gap: var(--lulu-space-4);
  justify-content: space-between;
  padding: var(--lulu-space-5);
}

.contact-hero h2,
.settings-v2 h2,
.discovery-search h2,
.profile-summary-card h2 {
  margin: 0;
}

.contact-hero p,
.discovery-search p,
.settings-v2 p {
  margin: var(--lulu-space-1) 0 0;
}

.section-kicker {
  color: var(--lulu-color-primary);
  font-size: var(--lulu-font-size-xs);
  font-weight: var(--lulu-font-weight-bold);
  text-transform: uppercase;
}

.product-preview-badge {
  background: var(--lulu-color-primary-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: var(--lulu-font-size-xs);
  font-weight: var(--lulu-font-weight-bold);
  margin-left: var(--lulu-space-2);
  padding: 2px 8px;
  vertical-align: middle;
}

.contact-hero-metrics {
  display: flex;
  gap: var(--lulu-space-2);
}

.contact-hero-metrics span,
.letter-index-reserve,
.tag-chip,
.status-pill {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-text-soft);
  display: inline-flex;
  font-size: var(--lulu-font-size-xs);
  gap: 4px;
  padding: 4px 9px;
  white-space: nowrap;
}

.contact-hero-metrics strong {
  color: var(--lulu-color-primary);
}

.contact-entry-list,
.contact-directory,
.contact-detail,
.tag-list-panel,
.tag-member-panel,
.discovery-results-panel,
.settings-v2,
.profile-card-v2 {
  align-content: start;
  display: grid;
  gap: var(--lulu-space-3);
}

.contact-entry-list {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  overflow: hidden;
}

.contact-entry-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  color: var(--lulu-color-text);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  min-height: 62px;
  padding: 10px 14px;
  text-align: left;
  width: 100%;
}

.contact-entry-row:last-child {
  border-bottom: 0;
}

.contact-tag-member-row {
  align-items: center;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 72px;
}

.contact-tag-member-row .display-user,
.contact-tag-member-row .display-user > div {
  min-width: 0;
}

.contact-tag-member-row .item-title,
.contact-tag-member-row .item-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-tag-member-remove {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-danger);
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 0;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1;
  margin-left: var(--lulu-space-1);
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  width: 44px;
}

.contact-tag-member-remove::before {
  align-items: center;
  background: var(--lulu-color-danger-soft);
  border: 1px solid rgb(185 53 53 / 32%);
  border-radius: var(--lulu-radius-circle);
  content: "－";
  display: inline-grid;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.contact-tag-member-remove:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.contact-tag-member-remove:focus-visible {
  outline: 2px solid var(--lulu-color-danger);
  outline-offset: 2px;
}

.contact-entry-row small {
  color: var(--lulu-color-muted);
  display: block;
  margin-top: 2px;
}

.contact-entry-icon {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border-radius: 999px;
  color: var(--lulu-color-primary);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.contact-row {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
}

.contact-card-main {
  background: transparent;
  border: 0;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: 52px minmax(0, 1fr);
  justify-content: start;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.contact-card-main:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
}

.avatar-wrap {
  display: inline-grid;
  position: relative;
}

.contact-row-main,
.discovery-user-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-row-main strong,
.contact-row-main small,
.discovery-user-main .item-title,
.discovery-user-main .item-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-profile {
  display: grid;
  gap: var(--lulu-space-4);
}

.contact-profile-product {
  gap: 0;
}

.contact-profile-hero,
.profile-summary-card {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr);
}

.contact-profile-hero h2,
.profile-summary-card h2 {
  font-size: var(--lulu-font-size-xl);
}

.contact-profile-hero p,
.profile-summary-card p,
.profile-summary-card span {
  color: var(--lulu-color-muted);
  margin: 3px 0 0;
}

.contact-profile-hero-centered {
  justify-items: center;
  padding: var(--lulu-space-6) var(--lulu-space-4);
  text-align: center;
}

.contact-profile-hero-centered .avatar-wrap .avatar {
  height: 86px;
  width: 86px;
}

.contact-profile-actions {
  background: #ffffff;
  border-top: 1px solid var(--lulu-color-border);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--lulu-space-4);
}

.contact-profile-actions button {
  min-height: 48px;
}

.contact-profile-single-action {
  grid-template-columns: minmax(0, 1fr);
}

.friend-management-identity-row {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 96px;
}

.friend-management-identity-row .avatar {
  height: 64px;
  width: 64px;
}

.friend-management-identity-row strong {
  font-size: var(--lulu-font-size-lg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-star-toggle-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.friend-star-toggle-label,
.friend-star-toggle-label strong {
  min-width: max-content;
  overflow: visible;
  white-space: nowrap;
}

.settings-switch {
  align-items: center;
  background: #d8dee8;
  border-radius: 999px;
  display: inline-flex;
  height: 32px;
  padding: 3px;
  width: 56px;
}

.settings-switch i {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgb(15 23 42 / 20%);
  display: block;
  height: 26px;
  transform: translateX(0);
  transition: transform 140ms ease;
  width: 26px;
}

.settings-switch.is-on {
  background: var(--lulu-color-primary);
}

.settings-switch.is-on i {
  transform: translateX(24px);
}

.contact-info-list {
  gap: 0;
}

.contact-info-row {
  grid-template-columns: minmax(104px, max-content) minmax(0, 1fr) auto;
}

.contact-info-row > span:first-child {
  min-width: 104px;
  white-space: nowrap;
}

.contact-profile-hero-centered > div {
  max-width: 100%;
  min-width: 0;
}

.settings-row-value {
  color: var(--lulu-color-muted);
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-danger-list .centered-danger {
  color: var(--lulu-color-danger);
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  text-align: center;
}

.contact-danger-list .centered-danger span {
  justify-self: center;
  min-width: max-content;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .group-management-body,
  .chat-info-body {
    padding-inline: 12px;
  }

  .member-item {
    gap: 8px;
    grid-template-columns: 38px minmax(0, 1fr) minmax(54px, max-content);
    padding-inline: 8px;
  }

  .member-meta {
    max-width: 96px;
    min-width: 54px;
  }

  .group-mute-duration-sheet {
    padding-inline: 16px;
  }

  .group-mute-duration-grid {
    gap: 8px;
  }

  .group-mute-duration-grid button,
  .group-mute-custom-duration {
    min-height: 58px;
    padding-inline: 10px;
  }
}

.profile-facts {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
}

.profile-facts div {
  align-items: center;
  border-bottom: 1px solid var(--lulu-color-border);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: 80px minmax(0, 1fr);
  padding: 10px 12px;
}

.profile-facts div:last-child {
  border-bottom: 0;
}

.profile-facts dt {
  color: var(--lulu-color-muted);
}

.profile-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.request-board {
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.request-card {
  display: grid;
  gap: var(--lulu-space-2);
}

.favorite-card,
.tag-card {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto;
}

.tag-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.tag-icon {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-weight: var(--lulu-font-weight-bold);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.contact-picker {
  max-height: 260px;
}

.discovery-search {
  gap: var(--lulu-space-4);
}

.search-mode-grid {
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.search-mode-grid button {
  min-width: 0;
}

.search-mode-grid button.active {
  background: var(--lulu-color-primary-soft);
  border-color: rgb(15 111 114 / 28%);
  color: var(--lulu-color-primary);
}

.search-bar {
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: minmax(0, 1fr) auto;
}

.discovery-user-card {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.product-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.product-list button {
  background: var(--lulu-color-surface-raised);
  border: 0;
  border-bottom: 1px solid var(--lulu-color-border);
  border-radius: 0;
  display: grid;
  gap: 2px;
  justify-content: stretch;
  min-height: 62px;
  padding: 10px 14px;
  text-align: left;
}

.product-list button:last-child {
  border-bottom: 0;
}

.product-list button span {
  color: var(--lulu-color-text);
  font-weight: var(--lulu-font-weight-bold);
}

.product-list button small {
  color: var(--lulu-color-muted);
}

.profile-card-v2 {
  background: linear-gradient(135deg, var(--lulu-color-surface), var(--lulu-color-bg-soft));
}

.product-empty {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px dashed var(--lulu-color-border-strong);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-muted);
  display: grid;
  gap: var(--lulu-space-2);
  justify-items: center;
  min-height: 150px;
  padding: var(--lulu-space-5);
  text-align: center;
}

.product-empty strong {
  color: var(--lulu-color-text);
}

.product-empty span {
  max-width: 320px;
}

.product-empty .empty-icon {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: var(--lulu-font-size-lg);
  height: 44px;
  justify-content: center;
  width: 44px;
}

/* Sprint 17 Theme1B Feature1: Group Center create-group product preview. */
.group-center-v2 {
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.group-hero {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: var(--lulu-space-4);
}

.group-hero h2,
.group-create-head h2 {
  line-height: 1.18;
  margin: 0;
}

.group-hero p,
.group-create-head p {
  line-height: 1.35;
  margin: 2px 0 0;
}

.group-hero-actions,
.group-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lulu-space-2);
}

.group-center-layout {
  align-items: start;
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.group-list-panel,
.group-create-panel,
.group-create-head,
.group-flow-section,
.group-result {
  display: grid;
  gap: var(--lulu-space-3);
}

.group-list-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.group-create-panel {
  align-content: start;
  align-self: start;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.group-preview-list,
.group-contact-picker,
.group-selected-strip,
.group-create-summary {
  display: grid;
  gap: var(--lulu-space-2);
}

.group-preview-list {
  align-content: start;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.group-search-box {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 38px;
  padding: 0 12px;
}

.group-search-box span {
  color: var(--lulu-color-muted);
}

.group-search-box input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 34px;
  padding-inline: 0;
}

.group-list-tabs {
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-list-tabs button {
  background: var(--lulu-color-surface-raised);
  border-color: var(--lulu-color-border);
  min-height: 34px;
  padding: 0 8px;
}

.group-list-tabs button.active {
  background: var(--lulu-color-primary-soft);
  border-color: rgb(15 111 114 / 32%);
  color: var(--lulu-color-primary);
}

.group-preview-card,
.group-contact-option,
.group-confirm-card {
  align-items: center;
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
  display: grid;
  gap: var(--lulu-space-3);
  min-width: 0;
  padding: var(--lulu-space-3);
}

.group-preview-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.group-preview-card em,
.group-contact-option em {
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-primary);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  padding: 4px 8px;
  white-space: nowrap;
}

.group-preview-card strong,
.group-preview-card small,
.group-contact-option strong,
.group-contact-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-confirm-card strong,
.group-confirm-card small {
  display: block;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.group-preview-card small,
.group-contact-option small,
.group-confirm-card small,
.group-flow-copy span {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
}

.group-preview-avatar,
.group-confirm-avatar,
.group-avatar-preview {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border: 1px solid rgb(15 111 114 / 18%);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-weight: var(--lulu-font-weight-bold);
  justify-content: center;
  overflow: hidden;
}

.group-preview-avatar {
  height: 44px;
  width: 44px;
}

.group-confirm-avatar,
.group-avatar-preview {
  height: 72px;
  width: 72px;
}

.group-preview-avatar img,
.group-confirm-avatar img,
.group-avatar-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.group-stepper {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: max-content minmax(14px, 1fr) max-content minmax(14px, 1fr) max-content;
  min-width: 0;
  width: 100%;
}

.group-step {
  align-items: center;
  color: var(--lulu-color-muted);
  display: inline-flex;
  font-size: 12px;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.group-step.active {
  color: #071d49;
  font-weight: var(--lulu-font-weight-semibold);
}

.group-step[data-step-state="complete"] {
  color: var(--lulu-color-ink);
}

.group-step[data-step-state="upcoming"] {
  opacity: 0.62;
}

.group-step span {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-circle);
  display: inline-flex;
  font-size: 11px;
  height: 21px;
  justify-content: center;
  flex: 0 0 21px;
  width: 21px;
}

.group-step.active span,
.group-step[data-step-state="complete"] span {
  background: #071d49;
  border-color: #071d49;
  color: #ffffff;
}

.group-step-line {
  background: #d6dee8;
  display: block;
  height: 1px;
  min-width: 14px;
}

.group-flow-trail {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-2);
}

.group-flow-copy {
  display: grid;
  gap: 2px;
}

.group-contact-picker {
  max-height: min(46vh, 460px);
  overflow-y: auto;
  padding-right: 4px;
}

.group-contact-option {
  cursor: pointer;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.group-contact-option:hover,
.group-contact-option.selected {
  background: var(--lulu-color-primary-soft);
  border-color: rgb(15 111 114 / 35%);
}

.group-contact-option input {
  accent-color: var(--lulu-color-primary);
  height: 16px;
  width: 16px;
}

.group-contact-option .avatar {
  margin-right: 0;
}

.group-profile-draft {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: auto minmax(0, 1fr);
}

.group-profile-fields,
.group-policy-grid {
  display: grid;
  gap: var(--lulu-space-3);
}

.group-policy-grid {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
  padding: var(--lulu-space-3);
}

.group-policy-grid header,
.group-policy-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.group-policy-grid header span,
.group-policy-item small {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
  line-height: 1.35;
}

.group-policy-item {
  border-top: 1px solid var(--lulu-color-border);
  padding-top: var(--lulu-space-3);
}

.group-policy-item select {
  min-height: 44px;
  width: 100%;
}

.group-avatar-preview {
  cursor: pointer;
  position: relative;
}

.group-avatar-preview input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.group-avatar-preview em {
  background: rgb(23 35 43 / 62%);
  bottom: 0;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  left: 0;
  padding: 3px 0;
  position: absolute;
  text-align: center;
  width: 100%;
}

.group-selected-strip {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.group-selected-strip span {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  display: flex;
  gap: var(--lulu-space-2);
  min-width: 0;
  overflow: hidden;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-selected-strip .avatar {
  height: 24px;
  margin-right: 0;
  min-width: 24px;
  width: 24px;
}

.group-confirm-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.group-create-summary {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
  gap: 0;
  padding: var(--lulu-space-3);
}

.group-create-summary > strong {
  display: block;
  margin-bottom: 4px;
}

.group-summary-row {
  align-items: start;
  border-top: 1px solid var(--lulu-color-border);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  padding: 10px 0;
}

.group-summary-row span {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
}

.group-summary-row strong {
  font-size: var(--lulu-font-size-sm);
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.group-announcement-preview,
.group-home-announcement {
  background: var(--lulu-color-primary-soft);
  border: 1px solid rgb(15 111 114 / 18%);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: 4px;
  padding: var(--lulu-space-3);
}

.group-announcement-preview span,
.group-home-announcement strong {
  color: var(--lulu-color-text-soft);
  font-weight: var(--lulu-font-weight-medium);
}

.group-home-preview {
  align-content: start;
}

.group-home-final {
  gap: var(--lulu-space-3);
}

.group-home-hero {
  align-items: center;
  background: linear-gradient(135deg, var(--lulu-color-surface), var(--lulu-color-bg-soft));
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-sm);
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: var(--lulu-space-5);
}

.group-home-main {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: auto minmax(0, 1fr);
}

.group-home-main h2 {
  font-size: var(--lulu-font-size-xl);
  line-height: var(--lulu-line-height-tight);
  margin: 0;
}

.group-home-main p {
  color: var(--lulu-color-text-soft);
  margin: var(--lulu-space-2) 0 0;
}

.group-home-meta,
.group-home-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lulu-space-2);
}

.group-home-meta span {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
  padding: 4px 8px;
}

.group-home-quick-actions {
  justify-content: end;
}

.group-home-quick-actions button {
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
  display: grid;
  gap: 2px;
  min-height: 52px;
  min-width: 116px;
  text-align: left;
}

.group-home-quick-actions button small {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
}

.group-home-card {
  align-items: center;
  background: linear-gradient(135deg, var(--lulu-color-surface), var(--lulu-color-bg-soft));
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-sm);
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: auto minmax(0, 1fr);
  padding: var(--lulu-space-5);
}

.group-home-card strong {
  display: block;
  font-size: var(--lulu-font-size-xl);
  line-height: var(--lulu-line-height-tight);
}

.group-home-card small {
  color: var(--lulu-color-muted);
  display: block;
  margin-top: 4px;
}

.group-home-card p {
  color: var(--lulu-color-text-soft);
  margin: var(--lulu-space-2) 0 0;
}

.group-home-avatar {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border: 1px solid rgb(15 111 114 / 18%);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: var(--lulu-font-size-xl);
  font-weight: var(--lulu-font-weight-bold);
  height: 88px;
  justify-content: center;
  overflow: hidden;
  width: 88px;
}

.group-home-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.group-home-announcement span {
  color: var(--lulu-color-primary);
  font-size: var(--lulu-font-size-xs);
  font-weight: var(--lulu-font-weight-bold);
  text-transform: uppercase;
}

.group-home-tabs {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-1);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: var(--lulu-space-1);
}

.group-home-tabs button {
  background: transparent;
  border-color: transparent;
  min-height: 34px;
}

.group-home-tabs button.active {
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
  color: var(--lulu-color-primary);
  box-shadow: var(--lulu-shadow-sm);
}

.group-home-body,
.group-tab-panel {
  display: grid;
  gap: var(--lulu-space-3);
}

.group-tab-panel {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  padding: var(--lulu-space-4);
}

.group-tab-head {
  display: grid;
  gap: 2px;
}

.group-tab-head strong {
  font-size: var(--lulu-font-size-md);
}

.group-tab-head span {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-sm);
}

.group-chat-preview-card {
  background: var(--lulu-color-bg-soft);
  border: 1px dashed var(--lulu-color-border-strong);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-3);
  min-height: 180px;
  padding: var(--lulu-space-4);
}

.group-member-tools {
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: minmax(0, 1fr) auto;
}

.group-role-section {
  display: grid;
  gap: var(--lulu-space-2);
}

.group-member-preview-row {
  align-items: center;
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: var(--lulu-space-3);
}

.group-member-preview-row .avatar {
  margin-right: 0;
}

.group-member-preview-row strong,
.group-member-preview-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member-preview-row small {
  color: var(--lulu-color-muted);
}

.group-member-preview-row em {
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-primary);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  padding: 4px 8px;
  white-space: nowrap;
}

.group-settings-preview-list {
  display: grid;
  gap: var(--lulu-space-2);
}

.group-home-invite-list,
.group-management-actions {
  display: grid;
  gap: var(--lulu-space-2);
  margin-bottom: var(--lulu-space-3);
}

.group-management-actions {
  grid-template-columns: minmax(0, 1fr);
}

.group-management-actions form {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: minmax(0, 1fr) auto;
}

.group-management-actions select {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-text);
  min-height: 38px;
  padding: 0 var(--lulu-space-3);
}

.empty-copy {
  color: var(--lulu-color-muted);
  display: inline-flex;
  padding: var(--lulu-space-2) 0;
}

.group-profile-form {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-3);
  margin-bottom: var(--lulu-space-3);
  padding: var(--lulu-space-4);
}

.group-settings-product {
  gap: var(--lulu-space-4);
}

.group-settings-summary,
.group-settings-row,
.group-danger-copy {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
}

.group-settings-summary {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr);
  padding: var(--lulu-space-4);
}

.group-settings-summary-avatar {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-weight: var(--lulu-font-weight-bold);
  height: 56px;
  justify-content: center;
  overflow: hidden;
  width: 56px;
}

.group-settings-summary-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.group-settings-summary div,
.group-danger-copy,
.group-settings-row span:not(.settings-row-icon) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.group-settings-section,
.group-settings-list {
  display: grid;
  gap: var(--lulu-space-2);
}

.group-settings-row {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.group-settings-row:hover:not(.static) {
  border-color: rgb(15 111 114 / 30%);
  transform: translateY(-1px);
}

.group-settings-row.static {
  cursor: default;
}

.group-settings-row small,
.group-settings-summary small,
.group-danger-copy small {
  color: var(--lulu-color-muted);
}

.group-profile-role-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.group-profile-role-identity,
.group-profile-role-label {
  display: inline-flex;
  white-space: nowrap;
  word-break: keep-all;
}

.group-settings-row em {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  padding: 4px 8px;
}

.group-danger-zone {
  border-top: 1px solid var(--lulu-color-border);
  padding-top: var(--lulu-space-3);
}

.group-danger-copy {
  border-color: rgb(202 75 75 / 24%);
  padding: var(--lulu-space-3);
}

.group-danger-zone .danger {
  background: var(--lulu-color-danger);
  border-color: var(--lulu-color-danger);
  color: white;
}

.group-profile-form > label {
  display: grid;
  gap: var(--lulu-space-1);
}

.group-profile-form > label span {
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
}

.group-profile-form input,
.group-profile-form textarea {
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-text);
  font: inherit;
  padding: 9px 10px;
  resize: vertical;
}

.group-profile-actions {
  align-items: center;
  display: flex;
  gap: var(--lulu-space-2);
  justify-content: flex-end;
}

.secondary-button {
  align-items: center;
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-sm);
  color: var(--lulu-color-text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  min-height: 38px;
  padding: 0 var(--lulu-space-3);
}

.secondary-button input {
  display: none;
}

.group-home-actions {
  display: grid;
  gap: var(--lulu-space-2);
}

.group-home-actions button {
  align-items: center;
  background: var(--lulu-color-surface-raised);
  border-color: var(--lulu-color-border);
  display: grid;
  gap: 2px var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-items: start;
  min-height: 58px;
  text-align: left;
}

.group-home-actions button span:not(.settings-row-icon),
.group-home-actions button small {
  grid-column: 2;
}

.group-home-actions button small {
  color: var(--lulu-color-muted);
}

.group-home-actions button em {
  align-self: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 4px 8px;
}

.group-settings-preview-list button {
  align-items: center;
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
  display: grid;
  gap: 2px var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-items: start;
  min-height: 58px;
  text-align: left;
}

.group-settings-preview-list button span:not(.settings-row-icon),
.group-settings-preview-list button small {
  grid-column: 2;
}

.group-settings-preview-list button small {
  color: var(--lulu-color-muted);
}

.group-settings-preview-list button em {
  align-self: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 4px 8px;
}

.group-settings-preview-list button:last-child {
  color: var(--lulu-color-danger);
}

.group-media-preview-grid {
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-media-preview-grid article {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-2);
  min-height: 110px;
  padding: var(--lulu-space-4);
}

.group-media-preview-grid article span {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-weight: var(--lulu-font-weight-bold);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.group-media-preview-grid article small {
  color: var(--lulu-color-muted);
}

/* Sprint 16 Theme 5: Settings productization. */
.settings-product-shell {
  display: grid;
  gap: var(--lulu-space-4);
}

.settings-product-shell h2,
.settings-detail-head h2,
.profile-editor-card h2 {
  margin: 0;
}

.settings-product-shell p,
.settings-detail-head p,
.profile-editor-card p {
  margin: var(--lulu-space-1) 0 0;
}

.settings-dashboard-grid {
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-dashboard-card,
.device-summary-card,
.about-brand-card,
.settings-account-row,
.settings-toggle-row {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
}

.settings-dashboard-card {
  align-items: start;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 116px;
  padding: var(--lulu-space-4);
}

.settings-dashboard-card div,
.settings-account-row div,
.device-summary-card div,
.settings-toggle-row > span:not(.settings-row-icon) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-dashboard-card small,
.settings-dashboard-card span,
.settings-account-row small,
.settings-toggle-row small,
.device-summary-card span,
.about-brand-card span {
  color: var(--lulu-color-muted);
}

.settings-dashboard-card strong,
.settings-account-row strong,
.settings-toggle-row strong,
.device-summary-card strong {
  color: var(--lulu-color-text);
}

.settings-icon-list button {
  align-items: center;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.settings-icon-list button small {
  grid-column: 2;
}

.settings-icon-list button em {
  align-self: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-muted);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 4px 8px;
  white-space: nowrap;
}

.settings-row-icon {
  align-items: center;
  background: var(--lulu-color-primary-soft);
  border: 1px solid rgb(15 111 114 / 18%);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-size: var(--lulu-font-size-sm);
  font-weight: var(--lulu-font-weight-bold);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.settings-detail-panel {
  display: grid;
  gap: var(--lulu-space-4);
}

.settings-detail-head {
  display: grid;
  gap: 0;
}

.settings-metric-row {
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lulu-space-2);
}

.profile-editor-card {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
  padding: var(--lulu-space-4);
}

.device-summary-card,
.settings-account-row,
.settings-toggle-row {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: var(--lulu-space-4);
}

.device-summary-card em {
  background: var(--lulu-color-primary-soft);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-primary);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  padding: 4px 8px;
}

.device-session-list,
.settings-toggle-list {
  display: grid;
  gap: var(--lulu-space-3);
}

.settings-account-row .actions {
  margin-top: 0;
}

.settings-toggle-row input {
  accent-color: var(--lulu-color-primary);
  height: 18px;
  width: 18px;
}

.about-brand-card {
  display: grid;
  gap: 4px;
  padding: var(--lulu-space-5);
}

.about-brand-card img {
  border-radius: 12px;
  height: 56px;
  width: 56px;
}

.about-brand-card strong {
  font-size: var(--lulu-font-size-xl);
}

/* Sprint 16 Theme 4: Discover productization. */
.discovery-v2,
.discovery-v2 button,
.discovery-v2 input,
.discovery-v28,
.discovery-v28 button,
.group-center-v2,
.group-center-v2 button,
.group-center-v2 input,
.group-center-v2 select,
.group-center-v2 textarea,
.add-friend-v28,
.add-friend-v28 button,
.add-friend-v28 input,
.add-friend-results-page,
.add-friend-results-page button,
.discovery-user-profile-page,
.discovery-user-profile-page button {
  font-family: var(--lulu-font-family);
}

.discover-hero {
  background: linear-gradient(135deg, var(--lulu-color-surface), var(--lulu-color-bg-soft));
  display: grid;
  gap: var(--lulu-space-4);
}

.discover-hero h2,
.discover-home-panel h2,
.collection-v2 h2,
.qr-v2 h2,
.moments-v2 h2 {
  margin: 0;
}

.discover-hero p,
.discover-home-panel p,
.collection-v2 p,
.qr-v2 p {
  margin: var(--lulu-space-1) 0 0;
}

.discover-card-grid {
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.discover-card {
  align-content: start;
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: var(--lulu-space-4);
  text-align: left;
}

.discover-card:hover {
  border-color: rgb(15 111 114 / 28%);
  transform: translateY(-1px);
}

.discover-card.active {
  background: var(--lulu-color-primary-soft);
  border-color: rgb(15 111 114 / 35%);
  color: var(--lulu-color-primary);
}

.discover-card-icon {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-circle);
  color: var(--lulu-color-primary);
  display: inline-flex;
  font-weight: var(--lulu-font-weight-bold);
  height: 34px;
  justify-content: center;
  width: 34px;
}

.discover-card small,
.discover-feature-card span,
.moment-author small {
  color: var(--lulu-color-muted);
}

.discover-home-panel,
.collection-v2,
.qr-v2,
.moments-v2 {
  display: grid;
  gap: var(--lulu-space-4);
}

.discover-feature-list {
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discover-feature-card {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  padding: var(--lulu-space-4);
}

.discover-feature-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.discover-feature-card em {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-pill);
  color: var(--lulu-color-primary);
  font-size: var(--lulu-font-size-xs);
  font-style: normal;
  padding: 4px 8px;
  white-space: nowrap;
}

.collection-controls {
  display: grid;
  gap: var(--lulu-space-2);
  grid-template-columns: minmax(0, 1fr) auto;
}

.collection-filter-row,
.qr-actions,
.moment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lulu-space-2);
}

.qr-layout {
  align-items: start;
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.qr-card {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-lg);
  box-shadow: var(--lulu-shadow-sm);
  display: grid;
  gap: var(--lulu-space-2);
  justify-items: center;
  padding: var(--lulu-space-5);
}

.qr-card small {
  color: var(--lulu-color-muted);
}

.qr-grid {
  background: var(--lulu-color-surface);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(7, 1fr);
  margin-top: var(--lulu-space-2);
  padding: var(--lulu-space-3);
  width: min(100%, 220px);
}

.qr-grid span {
  aspect-ratio: 1;
  background: var(--lulu-color-bg-soft);
  border-radius: 3px;
}

.qr-grid span.filled {
  background: var(--lulu-color-text);
}

.qr-actions {
  align-content: start;
}

.moments-cover {
  align-items: end;
  background: linear-gradient(135deg, rgb(15 111 114 / 88%), rgb(49 69 84 / 88%));
  border-radius: var(--lulu-radius-lg);
  color: white;
  display: grid;
  gap: var(--lulu-space-4);
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 180px;
  padding: var(--lulu-space-5);
}

.moments-cover p {
  color: rgb(255 255 255 / 78%);
  margin: var(--lulu-space-1) 0 0;
}

.moments-cover .section-kicker {
  color: rgb(255 255 255 / 78%);
}

.moment-composer-card,
.moment-card {
  background: var(--lulu-color-surface-raised);
  border: 1px solid var(--lulu-color-border);
  border-radius: var(--lulu-radius-md);
  box-shadow: var(--lulu-shadow-sm);
  display: grid;
  gap: var(--lulu-space-3);
  padding: var(--lulu-space-4);
}

.moment-composer-card {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.moment-composer-card button {
  justify-content: start;
  min-height: 42px;
  text-align: left;
}

.moment-author {
  align-items: center;
  display: grid;
  gap: var(--lulu-space-3);
  grid-template-columns: auto minmax(0, 1fr);
}

.moment-author div {
  display: grid;
  gap: 2px;
}

.moment-card p {
  margin: 0;
}

.moment-media-placeholder {
  align-items: center;
  background: var(--lulu-color-bg-soft);
  border: 1px dashed var(--lulu-color-border-strong);
  border-radius: var(--lulu-radius-md);
  color: var(--lulu-color-muted);
  display: grid;
  min-height: 120px;
  place-items: center;
}

/* Sprint 16 Theme 8: Information density and desktop efficiency. */
:root {
  --lulu-density-page-gap: 12px;
  --lulu-density-card-gap: 10px;
  --lulu-density-card-padding: 12px;
  --lulu-density-row-height: 58px;
  --lulu-density-row-padding: 8px 10px;
  --lulu-density-avatar: 40px;
  --lulu-density-avatar-sm: 30px;
  --lulu-density-header-height: 56px;
}

.content,
.chat-route-layout .content,
.chat-content {
  gap: var(--lulu-density-page-gap);
  padding: 18px 20px;
}

.topbar {
  min-height: var(--lulu-density-header-height);
  padding: 10px 14px;
}

.topbar h1,
.topbar h2,
.contact-hero h2,
.settings-v2 h2,
.settings-product-shell h2,
.settings-detail-head h2,
.discover-hero h2,
.discover-home-panel h2,
.collection-v2 h2,
.qr-v2 h2,
.moments-v2 h2,
.profile-summary-card h2,
.profile-editor-card h2 {
  line-height: 1.18;
}

.topbar p,
.contact-hero p,
.discovery-search p,
.settings-v2 p,
.settings-product-shell p,
.settings-detail-head p,
.discover-hero p,
.discover-home-panel p,
.collection-v2 p,
.qr-v2 p,
.profile-summary-card p,
.profile-editor-card p {
  line-height: 1.35;
  margin-top: 2px;
}

.panel,
.item,
.contact-hero,
.discover-hero,
.profile-card-v2,
.profile-editor-card,
.moment-composer-card,
.moment-card,
.qr-card,
.settings-dashboard-card,
.device-summary-card,
.about-brand-card,
.settings-account-row,
.settings-toggle-row,
.discover-card,
.discover-feature-card {
  padding: var(--lulu-density-card-padding);
}

.contact-center-v2,
.discovery-v2,
.me-v2,
.settings-product-shell,
.settings-detail-panel,
.discover-home-panel,
.collection-v2,
.qr-v2,
.moments-v2,
.contact-directory,
.contact-detail,
.tag-list-panel,
.tag-member-panel,
.discovery-results-panel,
.settings-v2,
.profile-card-v2,
.contact-profile {
  gap: var(--lulu-density-card-gap);
}

.settings-dashboard-grid,
.settings-metric-row,
.discover-card-grid,
.discover-feature-list,
.request-board {
  gap: var(--lulu-density-card-gap);
}

.product-list button,
.settings-icon-list button,
.settings-account-row,
.settings-toggle-row,
.device-summary-card,
.discover-feature-card,
.contact-row,
.favorite-card,
.tag-card,
.discovery-user-card {
  min-height: var(--lulu-density-row-height);
}

.product-list button,
.settings-icon-list button {
  gap: 2px 10px;
  padding: var(--lulu-density-row-padding);
}

.settings-dashboard-card {
  gap: 9px;
  min-height: 88px;
}

.settings-row-icon,
.discover-card-icon,
.tag-icon {
  height: 30px;
  width: 30px;
}

.settings-toggle-row input {
  height: 16px;
  width: 16px;
}

.contact-hero {
  gap: var(--lulu-density-card-gap);
  min-height: 0;
}

.contact-row {
  gap: 10px;
  padding-block: 8px;
}

.contact-card-main {
  gap: 10px;
  grid-template-columns: var(--lulu-density-avatar) minmax(0, 1fr);
}

.contact-card,
.compact-user-card,
.discovery-user-card,
.member-item,
.contact-checkbox {
  padding: var(--lulu-density-row-padding);
}

.contact-profile-hero,
.profile-summary-card {
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.contact-profile-hero h2,
.profile-summary-card h2 {
  font-size: var(--lulu-font-size-lg);
}

.profile-facts div {
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 8px 10px;
}

.contact-picker {
  max-height: 220px;
}

.discovery-search {
  gap: var(--lulu-density-card-gap);
}

.search-mode-grid {
  gap: 6px;
}

.search-mode-grid button,
.collection-filter-row button,
.qr-actions button,
.moment-actions button,
.profile-action-row button {
  min-height: 34px;
  padding: 0 10px;
}

.discover-card {
  gap: 4px;
  min-height: 92px;
}

.discover-feature-card {
  gap: 10px;
  padding: 10px 12px;
}

.qr-layout {
  gap: var(--lulu-density-card-gap);
}

.qr-card {
  gap: 6px;
  padding: 14px;
}

.qr-grid {
  gap: 3px;
  margin-top: 6px;
  padding: 10px;
  width: min(100%, 190px);
}

.moments-cover {
  gap: 12px;
  min-height: 136px;
  padding: 16px;
}

.moment-composer-card,
.moment-card {
  gap: 10px;
  padding: 12px;
}

.moment-media-placeholder {
  min-height: 92px;
}

.chat-mvp {
  max-height: calc(100vh - 36px);
}

.chat-list-header,
.group-members-header {
  min-height: 54px;
  padding: 10px 12px;
}

.chat-list-item {
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr);
  height: 64px;
  min-height: 64px;
  padding: 7px 9px;
}

.chat-list-avatar,
.chat-list-avatar-wrap {
  height: 44px;
  min-width: 44px;
  width: 44px;
}

.chat-list-row:nth-child(2) {
  min-height: 18px;
}

.chat-list-title {
  font-size: var(--lulu-font-size-sm);
}

.chat-list-summary {
  font-size: var(--lulu-font-size-xs);
  line-height: 1.25;
}

.chat-list-type {
  font-size: 11px;
}

.unread-badge {
  min-height: 18px;
  min-width: 18px;
  padding: 0 5px;
}

.chat-header {
  min-height: 58px;
  padding: 9px 12px;
}

.chat-header h2 {
  font-size: var(--lulu-font-size-lg);
}

.chat-header p {
  line-height: 1.25;
  margin-top: 2px;
}

.chat-header-actions > button,
.member-menu-reserve {
  height: 30px;
  min-height: 30px;
  width: 30px;
}

.chat-timeline {
  padding: 14px 16px;
}

.message-stack {
  gap: 8px;
}

.time-divider {
  padding: 3px 9px;
}

.message-system {
  padding: 4px 10px;
}

.message-bubble {
  gap: 6px;
  padding: 8px 10px 6px;
}

.message-sender .avatar {
  height: var(--lulu-density-avatar-sm);
  min-width: var(--lulu-density-avatar-sm);
  width: var(--lulu-density-avatar-sm);
}

.message-content-frame {
  gap: 6px;
}

.message-action-menu summary {
  height: 26px;
  width: 30px;
}

.media-file-card,
.file-card {
  min-height: 64px;
  padding: 10px;
}

.file-type-icon {
  height: 42px;
  width: 42px;
}

.message-composer {
  gap: 10px;
  padding: 9px 12px;
}

.message-composer textarea {
  min-height: 40px;
  padding: 8px 10px;
}

.attachment-picker,
.message-composer .primary,
.composer-emoji-button {
  height: 40px;
  min-height: 40px;
}

.composer-emoji-button {
  width: 40px;
}

.pending-attachment-card,
.upload-preview-card {
  padding: 7px;
}

.group-members {
  padding: 10px;
}

.member-list {
  gap: 6px;
  max-height: min(64vh, 640px);
  padding-right: 4px;
}

.member-item {
  gap: 8px;
  min-height: 54px;
  padding: 7px 8px;
}

.member-item .avatar {
  height: 34px;
  min-width: 34px;
  width: 34px;
}

.member-presence {
  left: 30px;
  top: 30px;
}

.member-item button,
.group-members > .compact-action,
.group-members > .actions button {
  min-height: 30px;
  padding: 0 9px;
}

.avatar,
.avatar-wrap .avatar,
.discovery-user-card .avatar,
.contact-row .avatar {
  height: var(--lulu-density-avatar);
  min-width: var(--lulu-density-avatar);
  width: var(--lulu-density-avatar);
}

.avatar-large {
  height: 64px;
  width: 64px;
}

.product-empty {
  gap: 6px;
  min-height: 116px;
  padding: 16px;
}

.product-empty .empty-icon {
  height: 38px;
  width: 38px;
}

@media (max-width: 1080px) {
  .contact-workspace,
  .request-board {
    grid-template-columns: 1fr;
  }

  .discovery-user-card,
  .favorite-card,
  .tag-card,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .search-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-card-grid,
  .discover-feature-list,
  .qr-layout,
  .settings-dashboard-grid,
  .settings-metric-row {
    grid-template-columns: 1fr;
  }

  .settings-icon-list button,
  .device-summary-card,
  .settings-account-row,
  .settings-toggle-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .settings-icon-list button em,
  .settings-account-row .actions {
    grid-column: 2;
    grid-row: auto;
  }
}

.group-members {
  min-width: 0;
}

.member-item {
  min-height: 72px;
}

.member-more-menu .dropdown-panel {
  min-width: 136px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lulu-color-bg: #101719;
    --lulu-color-bg-elevated: #162124;
    --lulu-color-bg-soft: #1d2a2e;
    --lulu-color-bg-muted: #223237;
    --lulu-color-surface: #172225;
    --lulu-color-surface-raised: #1b292d;
    --lulu-color-surface-selected: #203a3b;
    --lulu-color-border: #2c4147;
    --lulu-color-border-strong: #3d5960;
    --lulu-color-text: #edf6f4;
    --lulu-color-text-soft: #d1dfdc;
    --lulu-color-muted: #91a6aa;
    --lulu-color-primary: #42b7ad;
    --lulu-color-primary-hover: #67cac2;
    --lulu-color-primary-soft: #173d3c;
    --lulu-color-danger-soft: #3d2021;
    --lulu-color-own-message: #1e4b44;
    --lulu-color-peer-message: #182528;
    --lulu-shadow-sm: 0 1px 2px rgb(0 0 0 / 20%);
    --lulu-shadow-md: 0 12px 28px rgb(0 0 0 / 34%);
    --lulu-shadow-lg: 0 24px 60px rgb(0 0 0 / 42%);
  }

  body {
    background: var(--lulu-color-bg);
  }

  .sidebar {
    background: #0d191c;
  }

  .chat-header {
    background: rgb(23 34 37 / 92%);
  }

  .chat-timeline {
    background:
      radial-gradient(circle at 16px 16px, rgb(66 183 173 / 7%) 0 1px, transparent 1px 100%),
      linear-gradient(180deg, rgb(18 27 30 / 96%), rgb(14 22 24 / 98%)),
      var(--lulu-color-bg);
  }

  .time-divider,
  .message-action-menu summary {
    background: rgb(27 41 45 / 92%);
  }
}

:root[data-lulu-theme="dark"] {
  --lulu-color-bg: #101719;
  --lulu-color-bg-elevated: #162124;
  --lulu-color-bg-soft: #1d2a2e;
  --lulu-color-bg-muted: #223237;
  --lulu-color-surface: #172225;
  --lulu-color-surface-raised: #1b292d;
  --lulu-color-surface-selected: #203a3b;
  --lulu-color-border: #2c4147;
  --lulu-color-border-strong: #3d5960;
  --lulu-color-text: #edf6f4;
  --lulu-color-text-soft: #d1dfdc;
  --lulu-color-muted: #91a6aa;
  --lulu-color-primary: #42b7ad;
  --lulu-color-primary-hover: #67cac2;
  --lulu-color-primary-soft: #173d3c;
  --lulu-color-danger-soft: #3d2021;
  --lulu-color-own-message: #1e4b44;
  --lulu-color-peer-message: #182528;
  --lulu-shadow-sm: 0 1px 2px rgb(0 0 0 / 20%);
  --lulu-shadow-md: 0 12px 28px rgb(0 0 0 / 34%);
  --lulu-shadow-lg: 0 24px 60px rgb(0 0 0 / 42%);
}

html[data-lulu-theme="dark"] body {
  background: var(--lulu-color-bg);
}

html[data-lulu-theme="dark"] .sidebar {
  background: #0d191c;
}

html[data-lulu-theme="dark"] .chat-header {
  background: rgb(23 34 37 / 92%);
}

html[data-lulu-theme="dark"] .chat-timeline {
  background:
    radial-gradient(circle at 16px 16px, rgb(66 183 173 / 7%) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgb(18 27 30 / 96%), rgb(14 22 24 / 98%)),
    var(--lulu-color-bg);
}

html[data-lulu-theme="dark"] .time-divider,
html[data-lulu-theme="dark"] .message-action-menu summary {
  background: rgb(27 41 45 / 92%);
}

@media (max-width: 760px) {
  html,
  body,
  #app,
  .app-shell {
    height: 100%;
    min-height: 0;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
  }

  .sidebar {
    border-right: 0;
    border-top: 1px solid var(--lulu-color-border);
    box-shadow: 0 -8px 28px rgb(21 38 58 / 8%);
    max-height: none;
    order: 2;
    overflow: visible;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  }

  .content {
    order: 1;
    overflow: hidden;
  }

  .brand {
    height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .nav button {
    border-radius: 12px;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-height: 50px;
    padding: 6px 4px;
    text-align: center;
  }

  .nav button[data-view="collection"],
  .nav button[data-view="qr"],
  .nav button[data-view="moments"] {
    display: none;
  }

  .nav-separator {
    display: none;
  }

  .nav-icon {
    font-size: 18px;
    line-height: 1;
    width: auto;
  }

  .nav-label {
    font-size: 12px;
    line-height: 1.15;
  }

  .contact-workspace {
    grid-template-columns: 1fr;
  }

  .list-controls {
    grid-template-columns: 1fr;
  }

  .chat-mvp {
    grid-template-columns: 1fr;
    align-self: stretch;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .chat-content > .chat-mvp {
    min-height: 0;
  }

  .chat-route-layout .content,
  .chat-content {
    min-height: 0;
    padding: 8px 8px 10px;
  }

  .chat-main {
    grid-template-rows: auto minmax(96px, 1fr) auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .chat-timeline {
    min-height: 96px;
    overscroll-behavior: contain;
  }

  .chat-mvp.show-list .chat-main,
  .chat-mvp.show-list .group-members {
    display: none;
  }

  .chat-mvp.show-chat .chat-list,
  .chat-mvp.show-chat .group-members {
    display: none;
  }

  .chat-mvp.show-chat .group-management-panel .group-members {
    display: grid;
  }

  .chat-back {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    padding: 0;
  }

  .group-members {
    border-left: 0;
    border-top: 1px solid #d9e0e6;
  }

  .message-bubble {
    max-width: 92%;
  }

  .message-composer {
    align-items: end;
    border-radius: 0;
    grid-template-columns: 44px minmax(0, 1fr) 44px 56px;
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .message-composer textarea {
    line-height: 22px;
    max-height: 120px;
    min-height: 44px;
    padding-bottom: 11px;
    padding-top: 11px;
  }

  .message-composer .primary,
  .attachment-picker,
  .composer-emoji-button {
    min-height: 44px;
  }

  .attachment-picker strong {
    display: none;
  }

  .pending-attachment-card {
    grid-column: 1 / -1;
  }

  .group-center-content {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .group-center-v2,
  .group-center-layout,
  .group-list-panel,
  .group-create-panel {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .group-center-v2,
  .group-center-layout {
    grid-template-rows: none;
  }

  .group-center-layout {
    grid-template-columns: 1fr;
  }

  .group-center-v2.group-center-list-mode .group-create-panel,
  .group-center-v2.group-center-create-mode .group-list-panel {
    display: none;
  }

  .group-preview-list {
    max-height: min(52vh, 420px);
    overflow-y: auto;
  }

  .group-hero,
  .group-home-hero,
  .group-home-main {
    grid-template-columns: 1fr;
  }

  .group-home-quick-actions {
    justify-content: stretch;
  }

  .group-home-quick-actions button {
    min-width: 0;
  }

  .group-home-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1420px) {
  .chat-mvp {
    grid-template-columns: 300px minmax(0, 1fr) 240px;
  }

  .group-members {
    display: grid;
  }
}

@keyframes skeleton-pulse {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.desktop-menu-button,
.desktop-route-directory,
.desktop-split-resizer,
.desktop-drawer-layer {
  display: none;
}

@media (min-width: 768px) {
  html,
  body,
  #app {
    height: 100%;
    min-height: 0;
  }

  body {
    background:
      linear-gradient(135deg, rgb(7 29 73 / 14%), rgb(245 247 250 / 0%) 42%),
      #e9eef5;
    overflow: hidden;
  }

  .mobile-v28-shell {
    background: #f7f9fc;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: 100vh;
    margin: 0 auto;
    max-width: none;
    min-height: 0;
    overflow: hidden;
    width: 100vw;
  }

  .mobile-v28-shell.has-desktop-directory {
    grid-template-columns: var(--desktop-directory-width, 340px) 10px minmax(0, 1fr);
  }

  .mobile-v28-shell .content {
    display: grid;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .mobile-v28-shell .page-content {
    background: #f4f7fb;
    overflow: auto;
  }

  .mobile-v28-topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #dfe5ee;
    color: #101828;
    display: flex;
    flex: 0 0 auto;
    height: 58px;
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    position: relative;
    z-index: 20;
  }

  .mobile-v28-topbar h1 {
    font-size: 17px;
    font-weight: 700;
    left: 50%;
    line-height: 1.2;
    margin: 0;
    max-width: calc(100% - 136px);
    overflow: hidden;
    position: absolute;
    text-align: center;
    text-overflow: ellipsis;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }

  .desktop-menu-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #071d49;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    position: absolute;
    left: max(14px, env(safe-area-inset-left));
    width: 42px;
  }

  .desktop-menu-button:hover:not(:disabled) {
    background: #eef4ff;
    border-color: transparent;
  }

  .mobile-plus-button {
    background: transparent;
    border: 0;
    color: #071d49;
    font-size: 0;
    min-height: 42px;
    padding: 0;
    position: absolute;
    right: max(14px, env(safe-area-inset-right));
    width: 42px;
  }

  .mobile-plus-button svg {
    height: 23px;
    width: 23px;
  }

  .mobile-back-button {
    background: transparent;
    border: 0;
    color: #071d49;
    min-height: 42px;
    position: absolute;
    left: max(14px, env(safe-area-inset-left));
    width: 42px;
  }

  .mobile-topbar-action {
    background: transparent;
    border: 0;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
    min-height: 42px;
    padding: 0;
    position: absolute;
    right: max(16px, env(safe-area-inset-right));
  }

  .mobile-bottom-nav {
    display: none;
  }

  .chat-route-layout > .content > .mobile-v28-topbar,
  .root-route-layout.has-desktop-directory > .content > .mobile-v28-topbar {
    display: none;
  }

  .chat-route-layout > .content {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .has-desktop-directory > .content > .mobile-v28-topbar .desktop-menu-button {
    visibility: hidden;
  }

  .desktop-route-directory {
    background: #ffffff;
    border-right: 1px solid #dfe5ee;
    display: grid;
    gap: 12px;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    padding: 12px;
  }

  .desktop-split-resizer {
    align-self: stretch;
    background: transparent;
    cursor: col-resize;
    display: block;
    min-height: 0;
    position: relative;
    z-index: 12;
  }

  .desktop-split-resizer::before {
    background: rgb(7 29 73 / 16%);
    content: "";
    inset: 0 auto 0 4px;
    position: absolute;
    width: 1px;
  }

  .desktop-split-resizer:hover::before {
    background: #8fb8ff;
  }

  .desktop-split-resizer:focus-visible::before,
  .desktop-split-resizer.is-dragging::before {
    background: #2563eb;
    width: 2px;
  }

  .desktop-split-resizer:focus-visible {
    outline: 0;
  }

  body.is-resizing-desktop-split {
    cursor: col-resize;
    user-select: none;
  }

  .desktop-route-directory-header {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .desktop-route-search {
    align-items: center;
    background: #eef2f6;
    border: 1px solid #e1e7ef;
    border-radius: 999px;
    color: #667085;
    display: grid;
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 42px;
    padding: 0 12px;
  }

  .desktop-route-search input {
    background: transparent;
    border: 0;
    min-height: 38px;
    padding: 0;
  }

  .desktop-route-directory-section {
    align-content: start;
    display: grid;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
  }

  .desktop-route-directory-section > strong {
    color: #071d49;
    font-size: 20px;
    font-weight: 800;
    padding: 8px 6px 0;
  }

  .desktop-route-directory-section > small {
    color: #667085;
    font-size: 13px;
    padding: 0 6px 8px;
  }

  .desktop-route-directory .contact-entry-row,
  .desktop-directory-row {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
    color: #263243;
    display: grid;
    gap: 12px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    justify-content: start;
    min-height: 54px;
    padding: 8px 6px;
    text-align: left;
  }

  .desktop-directory-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .desktop-route-directory .contact-entry-row:hover:not(:disabled),
  .desktop-directory-row:hover:not(:disabled),
  .desktop-route-directory .contact-entry-row.active,
  .desktop-directory-row.active {
    background: #eef4ff;
    border-radius: 12px;
    color: #071d49;
  }

  .desktop-directory-compact .desktop-route-directory {
    padding: 10px 8px;
  }

  .desktop-directory-compact .desktop-route-directory-header {
    justify-items: center;
    grid-template-columns: 1fr;
  }

  .desktop-directory-compact .desktop-route-search {
    display: none;
  }

  .desktop-directory-compact .desktop-route-directory-section {
    align-items: center;
  }

  .desktop-directory-compact .desktop-route-directory-section > strong,
  .desktop-directory-compact .desktop-route-directory-section > small,
  .desktop-directory-compact .desktop-route-directory .contact-entry-row > span:nth-child(2),
  .desktop-directory-compact .desktop-route-directory .contact-entry-row em,
  .desktop-directory-compact .desktop-directory-row span {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .desktop-directory-compact .desktop-route-directory .contact-entry-row,
  .desktop-directory-compact .desktop-directory-row {
    border-bottom: 0;
    border-radius: 16px;
    grid-template-columns: 1fr;
    height: 56px;
    justify-items: center;
    min-height: 56px;
    padding: 0;
    width: 56px;
  }

  .desktop-route-directory .contact-entry-row small,
  .desktop-directory-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-route-directory .contact-entry-row .chevron {
    display: none;
  }

  .desktop-route-directory .danger-text {
    color: #b93535;
  }

  .desktop-drawer-layer {
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 1200;
  }

  .desktop-drawer-layer.open {
    display: block;
    pointer-events: auto;
  }

  .desktop-drawer-backdrop {
    background: rgb(15 23 42 / 30%);
    border: 0;
    border-radius: 0;
    height: 100%;
    inset: 0;
    min-height: 0;
    padding: 0;
    position: absolute;
    width: 100%;
  }

  .desktop-drawer-panel {
    background: #ffffff;
    border-radius: 0 18px 18px 0;
    box-shadow: 18px 0 48px rgb(7 29 73 / 20%);
    color: #101828;
    display: grid;
    gap: 16px;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    max-width: 360px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    position: relative;
    width: min(360px, 88vw);
  }

  .desktop-drawer-header {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr) 42px;
  }

  .desktop-drawer-logo {
    background: url("./assets/bb-chat-icon.svg?v=v82-557eec24448872cc") center / contain no-repeat;
    border-radius: 12px;
    display: block;
    height: 44px;
    width: 44px;
  }

  .desktop-drawer-header strong,
  .desktop-drawer-header small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-drawer-header strong {
    color: #071d49;
    font-size: 18px;
    font-weight: 780;
  }

  .desktop-drawer-header small {
    color: #667085;
    font-size: 13px;
  }

  .desktop-drawer-close {
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #475467;
    height: 42px;
    min-height: 42px;
    padding: 0;
    width: 42px;
  }

  .desktop-drawer-nav,
  .desktop-drawer-account {
    display: grid;
    gap: 8px;
  }

  .desktop-drawer-nav button,
  .desktop-drawer-account button {
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #263243;
    display: grid;
    font-size: 15px;
    gap: 12px;
    grid-template-columns: 26px minmax(0, 1fr);
    justify-content: start;
    min-height: 46px;
    padding: 0 12px;
    text-align: left;
  }

  .desktop-drawer-nav button:hover:not(:disabled),
  .desktop-drawer-account button:hover:not(:disabled) {
    background: #f1f5fb;
  }

  .desktop-drawer-nav button.active {
    background: #eef4ff;
    color: #071d49;
    font-weight: 760;
  }

  .desktop-drawer-icon,
  .desktop-action-svg {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }

  .desktop-drawer-account {
    align-content: end;
    border-top: 1px solid #e8edf5;
    padding-top: 14px;
  }

  .desktop-drawer-account .current-account {
    background: #f7f9fc;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
    color: #263243;
    display: grid;
    gap: 2px;
    padding: 12px;
  }

  .chat-route-layout .chat-mvp {
    align-items: stretch;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: var(--desktop-directory-width, 340px) 10px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  .chat-route-layout .chat-mvp.show-list .chat-list,
  .chat-route-layout .chat-mvp.show-chat .chat-list,
  .chat-route-layout .chat-mvp.show-list .chat-main,
  .chat-route-layout .chat-mvp.show-chat .chat-main {
    display: grid;
  }

  .chat-route-layout .chat-mvp.show-list .group-members,
  .chat-route-layout .chat-mvp.show-chat .group-members {
    display: none;
  }

  .chat-route-layout .chat-filter-tabs {
    display: none;
  }

  .chat-list {
    align-self: stretch;
    border-right: 1px solid #e1e7f0;
    height: 100%;
    min-height: 0;
  }

  .chat-route-layout .chat-mvp.desktop-directory-compact .chat-list {
    width: var(--desktop-directory-width, 76px);
  }

  .chat-route-layout .chat-mvp.desktop-directory-compact .chat-list-header {
    padding: 10px 8px;
  }

  .chat-route-layout .chat-mvp.desktop-directory-compact .chat-list-toolbar {
    justify-items: center;
    grid-template-columns: 1fr;
  }

  .chat-route-layout .chat-mvp.desktop-directory-compact .chat-list-search,
  .chat-route-layout .chat-mvp.desktop-directory-compact .chat-list-title-row,
  .chat-route-layout .chat-mvp.desktop-directory-compact .chat-list-content {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .chat-route-layout .chat-mvp.desktop-directory-compact .chat-list-item {
    border: 0;
    border-radius: 18px;
    grid-template-columns: 1fr;
    height: 66px;
    justify-items: center;
    margin: 3px 6px;
    min-height: 66px;
    padding: 8px 0;
  }

  .chat-list-header {
    background: #ffffff;
    border-bottom: 1px solid #e6ebf2;
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .chat-list-toolbar {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chat-list-title-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .chat-list-title-row strong {
    color: #071d49;
    font-size: 16px;
    font-weight: 780;
  }

  .chat-list-title-row span {
    color: #667085;
    font-size: 13px;
  }

  .chat-list-menu-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #071d49;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    width: 42px;
  }

  .chat-list-menu-button:hover:not(:disabled) {
    background: #eef4ff;
    border-color: transparent;
  }

  .chat-list-search {
    align-items: center;
    background: #eef2f6;
    border: 1px solid #e1e7ef;
    border-radius: 999px;
    color: #667085;
    display: grid;
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 42px;
    padding: 0 12px;
  }

  .chat-list-search input {
    background: transparent;
    border: 0;
    color: #101828;
    min-height: 38px;
    padding: 0;
  }

  .chat-list-search input:focus-visible {
    box-shadow: none;
  }

  .chat-filter-tabs {
    background: #ffffff;
    border-bottom: 1px solid #e6ebf2;
  }

  .chat-main {
    align-self: stretch;
    background: #f8fbff;
    height: 100%;
    min-height: 0;
  }

  .chat-timeline.empty {
    align-items: center;
    display: grid;
    min-height: 0;
  }

  .chat-default-empty {
    align-self: center;
    justify-self: center;
    max-width: min(460px, 70%);
  }

  .page-route-layout .page-content {
    min-height: 0;
    padding: 0;
  }

  .contact-center-v2,
  .discovery-v2,
  .discovery-v28,
  .settings-v28,
  .settings-page,
  .mobile-secondary-page {
    align-content: start;
    margin-left: 0;
    margin-right: auto;
    max-width: min(1180px, 100%);
    min-height: 100%;
    padding: 28px 32px;
    width: 100%;
  }

  .page-content > :is(.contact-center-v2, .discovery-v2, .discovery-v28, .settings-v28, .settings-page, .mobile-secondary-page) {
    box-sizing: border-box;
  }

  .contact-workspace,
  .group-create-panel,
  .settings-v28-group,
  .discovery-search,
  .discovery-results-panel,
  .discover-hero,
  .discover-home-panel {
    max-width: none;
  }

  .settings-v28-group {
    display: grid;
    grid-template-columns: minmax(280px, 640px);
  }

  .settings-v28-group.settings-danger-group {
    grid-template-columns: minmax(260px, 520px);
  }

  .settings-v28-row {
    min-height: 60px;
  }

  .contact-workspace {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.9fr);
  }

  .contact-workspace.contact-root-list {
    grid-template-columns: minmax(420px, 1fr);
  }

  .contact-root-v28 > .contact-entry-list {
    display: none;
  }

  .discovery-v2,
  .discovery-v28 {
    grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1fr);
  }

  .discover-hero {
    grid-column: 1 / -1;
  }

  .discovery-search,
  .discovery-results-panel {
    align-self: stretch;
  }
}

@media (min-width: 1024px) {
  .mobile-v28-shell.has-desktop-directory,
  .chat-route-layout .chat-mvp {
    grid-template-columns: var(--desktop-directory-width, 360px) 10px minmax(0, 1fr);
  }
}

.login-password-change-page {
  background: #f4f7fb;
  min-height: 100%;
  padding-bottom: calc(44px + env(safe-area-inset-bottom));
}

.login-password-change-form {
  display: grid;
  gap: 0;
  max-width: 560px;
}

.login-password-context {
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.login-password-row {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e4e9f2;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(112px, 136px) minmax(0, 1fr);
  min-height: 60px;
  padding: 0 16px;
}

.login-password-row:first-of-type {
  border-radius: 8px 8px 0 0;
}

.login-password-row:nth-of-type(4) {
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.login-password-row span {
  color: #101828;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.login-password-row input {
  background: transparent;
  border: 0;
  color: #101828;
  font-size: 15px;
  min-height: 44px;
  min-width: 0;
  outline: none;
  width: 100%;
}

.login-password-row input[readonly] {
  color: #667085;
  -webkit-text-fill-color: #667085;
}

.login-password-rule {
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
  margin: 14px 2px 18px;
  word-break: keep-all;
}

/* BB CHAT v28 mobile product shell */
@media (max-width: 767px) {
  html,
  body,
  #app {
    height: 100%;
    min-height: 0;
  }

  body {
    overflow: hidden;
  }

  .mobile-v28-shell {
    background: #f5f6f8;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
  }

  .mobile-v28-shell .content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    order: 1;
    overflow: hidden;
    padding: env(safe-area-inset-top) 0 0;
  }

  .mobile-v28-topbar {
    align-items: center;
    background: #071d49;
    border-bottom: 0;
    color: #ffffff;
    display: flex;
    flex: 0 0 auto;
    height: 50px;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    position: relative;
    z-index: 20;
  }

  .chat-info-secondary-route > .content > .mobile-v28-topbar {
    background: #ffffff;
    border-bottom: 1px solid #dfe5ee;
    color: #101828;
    height: 58px;
  }

  .chat-info-secondary-route .mobile-back-button,
  .chat-info-secondary-route .mobile-topbar-action {
    color: #101828;
  }

  .mobile-v28-topbar h1 {
    font-size: 17px;
    font-weight: 700;
    left: 50%;
    line-height: 1.2;
    margin: 0;
    max-width: calc(100% - 128px);
    overflow: hidden;
    position: absolute;
    text-align: center;
    text-overflow: ellipsis;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }

  .mobile-back-button,
  .mobile-plus-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    display: inline-flex;
    font-size: 0;
    font-weight: 650;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    padding: 0;
    position: absolute;
    width: 44px;
  }

  .mobile-plus-button {
    line-height: 1;
    right: max(12px, env(safe-area-inset-right));
  }

  .mobile-back-button,
  .mobile-v28-topbar .desktop-menu-button {
    left: max(12px, env(safe-area-inset-left));
  }

  .mobile-topbar-action {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    height: 44px;
    min-width: 44px;
    padding: 0;
    position: absolute;
    right: max(12px, env(safe-area-inset-right));
  }

  .login-password-change-page {
    padding: 18px 16px calc(40px + env(safe-area-inset-bottom));
  }

  .login-password-change-form {
    max-width: none;
  }

  .login-password-row {
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
    padding: 0 14px;
  }

  .mobile-plus-svg {
    display: block;
    height: 22px;
    width: 22px;
  }

  .back-chevron-svg,
  .row-chevron-svg {
    display: block;
    flex: 0 0 auto;
  }

  .chat-actions-popover {
    background: #fff;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgb(18 31 49 / 18%);
    display: grid;
    min-width: 178px;
    overflow: hidden;
    position: absolute;
    right: 12px;
    top: calc(100% + 6px);
    z-index: 40;
  }

  .chat-actions-popover button {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    color: #101828;
    display: grid;
    font-size: 16px;
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 48px;
    padding: 0 14px;
    text-align: left;
  }

  .chat-actions-popover button:last-child {
    border-bottom: 0;
  }

  .root-route-layout .sidebar {
    background: #fff;
    border-top: 1px solid #dfe4ec;
    box-shadow: none;
    flex: 0 0 auto;
    order: 2;
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom));
  }

  .secondary-route-layout .sidebar {
    display: none;
  }

  .root-route-layout .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .root-route-layout .nav button {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #7b8490;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 3px;
    min-height: 52px;
    padding: 5px 2px;
  }

  .root-route-layout .nav button.active {
    background: #eef4ff;
    box-shadow: none;
    color: #071d49;
  }

  .chat-route-layout:has(.chat-mvp.show-chat) > .content > .mobile-v28-topbar,
  .chat-route-layout:has(.chat-mvp.show-chat) > .mobile-bottom-nav {
    display: none;
  }

  .nav-separator,
  .brand,
  .demo-banner {
    display: none;
  }

  .chat-filter-tabs {
    background: #f7f8fa;
    border-bottom: 1px solid #e7eaf0;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 16px 8px;
  }

  .chat-filter-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #667085;
    font-size: 15px;
    min-height: 34px;
  }

  .chat-filter-tabs button.active {
    border-bottom-color: #0b63ce;
    color: #0b63ce;
    font-weight: 760;
  }

  .chat-mvp {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .chat-mvp.show-list .chat-list {
    display: grid;
  }

  .chat-mvp.show-list .chat-main,
  .chat-mvp.show-list .group-members {
    display: none;
  }

  .chat-mvp.show-chat .chat-filter-tabs,
  .chat-mvp.show-chat .chat-list,
  .chat-mvp.show-chat .group-members {
    display: none;
  }

  .chat-route-layout .chat-mvp.show-chat .group-management-panel .group-members,
  .chat-mvp.show-chat .group-management-panel .group-members {
    display: grid;
  }

  .chat-list {
    border: 0;
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
  }

  .chat-list-header {
    display: none;
  }

  .chat-list-items {
    align-content: start;
    display: grid;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0 10px;
  }

  .chat-list-item {
    border: 0;
    border-bottom: 1px solid #eceff3;
    border-radius: 0;
    box-shadow: none;
    gap: 12px;
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px 16px;
  }

  .chat-list-type {
    display: none;
  }

  .chat-list-item.selected {
    background: #f4f8ff;
    box-shadow: inset 3px 0 0 #0b63ce;
  }

  .chat-main {
    background: #eef4ec;
    display: grid;
    flex: 1 1 auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-width: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
  }

  .chat-header {
    background: #071d49;
    border-bottom: 0;
    box-sizing: border-box;
    color: #ffffff;
    display: grid;
    gap: 8px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 52px;
    min-width: 0;
    padding: 6px 10px;
    width: 100%;
  }

  .chat-header-main,
  .chat-header-actions {
    min-width: 0;
  }

  .chat-header-main h2,
  .chat-header-main p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-header-main h2 {
    color: #ffffff;
  }

  .chat-header-main p {
    color: rgb(255 255 255 / 78%);
  }

  .chat-header .presence-dot {
    background: #67e8a5;
    border-color: rgb(255 255 255 / 72%);
  }

  .chat-header-avatar {
    display: none;
  }

  .chat-header-actions {
    justify-self: end;
  }

  .chat-header-actions > button[aria-label="搜索消息"] {
    display: none;
  }

  .chat-header-actions > button {
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 20%);
    color: #ffffff;
  }

  .chat-timeline,
  .message-stack {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  .page-content > :is(.contact-center-v2, .discovery-v28, .settings-v28, .mobile-secondary-page) {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  }

  :is(.page-content, .chat-content) > .mobile-secondary-page:has(> .group-flow-section) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  :is(.page-content, .chat-content) > .mobile-secondary-page > .group-flow-section {
    align-content: start;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .page-content > .page-pull-refresh-shell {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .page-pull-refresh-shell > :is(.contact-center-v2, .discovery-v28, .settings-v28) {
    min-height: auto;
    overflow: visible;
    padding: 0;
  }

  .contact-hero,
  .discover-hero,
  .group-hero,
  .settings-product-shell > .section-title-row {
    display: none;
  }

  .contact-workspace {
    display: block;
  }

  .contact-detail {
    display: none;
  }

  .contact-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .contact-entry-row,
  .discover-primary-row,
  .discover-planned-row,
  .settings-profile-hero,
  .settings-v28-row {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    color: #101828;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 10px 14px;
    text-align: left;
    width: 100%;
  }

  .settings-v28-row.friend-star-toggle-row {
    gap: 16px;
    grid-template-columns: minmax(max-content, 1fr) auto;
  }

  .contact-entry-list {
    background: #fff;
    border: 0;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .contact-entry-row {
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
  }

  .contact-entry-row em {
    color: #667085;
    font-style: normal;
    font-weight: 760;
  }

  .contact-root-list .contact-directory {
    background: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
  }

  .contact-root-list .contact-row {
    border-bottom: 1px solid #edf0f5;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 0;
  }

  .discover-primary-row,
  .settings-profile-hero,
  .settings-v28-group {
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
  }

  .discover-planned-list,
  .settings-v28-group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
  }

  .discover-primary-row strong,
  .discover-planned-row strong,
  .settings-profile-hero strong,
  .settings-v28-row strong {
    display: block;
    font-size: 16px;
    font-weight: var(--lulu-font-weight-medium);
    line-height: 1.3;
  }

  .discover-primary-row small,
  .discover-planned-row small,
  .settings-profile-hero small,
  .settings-v28-row small {
    color: #667085;
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 2px;
  }

  .discover-planned-row[disabled],
  .settings-v28-row[disabled] {
    opacity: 0.62;
  }

  .chevron {
    color: #98a2b3;
    font-size: 26px;
    line-height: 1;
  }
}

.message-bubble:has(.image-message-card) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  gap: 3px;
  justify-items: end;
  max-width: min(58vw, 320px);
  min-width: 0;
  padding: 0;
  width: fit-content;
}

.message-bubble:has(.image-message-card) .message-content-frame {
  display: block;
  line-height: 0;
  width: fit-content;
}

.message-bubble:has(.image-message-card) .image-message-card,
.message-bubble:has(.image-message-card) .image-preview-button {
  display: block;
  line-height: 0;
  max-width: 100%;
  width: fit-content;
}

.message-bubble:has(.image-message-card) .image-preview-button img {
  display: block;
  max-height: min(52vh, 380px);
  max-width: min(56vw, 300px);
  object-fit: contain;
  width: auto;
}

.message-bubble:has(.image-message-card) .message-body,
.message-bubble:has(.image-message-card) .message-content {
  width: fit-content;
}

.message-bubble:has(.image-message-card) .message-meta {
  background: var(--lulu-color-own-message);
  border: 1px solid rgb(35 115 71 / 18%);
  border-radius: 0 0 14px 14px;
  margin-top: -3px;
  min-width: 100%;
  padding: 4px 8px 5px;
}

.message-bubble.peer:has(.image-message-card) .message-meta {
  background: var(--lulu-color-surface);
  border-color: var(--lulu-color-border);
}

.message-composer {
  align-items: center;
}

.message-composer textarea {
  min-height: 40px;
}

@media (max-width: 720px) {
  .chat-header-search-button {
    display: none;
  }

  .message-search-panel,
  .conversation-profile-panel {
    margin: 14px;
    padding: 14px;
    width: calc(100% - 28px);
  }

  .conversation-profile-panel {
    align-self: stretch;
    max-height: calc(100% - 28px);
  }

  .message-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .message-bubble:has(.image-message-card) {
    max-width: min(72vw, 286px);
    padding: 0;
  }

  .message-bubble:has(.image-message-card) .image-preview-button img {
    max-height: min(46vh, 330px);
    max-width: min(70vw, 268px);
  }

  .message-composer {
    align-items: center;
    grid-template-columns: 44px minmax(0, 1fr) 44px 52px;
  }

  .message-composer textarea {
    line-height: 20px;
    min-height: 40px;
    padding-bottom: 9px;
    padding-top: 9px;
  }

  .profile-edit-style-page {
    padding: 12px 18px calc(72px + env(safe-area-inset-bottom));
  }
}

.chat-main.chat-main-management {
  grid-template-rows: minmax(0, 1fr);
}

/* Pre-1.0 UI/UX closeout */
:root {
  --lulu-font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", Arial, sans-serif;
  --lulu-font-weight-medium: 500;
  --lulu-font-weight-bold: 600;
}

button,
input,
textarea,
select {
  font-family: var(--lulu-font-family);
  letter-spacing: 0;
}

.mobile-v28-topbar h1 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

.login-v4-view {
  align-items: start;
  background: linear-gradient(180deg, #eef3fb 0%, #f7f9fc 100%);
  min-height: 100dvh;
  overflow-y: auto;
  padding: 72px 32px 28px;
}

.login-v4-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 430px;
  padding: 0;
}

.login-v4-hidden-mode {
  border: 0;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.login-v4-brand {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.login-v4-brand .login-brand-icon {
  border-radius: 22px;
  box-shadow: 0 18px 42px rgb(9 34 87 / 18%);
  height: 92px;
  width: 92px;
}

.login-v4-brand h1 {
  color: #08245c;
  display: block;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.18;
  margin: 10px 0 0;
}

.login-v4-brand h1::before {
  content: none;
}

.login-v4-brand p {
  color: #8b97a8;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.login-v4-form {
  display: grid;
  gap: 22px;
}

.login-v4-field {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d3dce8;
  border-radius: 18px;
  color: #101828;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 80px;
  padding: 0 22px;
}

.login-v4-leading-icon,
.login-v4-eye,
.login-account-history-toggle {
  color: #667085;
}

.login-v4-field input {
  background: transparent;
  border: 0;
  color: #101828;
  font-size: 24px;
  font-weight: 400;
  min-width: 0;
  outline: 0;
  padding: 0;
}

.login-v4-field input::placeholder {
  color: #9aa6b7;
  font-weight: 400;
}

.login-v4-eye,
.login-account-history-toggle {
  background: transparent;
  border: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
}

.login-account-history {
  background: #ffffff;
  border: 1px solid #d3dce8;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgb(9 34 87 / 8%);
  display: grid;
  gap: 0;
  margin-top: -12px;
  overflow: hidden;
}

.login-account-history-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
}

.login-account-history-select,
.login-account-history-delete,
.login-account-history-clear {
  background: #ffffff;
  border: 0;
  color: #0b2c6b;
  min-height: 44px;
}

.login-v4-options {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.login-v4-remember {
  align-items: center;
  color: #667085;
  display: inline-flex;
  font-size: 16px;
  gap: 8px;
  min-height: 32px;
}

.login-v4-remember input {
  accent-color: #0b2c6b;
  height: 18px;
  width: 18px;
}

.login-v4-options button,
.login-v4-signup button {
  background: transparent;
  border: 0;
  color: #0b2c6b;
  font-size: 16px;
  font-weight: 400;
  padding: 0;
}

button.primary.login-v4-submit,
.login-v4-submit {
  background: #0b2c6b;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgb(9 34 87 / 16%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  min-height: 78px;
}

.login-v4-signup {
  align-items: center;
  color: #7b8798;
  display: flex;
  font-size: 16px;
  gap: 14px;
  justify-content: center;
}

.login-v4-agreement {
  color: #8793a4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  margin: 54px 0 0;
  text-align: center;
}

.auth-inline-error {
  color: var(--lulu-color-danger);
  font-size: 14px;
  margin: -8px 0 0;
}

.settings-security-directory,
.settings-devices-page,
.settings-account-binding-page,
.settings-privacy-page,
.profile-v4-page,
.profile-field-edit-page,
.profile-avatar-edit-page {
  background: #f3f6fa;
  min-height: 100%;
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
}

.profile-v4-shell {
  background: #f3f6fa;
  padding: 0 0 calc(32px + env(safe-area-inset-bottom)) !important;
}

.profile-v4-page {
  padding-top: 0;
}

.settings-section-label {
  color: #7a8798;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 8px;
  padding: 0 16px;
}

.settings-v28-group {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.settings-security-directory .settings-v28-group,
.settings-devices-page .settings-v28-group,
.settings-account-binding-page .settings-v28-group,
.settings-privacy-page .settings-v28-group,
.profile-v4-list {
  margin-bottom: 22px;
}

.settings-v28-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  color: #172032;
  display: grid;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr) max-content 18px;
  min-height: 64px;
  padding: 10px 16px;
  text-align: left;
  width: 100%;
}

.settings-v28-row:last-child {
  border-bottom: 0;
}

.settings-v28-row strong,
.settings-row-main strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

.settings-row-main,
.settings-row-value {
  min-width: 0;
}

.settings-row-value {
  color: #758195;
  font-size: 15px;
  font-weight: 400;
  max-width: 96px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-info-row {
  grid-template-columns: minmax(52px, max-content) minmax(0, 1fr) auto;
}

.contact-info-row > span:first-child {
  min-width: 52px;
  white-space: nowrap;
}

.contact-info-row .settings-row-value {
  max-width: none;
}

.settings-row-icon {
  align-items: center;
  background: #eaf1ff;
  border: 0;
  border-radius: 14px;
  color: #1557aa;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.settings-line-icon {
  display: block;
  height: 21px;
  width: 21px;
}

.settings-v28-row[disabled] {
  opacity: 1;
}

.settings-v28-row.danger {
  color: #cf2f2f;
}

.settings-device-row {
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  min-height: 86px;
}

.device-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.device-row-main strong {
  color: #182236;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row-main small {
  color: #7a8798;
  font-size: 14px;
  line-height: 1.45;
}

.device-current-value {
  color: #1fa463;
}

.settings-device-empty {
  align-items: center;
  background: #ffffff;
  color: #172032;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 210px;
  padding: 32px 16px;
  text-align: center;
}

.settings-device-empty strong {
  font-size: 18px;
  font-weight: 400;
}

.settings-device-empty small,
.settings-device-safe-tip {
  color: #7a8798;
  font-size: 14px;
  line-height: 1.55;
}

.settings-device-safe-tip {
  margin: 0;
  padding: 0 2px;
}

.profile-v4-avatar {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 178px;
  padding: 18px 0 20px;
}

.profile-v4-avatar-button {
  background: transparent;
  border: 0;
  display: inline-grid;
  padding: 0;
  place-items: center;
  position: relative;
}

.profile-v4-avatar .avatar-large,
.profile-avatar-edit-page .avatar-large {
  background: #ddecff;
  color: #2563eb;
  font-size: 54px;
  font-weight: 600;
  height: 112px;
  width: 112px;
}

.profile-v4-camera {
  align-items: center;
  background: #0b2c6b;
  border: 3px solid #ffffff;
  border-radius: 50%;
  bottom: 4px;
  color: #ffffff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: -4px;
  width: 38px;
}

.profile-v4-avatar-label {
  background: transparent;
  border: 0;
  color: #2563eb;
  font-size: 17px;
  font-weight: 600;
  padding: 0;
}

.profile-v4-avatar-button:disabled,
.profile-v4-avatar-label:disabled,
.profile-v4-avatar-restore:disabled {
  opacity: 0.58;
}

.profile-v4-avatar-file {
  display: none;
}

.profile-v4-avatar-status {
  color: #758195;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.profile-v4-avatar-status[hidden] {
  display: none;
}

.profile-v4-avatar-restore {
  background: transparent;
  border: 0;
  color: #758195;
  font-size: 14px;
  font-weight: 400;
  padding: 0;
}

.profile-v4-list {
  background: #ffffff;
}

.profile-v4-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  color: #0f172a;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(76px, max-content) minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
}

.profile-v4-row:last-child {
  border-bottom: 0;
}

.profile-v4-label {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.profile-v4-value {
  color: #4f5b6f;
  font-size: 15px;
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-v4-delete {
  color: #ef3030;
  display: block;
  font-size: 17px;
  min-height: 72px;
  text-align: center;
}

.profile-v4-delete .profile-v4-label {
  display: block;
}

.settings-account-binding-page .profile-facts {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.settings-account-binding-page .profile-facts div {
  border-bottom: 1px solid #e7ebf1;
  grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
  min-height: 64px;
  padding: 10px 16px;
}

.settings-account-binding-page .profile-facts dt {
  color: #172032;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.settings-account-binding-page .profile-facts dd {
  color: #4f5b6f;
  font-size: 15px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-child-page[data-contact-child="requests"] {
  background: #f3f6fa;
  padding: 0 0 calc(32px + env(safe-area-inset-bottom));
}

.request-board {
  background: #f3f6fa;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
}

.request-filter-section {
  background: #f3f6fa;
  padding: 16px;
}

.request-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 14px;
  color: #667085;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 52px;
  padding: 0 14px;
}

.request-search .nav-svg {
  height: 21px;
  width: 21px;
}

.request-search input {
  background: transparent;
  border: 0;
  color: #172032;
  font-size: 15px;
  min-width: 0;
  outline: 0;
}

.request-list-section {
  background: #ffffff;
  display: grid;
}

.request-list-section .list {
  display: grid;
  gap: 0;
}

.request-card {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 14px 16px;
}

.request-card:last-child {
  border-bottom: 0;
}

.request-card-main {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.request-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.request-name {
  color: #172032;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-account-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.request-account {
  color: #667085;
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.request-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.request-actions button {
  min-height: 34px;
  min-width: 70px;
  padding: 0 14px;
}

.request-status,
.request-message {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.request-message {
  overflow-wrap: anywhere;
}

@media (max-width: 374px) {
  .request-card-main {
    align-items: start;
  }

  .request-account-line {
    align-items: flex-start;
  }

  .request-actions {
    margin-left: 0;
    width: 100%;
  }
}

.message-search-panel {
  align-self: stretch;
  background: #f3f6fa;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
  padding: 12px 0 calc(32px + env(safe-area-inset-bottom));
  width: 100%;
}

.message-search-form {
  background: #ffffff;
  border-bottom: 1px solid #e7ebf1;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
}

.message-search-form > button {
  min-height: 42px;
}

.chat-panel-search {
  background: #f3f6fa;
  border-color: #e1e7f0;
  border-radius: 14px;
  min-height: 46px;
}

.chat-panel-empty {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #667085;
  padding: 24px 16px;
}

.message-search-results {
  background: #ffffff;
  display: grid;
  gap: 0;
}

.message-search-results button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  border-radius: 0;
  box-shadow: none;
  justify-items: start;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.message-search-results button strong,
.message-search-results button span,
.message-search-results button small {
  display: block;
  justify-self: stretch;
  overflow-wrap: anywhere;
  text-align: left;
  width: 100%;
}

.message-search-results button:last-child {
  border-bottom: 0;
}

.profile-avatar-edit-form {
  background: #ffffff;
  padding: 28px 16px;
}

.profile-field-edit-page {
  background: #ffffff;
  padding: 28px 16px 0;
}

.profile-field-form {
  background: #ffffff;
  display: grid;
}

.profile-field-input,
.profile-field-textarea {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  border-radius: 0;
  color: #172032;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  outline: 0;
  padding: 10px 0 12px;
  width: 100%;
}

.profile-field-textarea {
  min-height: 150px;
  resize: none;
}

.profile-field-input:focus-visible,
.profile-field-textarea:focus-visible {
  border-bottom-color: #0b2c6b;
  box-shadow: inset 0 -1px 0 #0b2c6b;
}

.profile-field-meta {
  align-items: center;
  color: #7a8798;
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 0 14px;
}

.profile-field-error {
  color: #cf2f2f;
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.profile-field-error[hidden] {
  display: none;
}

.mobile-topbar-action {
  color: #ffffff;
  font-weight: 500;
}

.mobile-topbar-action:disabled {
  color: #b8c0cc;
}

.group-settings-summary {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 18px 16px;
}

.group-settings-summary-avatar {
  border-radius: 8px;
  height: 76px;
  width: 76px;
}

.group-settings-summary strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.group-profile-role-summary {
  color: #667085;
  display: grid;
  font-size: 15px;
  gap: 4px;
  line-height: 1.45;
  margin-top: 4px;
}

.group-profile-management-panel.member-tool-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

.chat-info-body:has(> .group-profile-management-panel[data-canonical-group-profile]) {
  gap: 0;
  padding: 0 0 calc(32px + env(safe-area-inset-bottom));
}

.group-management-body:has(.group-profile-management-panel[data-canonical-group-profile]) {
  gap: 0;
  padding: 16px 0 calc(32px + env(safe-area-inset-bottom));
}

.group-management-body:has(.group-profile-management-panel[data-canonical-group-profile]) .group-management-subpage,
.group-management-body:has(.group-profile-management-panel[data-canonical-group-profile]) .group-members,
.group-management-body:has(.group-profile-management-panel[data-canonical-group-profile]) .group-profile-management-panel {
  width: 100%;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-body {
  background: #f3f6fa;
  gap: 0;
  padding: 0 0 calc(32px + env(safe-area-inset-bottom));
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-section {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 0;
  margin: 0;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-summary-section {
  background: #ffffff;
  display: block;
  padding: 22px 16px 30px;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-peer-card {
  align-items: center;
  background: transparent;
  border: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 58px minmax(0, 1fr);
  justify-items: start;
  min-height: 58px;
  padding: 0;
  text-align: left;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-peer-card .chat-list-avatar {
  aspect-ratio: 1;
  font-size: 24px;
  flex: 0 0 58px;
  height: 58px;
  max-width: 58px;
  min-width: 58px;
  width: 58px;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-peer-card strong {
  font-size: 18px;
  font-weight: 600;
  justify-self: start;
  min-width: 0;
  text-align: left;
}

.chat-info-section-label {
  color: #758195;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  padding: 16px 16px 8px;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-row {
  border-bottom: 1px solid #e7ebf1;
  min-height: 60px;
  padding: 0 16px;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-row-label {
  font-size: 16px;
  font-weight: 400;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

.chat-info-shell[data-chat-info-type="DIRECT"] .chat-info-row-value {
  color: #566176;
  font-size: 15px;
  max-width: min(52vw, 210px);
}

.group-profile-management-panel .group-settings-summary {
  box-shadow: none;
  margin: 0;
}

.group-profile-management-panel .group-profile-role-identity {
  display: inline-flex;
  white-space: nowrap;
  word-break: keep-all;
}

.group-profile-index-list {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  display: grid;
  overflow: hidden;
  width: 100%;
}

.group-profile-index-row {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  border-radius: 0;
  gap: 14px;
  grid-template-columns: minmax(72px, max-content) minmax(0, 1fr) auto;
  justify-self: stretch;
  min-height: 58px;
  padding: 0 16px;
  width: 100%;
}

.group-profile-index-row:last-child {
  border-bottom: 0;
}

.group-profile-index-row > span:first-child {
  color: #172032;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.group-profile-index-row small {
  color: #566176;
  font-size: 15px;
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header-main h2 {
  font-size: 20px;
  font-weight: 600;
}

.chat-header-main p {
  color: #667085;
  font-size: 13px;
  margin: 2px 0 0;
}

@media (max-width: 767px) {
  .page-content > .mobile-secondary-page.settings-security-directory,
  .page-content > .mobile-secondary-page.settings-devices-page,
  .page-content > .mobile-secondary-page.settings-account-binding-page,
  .page-content > .mobile-secondary-page.settings-privacy-page {
    padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  }

  .page-content > .mobile-secondary-page.profile-v4-shell {
    padding: 0 0 calc(32px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-v28-shell.uiux-confirmed-light-topbar > .content > .mobile-v28-topbar {
    background: #ffffff;
    border-bottom: 1px solid #dfe5ee;
    color: #101828;
    height: 58px;
  }

  .mobile-v28-shell.uiux-confirmed-light-topbar .mobile-back-button,
  .mobile-v28-shell.uiux-confirmed-light-topbar .mobile-topbar-action {
    color: #101828;
  }

  .mobile-v28-shell.uiux-confirmed-light-topbar .mobile-v28-topbar h1 {
    font-size: 19px;
    font-weight: 600;
  }
}

@media (max-width: 430px) {
  .login-v4-view {
    padding-inline: 28px;
  }

  .login-v4-field {
    min-height: 80px;
    padding-inline: 20px;
  }

  .login-v4-field input {
    font-size: 23px;
  }
}

@media (max-width: 393px) {
  .login-v4-view {
    padding: 56px 22px 24px;
  }

  .login-v4-brand .login-brand-icon {
    height: 86px;
    width: 86px;
  }

  .login-v4-brand h1 {
    font-size: 30px;
  }

  .login-v4-field {
    border-radius: 16px;
    gap: 12px;
    min-height: 72px;
    padding-inline: 18px;
  }

  .login-v4-field input {
    font-size: 20px;
  }

  .login-v4-submit {
    min-height: 72px;
  }
}

@media (max-width: 360px) {
  .login-v4-view {
    padding-inline: 18px;
  }

  .login-v4-options,
  .login-v4-signup {
    font-size: 15px;
  }

  .settings-v28-row,
  .profile-v4-row,
  .group-profile-index-row {
    gap: 10px;
    padding-inline: 14px;
  }

  .settings-row-icon {
    height: 38px;
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-v4-submit {
    box-shadow: none;
  }
}
