/* ===============================
   ?? Asesor Oliver - Estilos Espec?ficos
================================= */

/* Header Minimalista */
.asesor-header {
  --asesor-header-pad-y: 1rem;
  --asesor-header-pad-x: 2rem;
  background: var(--white);
  padding: var(--asesor-header-pad-y) var(--asesor-header-pad-x);
  padding-top: max(var(--asesor-header-pad-y), env(safe-area-inset-top, 0px));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-home-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-home-link:hover,
.logo-home-link:focus-visible {
  opacity: 0.85;
  transform: scale(1.03);
  outline: none;
}

.logo-small {
  height: 40px;
  width: auto;
  cursor: pointer;
}

.chat-group-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.group-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.group-title-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-title-name,
.group-title h1 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 700;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.2;
  transition: color 0.3s ease;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.header-menu-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.header-menu-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.2s ease;
}

.header-menu-btn:hover,
.header-menu-btn[aria-expanded="true"] {
  background: rgba(217, 166, 107, 0.15);
}

.header-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.4rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header-menu-panel[hidden] {
  display: none;
}

.header-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background 0.2s ease;
}

.header-menu-item:hover {
  background: rgba(217, 166, 107, 0.14);
}

.header-menu-item-logout {
  margin-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 10px 10px;
  color: #8b4513;
}

.selection-btn.admin-access-btn {
  border: 1px dashed rgba(217, 166, 107, 0.65);
  background: rgba(255, 248, 240, 0.95);
}

.selection-btn.admin-access-btn .btn-text {
  font-size: 0.92rem;
}

.header-menu-icon {
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
  flex-shrink: 0;
}

.group-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(46vw, 220px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 2px;
}

.group-avatars::-webkit-scrollbar {
  display: none;
}

.avatar-wrapper {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.avatar-wrapper:not(:first-child) {
  margin-left: -15px;
  border: 3px solid var(--white);
}

.avatar-wrapper:hover {
  transform: translateY(-3px);
  z-index: 10;
}

.add-member-btn {
  background: var(--white) !important;
  border: 2px dashed rgba(0, 0, 0, 0.2) !important;
  color: var(--text-dark);
  margin-left: -10px;
  overflow: visible;
  cursor: pointer;
}

.add-member-btn .avatar {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.add-member-btn:hover {
  border-color: var(--primary) !important;
  background: rgba(46, 125, 50, 0.08) !important;
}

.add-member-menu {
  position: fixed;
  z-index: 10050;
  min-width: 220px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.add-member-option {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: inherit;
}

.add-member-option:hover {
  background: rgba(46, 125, 50, 0.1);
}

.co-owner-avatar .user-avatar-bg {
  background: linear-gradient(135deg, #43a047, #2e7d32);
}

.avatar {
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.oliver-avatar {
  background: #fff;
  z-index: 2;
  border: 2px solid var(--primary);
}

.oliver-logo-img,
.oliver-message-avatar .oliver-avatar-img,
.oliver-message-avatar img {
  object-fit: contain !important;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

.oliver-message-avatar {
  background: #fff !important;
  border: 2px solid var(--primary);
}

.pet-avatar {
  background: linear-gradient(135deg, #8b7355, #a89f91);
  z-index: 1;
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Contenedor Principal del Chat */
.asesor-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
  background: var(--bg-light);
  overflow: hidden; /* El scroll vive en chat-messages / selection-buttons */
}

/* ?rea de Mensajes */
.chat-messages {
  flex: 1 1 auto;
  min-height: 28vh;
  overflow-y: auto;
  padding: 2rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scroll-behavior: smooth;
  scroll-padding-bottom: 1.25rem;
  scroll-padding-top: 0.5rem;
  overflow-anchor: none; /* Evita que el browser ?ancl?? el scroll y deje el mensaje nuevo fuera */
}

/* Estilos de Mensajes */
.message {
  display: flex;
  gap: 1rem;
  max-width: 80%;
  animation: fadeInUp 0.3s ease;
}

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

/* Mensaje de Oliver */
.oliver-message {
  align-self: flex-start;
}

.message-avatar {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.oliver-avatar-img,
.message-avatar img,
.message-avatar .avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Placeholder solo si no hay foto ni emoji */
.message-avatar:not(:has(img)):not(:has(.avatar))::before {
  content: '??';
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.message-sender {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-left: 0.5rem;
}

.message-text {
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 18px 18px 18px 4px;
  color: var(--text-dark);
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

/* Mensaje del Usuario */
.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.user-message .message-content {
  align-items: flex-end;
}

.user-message .message-sender {
  margin-left: 0;
  margin-right: 0.5rem;
  color: var(--primary-dark, #2e7d32);
}

.user-message .message-text {
  background: var(--primary);
  color: var(--white);
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 2px 8px rgba(217, 166, 107, 0.3);
}

.user-message .message-avatar,
.user-chat-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid #fff;
}

.clickable-avatar {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-avatar:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.user-message .message-avatar .user-avatar-bg,
.message-avatar .user-avatar-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  font-size: 1.1rem;
}

/* Mensaje de Sistema */
.system-message {
  align-self: center;
  margin: 1rem 0;
}

.system-text {
  background: rgba(217, 166, 107, 0.1);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(217, 166, 107, 0.3);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mensaje de Mascota */
.pet-message {
  align-self: flex-start;
  animation: fadeIn 0.4s ease;
}

.pet-message .message-avatar {
  background: linear-gradient(135deg, #ffb74d, #ff9800);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.pet-message .message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.pet-message .message-avatar .avatar {
  font-size: 1.5rem;
}

.pet-message .message-sender {
  color: #ef6c00;
  font-weight: 600;
}

.pet-message .message-text {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 2px solid #ffb74d;
  border-radius: 18px 18px 18px 4px;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(255, 183, 77, 0.2);
}

.pet-message .message-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 115, 85, 0.05), rgba(168, 159, 145, 0.05));
  border-radius: inherit;
  pointer-events: none;
}

/* ?rea de Entrada */
.chat-input-area {
  padding: 1.5rem 2rem;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.input-wrapper {
  display: flex;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
}

#user-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--bg-light);
}

#user-input:focus {
  border-color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 166, 107, 0.1);
}

#user-input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.send-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(217, 166, 107, 0.3);
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(217, 166, 107, 0.4);
}

.send-btn:active {
  transform: scale(0.95);
}

/* Botones / forms cortos (nombres, s?/no): caben sin scroll */
.selection-buttons {
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  align-content: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.04);
}

/* Solo men?s largos (servicios, razas, consent): panel con scroll */
.selection-buttons.selection-buttons--scrollable {
  max-height: min(58vh, 580px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.selection-buttons.selection-buttons--scrollable::-webkit-scrollbar {
  width: 6px;
}

.selection-buttons.selection-buttons--scrollable::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* Widget de Cantidades */
.quantity-widget {
  padding: 1.5rem 2rem;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: 15px;
  width: 100%;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-selector:hover {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quantity-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 120px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-dark);
  min-width: 40px;
  text-align: center;
}

.confirm-quantity-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 166, 107, 0.3);
}

.confirm-quantity-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 166, 107, 0.4);
}

.confirm-quantity-btn:active {
  transform: translateY(0);
}

/* Mini-Formulario Inline */
.pet-form-inline {
  padding: 1.5rem 2rem;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideUp 0.4s ease;
}

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

.pet-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pet-form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pet-form-header h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
}

.pet-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-left: 0.25rem;
}

.form-field input,
.form-field select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--white);
}

.form-field input[type="date"] {
  cursor: pointer;
  color-scheme: light;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(0.3);
}

.age-feedback {
  display: none;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(217, 166, 107, 0.1), rgba(217, 166, 107, 0.05));
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(217, 166, 107, 0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(217, 166, 107, 0.1);
}

.species-buttons {
  display: flex;
  gap: 0.75rem;
}

.species-btn {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.species-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.species-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(217, 166, 107, 0.3);
}

.age-input {
  display: flex;
  gap: 0.75rem;
}

.age-input input {
  flex: 1;
}

.age-input select {
  width: 120px;
}

.pet-form-actions {
  margin-top: 1.5rem;
}

.register-pet-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(217, 166, 107, 0.3);
}

.register-pet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 166, 107, 0.4);
}

.register-pet-btn:active {
  transform: translateY(0);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

#delete-pet-modal {
  z-index: 10050;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.modal-content.compact {
  max-width: 400px;
}

.modal-content.warning {
  border: 2px solid #ff6b6b;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--bg-light);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-intro {
  margin: 0 0 1.5rem 0;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--bg-light);
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 166, 107, 0.4);
}

.modal-btn.secondary {
  background: var(--bg-light);
  color: var(--text-dark);
}

.modal-btn.secondary:hover {
  background: #e8e0d5;
}

.modal-btn.danger {
  background: #ff6b6b;
  color: var(--white);
}

.modal-btn.danger:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

.pet-danger-zone {
  margin: 0 1.5rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
}

.pet-danger-zone[hidden] {
  display: none !important;
}

.pet-delete-btn {
  width: 100%;
}

/* Personalidad de mascota */
.personality-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.personality-chip {
  padding: 0.5rem 0.85rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.personality-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.personality-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.personality-picker {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.personality-picker-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.personality-picker-actions .form-submit-btn,
.personality-picker-actions .modal-btn {
  flex: 1;
  min-width: 140px;
}

.pet-life-section {
  margin-top: 0.75rem;
}

.pet-life-section[hidden] {
  display: none !important;
}

.profile-accordion {
  margin: 0.75rem 0 1rem;
  border: 1.5px solid rgba(217, 166, 107, 0.4);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.profile-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: none;
  background: linear-gradient(160deg, rgba(255, 248, 235, 0.95), rgba(255, 255, 255, 0.9));
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-dark, #333);
}

.profile-accordion-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.profile-accordion-kicker {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark, #8a5a2b);
}

.profile-accordion-sub {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.3;
}

.profile-accordion-chevron {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--primary-dark, #8a5a2b);
  transition: transform 0.2s ease;
}

.profile-accordion.is-open > .profile-accordion-header .profile-accordion-chevron,
.profile-subaccordion.is-open > .profile-subaccordion-header .profile-accordion-chevron {
  transform: rotate(180deg);
}

.profile-accordion-body {
  padding: 0.35rem 1rem 1rem;
  border-top: 1px solid rgba(217, 166, 107, 0.25);
}

.profile-accordion-body[hidden],
.profile-subaccordion-body[hidden] {
  display: none !important;
}

.profile-subaccordion {
  margin-top: 0.55rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--bg-light, #faf7f2);
  overflow: hidden;
}

.profile-subaccordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark, #333);
}

.profile-subaccordion-body {
  padding: 0 0.8rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-subaccordion-body .form-hint {
  margin-top: 0.45rem;
}

.mascota-digital-guide {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1.5px solid rgba(217, 166, 107, 0.45);
  background: linear-gradient(160deg, rgba(255, 248, 235, 0.95), rgba(255, 255, 255, 0.75));
}

.mascota-digital-guide-title {
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.mascota-digital-guide-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text-dark, #333);
}

.mascota-digital-guide-list li {
  padding-left: 0.15rem;
}

.md-catalog {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.md-catalog-section {
  margin: 0.35rem 0 0.15rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.md-catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.md-asks-list {
  margin: 0.25rem 0 0.45rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-dark, #333);
}

.md-chat-accordion .form-submit-btn,
.md-chat-accordion .premium-btn {
  margin-top: 0.35rem;
  width: 100%;
}

.md-module-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: var(--bg-light, #fff);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.md-module-btn:hover {
  border-color: rgba(217, 166, 107, 0.65);
}

.md-module-btn.selected {
  border-color: var(--primary, #d9a66b);
  background: rgba(217, 166, 107, 0.12);
  box-shadow: 0 0 0 2px rgba(217, 166, 107, 0.18);
}

.md-module-btn.premium.selected {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.12);
}

.md-module-emoji {
  font-size: 1.2rem;
  line-height: 1.2;
}

.md-module-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.md-module-text strong {
  font-size: 0.9rem;
  color: var(--text-dark, #333);
}

.md-module-text small {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.3;
}

.md-module-check {
  min-width: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark, #8a5a2b);
}

.md-module-text small.md-module-price {
  margin-top: 0.15rem;
  font-weight: 700;
  color: var(--primary-dark, #8a5a2b);
}

.md-explore {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.md-explore-card {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1.5px solid rgba(217, 166, 107, 0.4);
  background: linear-gradient(160deg, rgba(255, 248, 235, 0.95), rgba(255, 255, 255, 0.85));
}

.md-explore-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

.md-explore-price {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #4c8c5a;
}

.md-param-only {
  width: 100%;
  max-width: 520px;
}

/* Chat usa el mismo acorde?n/ficha que el perfil */
.md-param-as-profile .pet-action-accordion-header {
  cursor: default;
}

.md-param-as-profile .pet-action-accordion {
  margin: 0;
}

.md-param-as-profile .services-back-btn {
  margin-top: 0.35rem;
  width: 100%;
}

/* ========== Panel Admin (pantalla completa, no chat/manada) ========== */
body.admin-workspace-open {
  overflow: hidden;
}

.admin-workspace {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #f7f3ec 0%, #fff 42%, #eef6f0 100%);
  height: 100dvh;
  height: var(--vv-height, 100dvh);
}

.admin-workspace[hidden] {
  display: none !important;
}

.admin-workspace-bar {
  position: relative;
  z-index: 10100;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.admin-workspace-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.admin-workspace-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.admin-workspace-brand strong {
  display: block;
  font-size: 1rem;
  color: var(--text-dark, #333);
}

.admin-workspace-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #777;
}

.admin-nav-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 10120;
}

.admin-workspace-menu {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  position: relative;
  z-index: 10121;
}

.admin-workspace-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

.admin-nav-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10130;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-nav-panel[hidden] {
  display: none !important;
}

.admin-nav-item {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c2c2c;
  cursor: pointer;
}

.admin-nav-item:hover,
.admin-nav-item:focus-visible {
  background: rgba(47, 107, 60, 0.1);
}

.admin-nav-item-exit {
  color: #8a3b2a;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0.15rem;
  border-radius: 0 0 10px 10px;
}

.admin-workspace-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1.1rem 2rem;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.admin-workspace-body:has(.wa-mobile) {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: none;
}

.admin-workspace-body:has(.admin-wa-screen--form) {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: none;
}

.admin-wa-screen--form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.65rem 0.75rem 1rem;
  box-sizing: border-box;
}

.admin-wa-help {
  margin: 0;
}

.admin-wa-help summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4c8c5a;
  list-style: none;
}

.admin-wa-help summary::-webkit-details-marker {
  display: none;
}

.admin-wa-help .admin-home-lead {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
}

.admin-home-title {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  color: var(--text-dark, #2c2c2c);
}

.admin-home-lead {
  margin: 0 0 1.25rem;
  color: #666;
  line-height: 1.4;
  max-width: 36rem;
}

.admin-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .admin-home-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-wa-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.admin-home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.admin-home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 140, 90, 0.45);
}

.admin-home-icon {
  font-size: 1.5rem;
}

.admin-home-card strong {
  font-size: 1.05rem;
  color: #2c2c2c;
}

.admin-home-card small {
  color: #777;
  line-height: 1.35;
}

.admin-back-link {
  border: none;
  background: transparent;
  color: #4c8c5a;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.75rem;
}

.admin-wa-screen h2,
.admin-placeholder h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.admin-wa-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-wa-card {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.admin-wa-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-classify-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-classify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.admin-classify-actions .modal-btn,
.admin-classify-actions .form-submit-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  min-height: 36px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.admin-breed-mode {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
}

.admin-breed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: min(40vh, 280px);
  overflow: auto;
  margin-bottom: 1rem;
}

.admin-breed-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  background: #f7f7f5;
}

.wa-browser-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wa-browser-status {
  margin-bottom: 0.85rem;
}

.wa-inline-warn {
  color: #9a6b16;
  font-weight: 600;
}

.wa-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-tab {
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 0.55rem 0.25rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
}

.wa-tab em {
  font-style: normal;
  font-weight: 700;
  color: #2c2c2c;
  margin-left: 0.15rem;
}

.wa-tab.is-active {
  background: #fff;
  color: #2c2c2c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wa-browser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  min-height: 0;
}

@media (min-width: 860px) {
  .wa-browser-grid {
    grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.15fr);
    align-items: start;
  }
}

.wa-browser-list {
  max-height: min(52vh, 480px) !important;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.35rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.wa-group-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.wa-group-item:hover {
  background: rgba(76, 140, 90, 0.08);
}

.wa-group-item.is-active {
  border-color: rgba(76, 140, 90, 0.45);
  background: rgba(76, 140, 90, 0.12);
}

.wa-group-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.wa-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.wa-badge.ok {
  background: #e5f4ea;
  color: #1f6b3a;
}

.wa-badge.warn {
  background: #fff3d6;
  color: #8a5a00;
}

.wa-badge.muted {
  background: #eee;
  color: #666;
}

.wa-browser-detail,
.wa-detail-panel {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 1rem 1.05rem 1.15rem;
}

.wa-detail-empty {
  padding: 1.5rem 1rem;
  color: #777;
  text-align: center;
}

.wa-detail-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.wa-detail-alert {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.wa-detail-alert.ok {
  background: #e5f4ea;
  color: #1f6b3a;
}

.wa-detail-alert.warn {
  background: #fff3d6;
  color: #7a5200;
}

.wa-detail-alert.muted {
  background: #f2f2f2;
  color: #555;
}

.wa-detail-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.wa-detail-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.wa-detail-meta dd {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.35;
}

.wa-mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.75rem !important;
  word-break: break-all;
  color: #777 !important;
}

.wa-kind-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.wa-kind-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fafafa;
  cursor: pointer;
  font-size: 0.9rem;
}

.wa-work-fields {
  margin-bottom: 0.5rem;
}

.wa-omit-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.wa-baileys-details {
  margin: 0 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fafafa;
}

.wa-baileys-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.wa-baileys-meta {
  margin-top: 0.65rem !important;
  margin-bottom: 0 !important;
}

.admin-scroll {
  max-height: min(42vh, 360px) !important;
}

.admin-placeholder {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wa-session-panel {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-sizing: border-box;
}

.wa-session-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wa-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #c4a574;
}

.wa-dot.waiting {
  animation: wa-pulse 1.2s ease-in-out infinite;
}

.wa-dot.live {
  background: #3d9a5f;
  box-shadow: 0 0 0 4px rgba(61, 154, 95, 0.18);
}

@keyframes wa-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.wa-pairing-code {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(76, 140, 90, 0.1);
  border: 1.5px dashed rgba(76, 140, 90, 0.45);
  color: #2f5d3a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.wa-link-steps {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.45;
}

.wa-qr-details {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 0.45rem;
}

.wa-qr-details summary {
  cursor: pointer;
  margin-bottom: 0.45rem;
}

.wa-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.wa-qr-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wa-section h4 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--text-dark, #333);
}

.wa-group-list,
.wa-msg-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 180px;
  overflow: auto;
  padding-right: 0.15rem;
}

.wa-group-row,
.wa-msg-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
}

.wa-group-row.admin-classify-row {
  flex-direction: row;
  align-items: center;
}

.wa-group-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.wa-group-meta,
.wa-msg-chan {
  font-size: 0.72rem;
  color: #777;
}

.wa-msg-text {
  font-size: 0.84rem;
  color: #333;
}

.md-age-tip {
  margin: 0.45rem 0 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1.5px solid rgba(76, 140, 90, 0.35);
  background: rgba(76, 140, 90, 0.08);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-dark, #333);
}

.md-catalog-actions,
.md-checkout {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.community-list {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.community-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid rgba(217, 166, 107, 0.4);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.community-card:hover {
  border-color: var(--primary, #d9a66b);
  transform: translateY(-1px);
}

.community-card.mine {
  border-color: rgba(76, 140, 90, 0.55);
  background: rgba(76, 140, 90, 0.06);
}

.community-card-media {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 166, 107, 0.15);
}

.community-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card-emoji {
  font-size: 1.5rem;
}

.community-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.community-card-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.community-card-meta,
.community-card-owner {
  font-size: 0.78rem;
  color: #666;
}

.community-detail {
  text-align: center;
  padding: 0.4rem 0.2rem 0.7rem;
}

.community-detail-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  display: block;
  border: 3px solid rgba(217, 166, 107, 0.45);
}

.community-detail-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(217, 166, 107, 0.12);
}

.community-detail-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.community-album-preview {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.community-album-preview img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
  text-align: left;
}

.community-feed-post {
  border-radius: 12px;
  border: 1.5px solid rgba(217, 166, 107, 0.35);
  overflow: hidden;
  background: #fff;
}

.community-feed-post img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.community-feed-caption {
  margin: 0;
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text-dark, #333);
}

.community-feed-caption.muted {
  color: #999;
  font-style: italic;
}

.pet-visibility-group {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(217, 166, 107, 0.35);
  background: linear-gradient(160deg, rgba(255, 248, 235, 0.9), rgba(255, 255, 255, 0.85));
}

.pet-visibility-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.pet-visibility-checkbox {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  appearance: none;
}

.pet-visibility-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-dark, #333);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pet-visibility-option:hover {
  border-color: rgba(217, 166, 107, 0.55);
  transform: translateY(-1px);
}

.pet-visibility-option.active {
  border-color: var(--primary, #d9a66b);
  background: rgba(217, 166, 107, 0.14);
  box-shadow: 0 0 0 2px rgba(217, 166, 107, 0.18);
}

.pet-visibility-option.active[id="pet-visibility-public-btn"] {
  border-color: #4c8c5a;
  background: rgba(76, 140, 90, 0.12);
  box-shadow: 0 0 0 2px rgba(76, 140, 90, 0.16);
}

.pet-visibility-option-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.pet-visibility-option-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.pet-visibility-option-copy strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.pet-visibility-option-copy small {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.25;
}

.pet-visibility-status {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark, #8a5a2b);
}

.form-group label .pet-action-badge {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.mascota-digital-guide-pulse {
  animation: mascotaDigitalPulse 1.1s ease-in-out 2;
}

.mascota-digital-focus {
  animation: mascotaDigitalPulse 1.1s ease-in-out 2;
  border-radius: 12px;
}

@keyframes mascotaDigitalPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 166, 107, 0); }
  50% { box-shadow: 0 0 0 4px rgba(217, 166, 107, 0.35); }
}

.pet-life-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.1rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.pet-life-divider::before,
.pet-life-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(217, 166, 107, 0.45);
}

.pet-owner-view {
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
}

.pet-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pet-action-accordion {
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.pet-action-accordion.enabled {
  border-color: rgba(76, 140, 90, 0.45);
}

.pet-action-accordion.locked {
  opacity: 0.95;
}

.pet-action-accordion-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: none;
  background: var(--bg-light, #faf7f2);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.pet-action-accordion.is-open > .pet-action-accordion-header .profile-accordion-chevron {
  transform: rotate(180deg);
}

.pet-action-accordion-body {
  padding: 0.65rem 0.8rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pet-action-accordion-body[hidden] {
  display: none !important;
}

.pet-action-enable {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.55rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.pet-action-enable input {
  width: auto !important;
  margin: 0;
  padding: 0;
  border: none;
}

.action-product-photo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.action-product-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pet-action-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--bg-light);
  cursor: pointer;
}

.pet-action-item.enabled {
  border-color: var(--primary);
  background: rgba(217, 166, 107, 0.12);
}

.pet-action-item.locked {
  opacity: 0.62;
  cursor: not-allowed;
}

.pet-action-item input {
  margin-top: 0.2rem;
}

.pet-action-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pet-action-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.pet-action-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.3;
}

.pet-action-breed-tip {
  font-size: 0.75rem;
  color: var(--primary-dark);
  margin-top: 0.2rem;
}

.pet-action-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.pet-action-badge.free {
  background: #e8f5e9;
  color: #2e7d32;
}

.pet-action-badge.premium {
  background: #fff3cd;
  color: #8a6d00;
}

.pet-album {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.pet-album-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.55rem 0.7rem;
  align-items: start;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-light, #faf7f2);
}

.pet-album-item {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pet-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pet-album-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
}

.pet-album-caption {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
  background: #fff;
  color: var(--text-dark, #333);
}

.pet-album-caption:focus {
  outline: none;
  border-color: var(--primary, #d9a66b);
}

.pet-album-caption-count {
  grid-column: 2;
  margin: -0.25rem 0 0;
  font-size: 0.7rem;
  color: #888;
  text-align: right;
}

.pet-album-add-btn {
  width: 100%;
}

.profile-badge {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe8a3, #f6c453);
  color: #5c4300;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Photo Upload */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px dashed var(--primary);
}

.photo-placeholder {
  font-size: 2rem;
}

/* Date Input Wrapper - Simetr?a mejorada */
.date-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.date-input-wrapper input[type="date"] {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  color-scheme: light;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-input-wrapper input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.date-input-wrapper .selection-btn,
.date-confirm-btn {
  padding: 0.95rem 1.35rem;
  white-space: nowrap;
  min-width: 120px;
  border-radius: 12px;
}

.birthdate-picker {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.birthdate-skip-options {
  margin-top: 0.15rem;
}

.age-years-months {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  width: 100%;
  flex-wrap: wrap;
}

.age-field {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.age-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.age-years-months .date-confirm-btn {
  flex: 0 0 auto;
}

.upload-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: var(--primary-dark);
}

/* Registration Card */
.registration-card {
  align-self: center;
  margin: 1rem 0;
}

.registration-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(217, 166, 107, 0.1), rgba(217, 166, 107, 0.05));
  padding: 1.25rem;
  border-radius: 15px;
  border: 2px solid rgba(217, 166, 107, 0.3);
  max-width: 500px;
}

.card-icon {
  font-size: 2rem;
}

.card-text {
  flex: 1;
}

.card-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.card-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Recordarme ? flotante, siempre visible hasta registrarse */
.remind-btn {
  position: fixed;
  bottom: 160px;
  right: 20px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 100;
}

.remind-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 166, 107, 0.3);
}

.remind-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Reset Button */
.reset-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 100;
}

.reset-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(180deg);
  box-shadow: 0 6px 16px rgba(217, 166, 107, 0.3);
}

.reset-btn:active {
  transform: rotate(180deg) scale(0.95);
}

.premium-btn {
  background: linear-gradient(135deg, #ffd700, #ffb347) !important;
  border-color: #ffd700 !important;
  color: #333 !important;
}

.premium-btn:hover {
  background: linear-gradient(135deg, #ffb347, #ff8c00) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
}

/* Registration Banner */
.registration-banner {
  width: 100%;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 2px solid #ffb74d;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: slideDown 0.3s ease;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-icon {
  font-size: 1.25rem;
}

.banner-text {
  font-size: 0.9rem;
  color: #ef6c00;
  font-weight: 500;
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #333;
}

.google-login-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Combined Edit Modal with Tabs */
.combined-edit-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999 !important;
  align-items: center;
  justify-content: center;
}

.combined-edit-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.combined-edit-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: block !important;
  visibility: visible !important;
}

.edit-tabs {
  display: flex;
  border-bottom: 2px solid var(--bg-light);
  overflow-x: auto;
  scrollbar-width: thin;
}

.edit-tab {
  flex: 1 0 auto;
  min-width: 110px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  white-space: nowrap;
  font-family: inherit;
}

.edit-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.edit-tab:hover {
  background: var(--bg-light);
}

.tab-content {
  display: none;
  padding: 1.5rem;
}

.tab-content.active {
  display: block;
}

/* Para el modal de Oliver que no tiene tabs, siempre mostrar el contenido */
#oliver-profile-modal .tab-content {
  display: block !important;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--bg-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input:read-only {
  background: var(--bg-light);
  cursor: not-allowed;
}

.consent-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.recover-form {
  padding-bottom: 0.25rem;
}

.recover-form .form-input {
  scroll-margin-bottom: 120px;
}

.recover-form .breed-custom-actions,
.recover-form .consent-google-btn,
.recover-form .form-hint {
  scroll-margin-bottom: 24px;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.35;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.consent-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.consent-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.consent-divider::before,
.consent-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.consent-google-btn {
  width: 100%;
  justify-content: center;
}

.remind-consent-card {
  background: rgba(255, 152, 0, 0.12);
  border: 1.5px solid rgba(255, 152, 0, 0.35);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.remind-consent-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.4;
  font-weight: 600;
}

.remind-consent-btn {
  border: none;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.remind-consent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(255, 183, 77, 0.12));
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-hero.owner-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
}

.profile-hero-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.profile-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #8b7355, #a89f91);
}

.owner-hero .profile-hero-placeholder {
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-size: 1.8rem;
  font-weight: 700;
}

.profile-hero-camera {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.profile-hero-text {
  min-width: 0;
  flex: 1;
}

.profile-hero-text h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.profile-hero-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.35;
}

.profile-badge {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.15);
  color: #ef6c00;
  font-size: 0.75rem;
  font-weight: 600;
}

.owner-pets-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.owner-pets-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.owner-pets-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 0.9rem;
}

.owner-pet-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.owner-pet-card:hover {
  border-color: var(--primary);
  background: rgba(46, 125, 50, 0.06);
  transform: translateY(-1px);
}

.owner-pet-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffb74d, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner-pet-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.owner-pet-card-emoji {
  font-size: 1.35rem;
}

.owner-pet-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.owner-pet-card-info strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.owner-pet-card-info span {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-pet-card-arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

/* Form Wrapper para inputs de usuario */
.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input {
  padding: 1rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-submit-btn {
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Selector de razas */
.breed-picker {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.25rem 0;
}

.breed-picker .form-label {
  margin-bottom: 0;
}

.breed-picker .form-input {
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--white);
}

.breed-picker .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.breed-picker-hint {
  margin: 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

.breed-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.breed-chip {
  padding: 0.55rem 0.95rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.breed-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.breed-list {
  max-height: min(36vh, 320px);
  min-height: 160px;
  overflow-y: auto;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.breed-option {
  padding: 0.9rem 1.1rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.breed-option:last-child {
  border-bottom: none;
}

.breed-option:hover {
  background: rgba(46, 125, 50, 0.1);
  padding-left: 1.25rem;
}

.breed-empty {
  padding: 1.1rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.breed-custom-actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.breed-custom-actions .form-submit-btn,
.breed-custom-actions .modal-btn {
  flex: 1;
}

.breed-list::-webkit-scrollbar {
  width: 6px;
}

.breed-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* Avatar de usuario */
.user-avatar-bg {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Display de perfil */
.profile-display {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.profile-avatar-large {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.profile-info {
  text-align: center;
}

.profile-info h2 {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-size: 1.5rem;
}

.profile-info p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
}

.selection-btn {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 1.25rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 15px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.selection-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Lista de servicios IdealPet */
.services-list {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 2px solid rgba(217, 166, 107, 0.45);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  color: var(--text-dark);
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(217, 166, 107, 0.22);
}

.service-card-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.service-card-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.service-card-desc {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.3;
}

.services-back-btn {
  width: 100%;
  margin-top: 0.1rem;
}

.perro-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary-dark);
}

.gato-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary-dark);
}

.btn-icon {
  font-size: 1.5rem;
}

.btn-text {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .asesor-header {
    --asesor-header-pad-y: 0.55rem;
    --asesor-header-pad-x: 0.75rem;
    padding: var(--asesor-header-pad-y) var(--asesor-header-pad-x);
    padding-top: max(var(--asesor-header-pad-y), env(safe-area-inset-top, 0px));
  }

  .header-content {
    gap: 0.5rem;
    align-items: center;
  }

  .logo-small {
    height: 28px;
  }

  .chat-group-info {
    gap: 0.45rem;
    min-width: 0;
  }

  .group-avatars {
    max-width: min(38vw, 132px);
  }

  .avatar-wrapper {
    width: 34px;
    height: 34px;
  }

  .avatar-wrapper:not(:first-child) {
    margin-left: -10px;
    border-width: 2px;
  }

  .add-member-btn {
    margin-left: -8px;
  }

  .add-member-btn .avatar {
    font-size: 1.1rem;
  }

  .avatar {
    font-size: 1.1rem;
  }

  .header-menu-btn {
    width: 36px;
    height: 36px;
    gap: 4px;
  }

  .header-menu-btn span {
    width: 17px;
  }

  .header-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .group-title-label {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .group-title-name,
  .group-title h1 {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .asesor-chat-container {
    padding-top: calc(58px + env(safe-area-inset-top, 0px));
  }

  .chat-messages {
    padding: 1rem;
    gap: 1rem;
  }

  .message {
    max-width: 90%;
  }

  .message-avatar {
    width: 40px;
    height: 40px;
  }

  .message-text {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .chat-input-area {
    padding: 1rem;
  }

  .input-wrapper {
    gap: 0.5rem;
  }

  #user-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .send-btn {
    width: 45px;
    height: 45px;
  }

  .selection-buttons {
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }

  .selection-buttons.selection-buttons--scrollable {
    max-height: min(52vh, 480px);
  }

  .selection-buttons.selection-buttons--form-panel {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-height: min(68vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .selection-buttons.selection-buttons--form-panel .consent-form,
  .selection-buttons.selection-buttons--form-panel .recover-form {
    width: 100%;
    max-width: none;
  }

  body.keyboard-open .asesor-chat-container {
    height: var(--vv-height, 100dvh);
    max-height: var(--vv-height, 100dvh);
  }

  body.keyboard-open .chat-messages {
    flex: 0 1 auto;
    max-height: min(24vh, 160px);
    min-height: 72px;
  }

  body.keyboard-open .selection-buttons.selection-buttons--scrollable,
  body.keyboard-open .selection-buttons.selection-buttons--form-panel {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .chat-messages {
    min-height: 26vh;
    padding: 1rem;
    gap: 1rem;
  }

  .breed-list {
    max-height: min(32vh, 280px);
    min-height: 140px;
  }

  .selection-btn {
    min-width: 150px;
    max-width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .logo-small {
    height: 24px;
  }

  .group-avatars {
    max-width: min(36vw, 108px);
  }

  .avatar-wrapper {
    width: 30px;
    height: 30px;
  }

  .avatar-wrapper:not(:first-child) {
    margin-left: -8px;
  }

  .group-title-name,
  .group-title h1 {
    font-size: 0.86rem;
  }

  .asesor-chat-container {
    padding-top: calc(54px + env(safe-area-inset-top, 0px));
  }
}

/* Scrollbar personalizado */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* WA Mobile-First admin */
.wa-mobile {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  margin: 0;
  background: #f4f2ed;
}

.wa-m-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.55rem 0.75rem;
  position: relative;
  top: auto;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-m-header-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.wa-m-phone {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #2c2c2c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-m-sub {
  margin: 0;
  font-size: 0.75rem;
  color: #777;
}

.wa-m-header-actions {
  display: flex;
  gap: 0.25rem;
}

.wa-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 1.05rem;
  cursor: pointer;
}

.wa-m-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.55rem 0.75rem 0.65rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.wa-bnav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  flex-shrink: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 0.25rem 0.2rem calc(0.25rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  transform: none;
  max-width: none;
  border-radius: 0;
}

.wa-bnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: none;
  background: transparent;
  padding: 0.45rem 0.1rem;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  min-height: 44px;
}

.wa-bnav-item.is-active {
  color: #2f6b3c;
}

.wa-bnav-badge {
  position: absolute;
  top: 2px;
  right: 8%;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.wa-group-section {
  margin-bottom: 1.25rem;
}

.wa-group-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #666;
}

.wa-group-section--unnamed .wa-group-section-title {
  color: #9a6b00;
}

.wa-group-section-count {
  font-weight: 700;
  color: #999;
}

.wa-group-section--unnamed .wa-group-section-count {
  color: #b8860b;
}

.wa-card--unnamed {
  border-color: rgba(184, 134, 11, 0.25);
  background: #fffdf8;
}

.wa-card-id-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #aaa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wa-btn-sync-name {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  min-height: 40px;
}

.wa-sync-names-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #fff8eb;
  border: 1px solid rgba(184, 134, 11, 0.22);
}

.wa-sync-names-bar p {
  margin: 0;
  font-size: 0.84rem;
  color: #7a5a00;
  line-height: 1.35;
}

.wa-btn-sync-names-batch {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.wa-sync-names-result {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #eef7f0;
  color: #2f6b3c;
  font-size: 0.82rem;
}

.wa-sync-names-hint {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f7f3ea;
  color: #666;
  font-size: 0.82rem;
}

.wa-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.wa-card--tappable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wa-card--tappable:not(.is-expanding):hover {
  border-color: rgba(47, 107, 60, 0.28);
  box-shadow: 0 3px 14px rgba(47, 107, 60, 0.1);
}

.wa-card--tappable:not(.is-expanding):active {
  transform: scale(0.99);
}

.wa-card--tappable.is-expanding {
  cursor: default;
}

.wa-card-summary {
  position: relative;
  padding-right: 1.1rem;
}

.wa-card--tappable:not(.is-expanding) .wa-card-summary::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 0.65rem;
  font-size: 1.35rem;
  line-height: 1;
  color: #b8b8b8;
  font-weight: 700;
  pointer-events: none;
}

.wa-match-card .wa-card-summary {
  padding-right: 0;
}

.wa-match-card.wa-card--tappable:not(.is-expanding) .wa-card-summary::after {
  top: 50%;
  transform: translateY(-50%);
}

.wa-card.is-leaving {
  opacity: 0;
  transform: translateX(12px) scale(0.985);
  pointer-events: none;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  transition:
    opacity 0.1s ease,
    transform 0.1s ease,
    max-height 0.12s ease,
    margin 0.12s ease,
    padding 0.12s ease,
    border-width 0.12s ease;
}

.wa-card.is-expanding {
  border-color: rgba(47, 107, 60, 0.35);
  box-shadow: 0 4px 16px rgba(47, 107, 60, 0.12);
  transition: border-color 0.08s ease, box-shadow 0.08s ease;
}

.wa-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.wa-card-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.wa-card-breeds {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #2f6b3c;
}

.wa-card-breeds-label {
  font-weight: 700;
  color: #1f4d2a;
}

.wa-card-breeds--empty {
  color: #999;
}

.wa-card-meta,
.wa-card-desc {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.35;
}

.wa-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.wa-btn {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 46px;
}

.wa-btn-work {
  background: #2f6b3c;
  color: #fff;
}

.wa-btn-other {
  background: #f0ebe3;
  color: #444;
}

.wa-btn-ghost {
  width: 100%;
  margin-top: 0.45rem;
  background: transparent;
  color: #666;
  border: 1px dashed rgba(0,0,0,0.15);
}

.wa-btn-edit {
  margin-top: 0.65rem;
  border-style: solid;
  background: #f7f7f5;
  color: #2f6b3c;
  border-color: rgba(47, 107, 60, 0.25);
}

.wa-card-detail-meta {
  margin-bottom: 0.75rem !important;
}

.wa-inline-form {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.wa-inline-label {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wa-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wa-chip {
  border: 1.5px solid rgba(0,0,0,0.1);
  background: #fafafa;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  min-height: 40px;
}

.wa-chip.is-on {
  background: #e5f4ea;
  border-color: #2f6b3c;
  color: #1f6b3a;
}

.wa-selected-breeds {
  margin: 0.4rem 0;
  font-size: 0.82rem;
  color: #2f6b3c;
}

.wa-breed-picker {
  margin-top: 0.35rem;
}

.wa-breed-pick-btn {
  margin-top: 0;
}

.wa-breed-display {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(47, 107, 60, 0.22);
  border-radius: 12px;
  background: #f3faf5;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wa-breed-display-label {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1f6b3a;
  line-height: 1.35;
}

.wa-breed-display-action {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f6b3c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wa-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #777;
}

.wa-search-panel {
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-sizing: border-box;
}

.wa-search-panel .wa-search-field,
.wa-search-panel .wa-search-grid-2,
.wa-search-panel .form-submit-btn {
  width: 100%;
  box-sizing: border-box;
}

.wa-search-panel .form-input,
.wa-search-panel .wa-search-text-input,
.wa-search-panel textarea.form-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.wa-search-panel .form-input:focus,
.wa-search-panel textarea.form-input:focus {
  outline: none;
  border-color: #2f6b3c;
  box-shadow: 0 0 0 3px rgba(47, 107, 60, 0.12);
}

.wa-search-field--name .wa-search-text-input {
  background: #fffdf8;
  border-color: #e8c56a;
  font-weight: 600;
}

.wa-search-field--name .form-label {
  color: #6b5200;
  font-weight: 700;
}

.wa-search-panel .wa-textarea--compact {
  resize: vertical;
  min-height: 72px;
  max-height: 140px;
  line-height: 1.35;
}

.wa-search-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.wa-search-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
  margin-top: 0.45rem;
}

.wa-search-field {
  margin-top: 0.45rem;
}

.wa-search-field--breed {
  margin-top: 0.55rem;
}

.wa-search-breed-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.15rem;
}

.wa-search-panel .wa-breed-display.wa-search-breed-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wa-search-field .form-label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
}

.wa-chip-row--compact {
  gap: 0.3rem;
}

.wa-chip-row--compact .wa-chip {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  font-size: 0.8rem;
  min-height: 38px;
  text-align: center;
}

.wa-field-hint--muted {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  color: #888;
}

.wa-field-hint--muted.is-selected {
  color: #1f6b3a;
  font-weight: 600;
}

.wa-breed-grid-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.8rem, 1fr));
  gap: 0.38rem;
  max-height: min(36vh, 240px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0.05rem 0.25rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.wa-breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.8rem, 1fr));
  gap: 0.4rem;
  align-content: start;
}

.wa-breed-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 0.5rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fafafa;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  word-break: break-word;
}

.wa-breed-toggle.is-on {
  background: #e5f4ea;
  border-color: #2f6b3c;
  color: #1f6b3a;
}

.wa-breed-toggle--other {
  border-style: dashed;
  color: #2f6b3c;
  background: #f7fbf8;
}

.wa-breed-other-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: #f7f7f5;
  border: 1px dashed rgba(47, 107, 60, 0.28);
}

.wa-breed-other-panel[hidden] {
  display: none !important;
}

.wa-breed-other-panel .form-label {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
}

.wa-breed-size-label {
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.wa-breed-other-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.wa-breed-other-actions .wa-btn,
.wa-breed-other-actions .wa-breed-other-add {
  flex: 1;
  margin-top: 0 !important;
  width: auto;
}

.wa-breed-other-add {
  width: 100%;
  margin-top: 0.4rem !important;
}

.wa-textarea {
  resize: vertical;
  min-height: 64px;
}

@media (max-width: 380px) {
  .wa-search-grid-2 {
    grid-template-columns: 1fr;
  }
}

.wa-search-panel .form-submit-btn {
  margin-top: 1rem;
  width: 100%;
}

.wa-linked-phones {
  margin: 0.5rem 0 0.75rem;
}

.wa-linked-label {
  margin: 0 0 0.35rem;
}

.wa-linked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wa-linked-btn {
  font-size: 0.82rem;
}

.wa-linked-hint {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  color: #666;
}

.wa-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.wa-search-actions .form-submit-btn {
  flex: 1 1 auto;
  margin: 0;
}

.wa-search-queue-hint {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
}

.wa-search-results {
  margin-top: 0.85rem;
}

.wa-search-results-lead {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.wa-search-results-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

.wa-groups-details,
.wa-msg-base-details {
  margin: 0.35rem 0 0.5rem;
}

.wa-groups-summary,
.wa-msg-base-summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: #5a6b2f;
  padding: 0.45rem 0;
  list-style: none;
  user-select: none;
}

.wa-groups-summary::-webkit-details-marker,
.wa-msg-base-summary::-webkit-details-marker {
  display: none;
}

.wa-groups-summary::before,
.wa-msg-base-summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}

.wa-groups-details[open] .wa-groups-summary::before,
.wa-msg-base-details[open] .wa-msg-base-summary::before {
  transform: rotate(90deg);
}

.wa-match-count {
  margin: 0.85rem 0 0.4rem;
  font-weight: 700;
}

.wa-match-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0 0.15rem;
}

.wa-match-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  background: #f7f7f5;
  border-radius: 10px;
  font-size: 0.9rem;
}

.wa-match-card {
  margin: 0;
}

.wa-match-head {
  align-items: flex-start;
  gap: 0.5rem;
}

.wa-match-check {
  flex: 0 0 auto;
  padding-top: 0.2rem;
}

.wa-match-check input {
  width: 1.1rem;
  height: 1.1rem;
}

.wa-match-info {
  flex: 1;
  min-width: 0;
}

.wa-match-info h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
}

.wa-match-card .wa-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

.wa-groups-section-label {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6b2f;
}

.wa-groups-section-label--omitted {
  margin-top: 1rem;
  color: #8a6d3b;
}

.wa-omitted-section-hint {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
}

.wa-match-list--omitted {
  margin-top: 0.25rem;
}

.wa-match-card--omitted {
  border-left: 3px solid #d4a84b;
}

.wa-match-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.wa-match-title-row h3 {
  flex: 1 1 auto;
  min-width: 0;
}

.wa-match-card--omitted .wa-badge.warn {
  flex-shrink: 0;
  font-size: 0.68rem;
}

.wa-omitted-preview .wa-card-detail-meta {
  margin: 0 0 0.65rem;
}

.wa-phrases-ready {
  margin: 0.55rem 0 0.2rem;
}

.wa-phrases-ready-lead {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2f6b3c;
  line-height: 1.35;
}

.wa-phrases-details {
  margin-top: 0.4rem;
}

.wa-phrases-summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: #5a6b2f;
  padding: 0.5rem 0;
  list-style: none;
  user-select: none;
}

.wa-phrases-summary::-webkit-details-marker {
  display: none;
}

.wa-phrases-summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}

.wa-phrases-details[open] .wa-phrases-summary::before {
  transform: rotate(90deg);
}

.wa-phrases-scroll {
  margin-top: 0.15rem;
  padding-right: 0.1rem;
}

.wa-source-banner {
  margin: 0.55rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  background: #f7f7f5;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.wa-source-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.wa-source-where {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  opacity: 0.75;
  word-break: break-word;
}

.wa-source-where code {
  font-size: 0.7rem;
}

.wa-send-progress {
  margin-top: 1rem;
}

.wa-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.wa-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4c8c5a, #2f6b3c);
  transition: width 0.35s ease;
}

.wa-send-result {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #e5f4ea;
  color: #1f6b3a;
  border-radius: 10px;
  font-size: 0.88rem;
}

.wa-broadcast-panel {
  padding: 0.2rem 0 1rem;
}

.wa-broadcast-lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: #2f6b3c;
}

.wa-broadcast-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wa-broadcast-subtitle {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
}

.wa-broadcast-card {
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wa-broadcast-card.is-live {
  border-color: rgba(47, 107, 60, 0.28);
  background: linear-gradient(180deg, #f7fbf8 0%, #fff 100%);
}

.wa-broadcast-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.wa-broadcast-head strong {
  display: block;
  font-size: 0.95rem;
}

.wa-broadcast-meta {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.1rem;
}

.wa-broadcast-count {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  color: #333;
}

.wa-broadcast-timing {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #777;
}

.wa-broadcast-last {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #555;
}

.wa-broadcast-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #b00020;
}

.wa-broadcast-card--tappable {
  cursor: pointer;
}

.wa-broadcast-card--tappable:active {
  transform: scale(0.99);
}

.wa-broadcast-tap-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #888;
}

.wa-broadcast-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.5rem 0 0.35rem;
}

.wa-broadcast-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.wa-btn-danger {
  color: #b00020;
  border-color: rgba(176, 0, 32, 0.35);
}

.wa-broadcast-queue {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wa-broadcast-queue-item {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-broadcast-queue-item--sent {
  background: #f0faf3;
  border-color: rgba(47, 107, 60, 0.18);
}

.wa-broadcast-queue-item--pending {
  background: #fffdf5;
  border-color: rgba(180, 130, 0, 0.15);
}

.wa-broadcast-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.wa-broadcast-queue-head strong {
  font-size: 0.86rem;
}

.wa-broadcast-queue-phrase {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
}

.wa-broadcast-queue-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #7a5b00;
  line-height: 1.35;
}

.wa-broadcast-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 0.25rem;
}

.wa-broadcast-card-btn {
  flex: 1 1 auto;
  min-width: 7rem;
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
}

.wa-broadcast-expires {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
}

.wa-broadcast-live {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2f6b3c;
  line-height: 1.35;
}

.wa-broadcast-live.is-pulsing {
  animation: wa-live-pulse 1.2s ease-in-out infinite;
}

@keyframes wa-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.wa-broadcast-bg-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #666;
}

.wa-reuse-note {
  margin: 0.35rem 0 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: #f0f6ff;
  color: #1a4a8a;
  font-size: 0.82rem;
}

.wa-msg-preview-block {
  margin: 0.75rem 0 0.9rem;
}

.wa-msg-preview {
  margin: 0.35rem 0 0;
  background: #f7f7f5;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.wa-msg-variation-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.wa-msg-variation-item strong {
  font-size: 0.78rem;
  color: #666;
}

.wa-breed-sheet {
  position: fixed;
  inset: 0;
  z-index: 10080;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.wa-breed-sheet--full .wa-breed-sheet-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100dvh;
  border-radius: 0;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
}

.wa-breed-sheet-panel {
  width: 100%;
  max-width: 560px;
  max-height: 82dvh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-sizing: border-box;
}

.wa-breed-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.15rem 0 0.35rem;
}

.wa-breed-shortcuts-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #777;
  margin-right: 0.1rem;
}

.wa-breed-shortcut {
  border: 1px solid rgba(47, 107, 60, 0.28);
  background: #f4faf5;
  color: #2f6b3c;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wa-breed-shortcut.is-on {
  background: #2f6b3c;
  color: #fff;
  border-color: #2f6b3c;
}

.wa-breed-shortcut:active {
  transform: scale(0.98);
}

.wa-breed-sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-shrink: 0;
}

.wa-breed-sheet-back {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0.15rem 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2f6b3c;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wa-breed-sheet-head-text {
  flex: 1;
  min-width: 0;
}

.wa-breed-sheet-head-text strong {
  display: block;
  font-size: 1rem;
}

.wa-breed-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.wa-breed-sheet-cancel {
  margin-top: 0 !important;
  min-height: 46px;
  border-style: solid !important;
  background: #f7f7f5 !important;
}

.wa-breed-sheet-apply {
  margin-top: 0 !important;
  width: 100%;
}

.wa-breed-sheet-count {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #666;
  font-weight: 500;
}

.wa-breed-sheet-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.wa-breed-sheet-list.wa-breed-grid {
  max-height: none;
  padding-bottom: 0.25rem;
}

.wa-breed-sheet .form-submit-btn {
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .wa-bnav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 980px;
    border-radius: 16px 16px 0 0;
    position: sticky;
    bottom: 0;
  }
}

@media (max-width: 768px) {
  .admin-workspace-bar {
    padding: 0.5rem 0.75rem;
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    gap: 0.5rem;
  }

  .admin-workspace-logo {
    width: 32px;
    height: 32px;
  }

  .admin-workspace-brand strong {
    font-size: 0.92rem;
  }

  .admin-workspace-sub {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }

  .admin-workspace-menu {
    width: 38px;
    height: 38px;
  }

  .admin-workspace-body {
    padding: 0.65rem 0.75rem 1rem;
  }

  .admin-wa-screen {
    padding: 0.65rem 0.75rem 1rem;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-wa-screen h2 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .admin-home-lead {
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
  }

  .admin-home-card {
    padding: 0.9rem;
  }

  .admin-wa-actions {
    margin-top: 0.65rem;
  }

  .admin-wa-screen .form-input,
  .wa-search-panel .form-input {
    scroll-margin-bottom: 88px;
  }

  body.admin-workspace-open.keyboard-open .admin-workspace {
    height: var(--vv-height, 100dvh);
    max-height: var(--vv-height, 100dvh);
  }

  body.admin-workspace-open.keyboard-open .admin-workspace-sub {
    display: none;
  }

  body.admin-workspace-open.keyboard-open .wa-m-header {
    display: none;
  }

  body.admin-workspace-open.keyboard-open .admin-workspace-body:has(.wa-mobile) {
    flex: 1;
    min-height: 0;
  }

  body.admin-workspace-open.keyboard-open .wa-m-body,
  body.admin-workspace-open.keyboard-open .admin-wa-screen {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
}

.wa-force-new-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.85rem 0 0.25rem;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.35;
}
