.family-activity>img{width:100%;max-height:260px;object-fit:cover;border-radius:12px}.activity-instructions{white-space:pre-wrap;overflow-wrap:anywhere}.archive-table{overflow:auto;max-height:55vh}.archive-table table{border-collapse:collapse;min-width:850px}.archive-table th,.archive-table td{padding:8px;border:1px solid #ddd;text-align:left}.archive-table th{background:#10223f;color:white;position:sticky;top:0}.top-actions{flex-wrap:wrap}
.workspace:has(#chat-workspace) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  min-height: 300px;
}
.workspace:has(#chat-workspace) > .topbar {
  height: auto;
  min-height: 72px;
  padding: 12px clamp(16px, 2.5vw, 32px);
}
.workspace:has(#chat-workspace) .eyebrow,
.workspace:has(#chat-workspace) > .footer { display: none; }
#page:has(#chat-workspace) {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}
#chat-workspace { height: 100%; min-width: 0; }
#clan-chat.chat-full {
  position: static;
  width: 100%;
  max-width: none;
  height: 100%;
  z-index: auto;
}
.chat-full .chat-dock,
.chat-full [data-chat=toggle],
.chat-full [data-chat=back],
.chat-full .chat-privacy { display: none; }
.chat-full .chat-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-columns: clamp(230px, 28%, 330px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.chat-full .chat-heading,
.chat-full .chat-search {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.chat-full .chat-heading { grid-area: 1 / 2; }
.chat-full .chat-search { grid-area: 1 / 1; border-right: 1px solid var(--border); }
.chat-full .chat-search label { margin-top: 8px; }
.chat-list-title { font-size: 1rem; margin-right: 10px; }
.chat-full #chat-contacts {
  grid-area: 2 / 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.chat-full .chat-contact { padding: 14px 16px; border-color: var(--border); }
.chat-full .chat-contact.selected {
  background: #f7efdf;
  box-shadow: inset 3px 0 #ad8641;
}
.chat-full #chat-conversation,
.chat-full .chat-empty { grid-area: 2 / 2; min-height: 0; min-width: 0; }
.chat-full #chat-conversation:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.chat-full .chat-empty:not([hidden]) {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  background: #f4f6f9;
  color: #253b56;
  font-size: 1.15rem;
}
.chat-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f6ecd8;
}
.chat-full #chat-messages {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  overflow: auto;
  padding: clamp(12px, 2vw, 24px);
  background: #f4f6f9;
}
.chat-full #chat-send {
  flex: 0 0 auto;
  padding: 10px clamp(12px, 2vw, 24px);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.chat-full #chat-body {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  resize: none;
}
#chat-whatsapp { color: #176d3b; padding: 4px; font-size: .8rem; }

@media (max-width: 800px) {
  .shell:has(#chat-workspace) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(300px, 1fr) auto;
    height: 100dvh;
    min-height: 0;
  }
  .workspace:has(#chat-workspace) { height: auto; }
  .shell:has(#chat-workspace) > .mobile-nav { position: static; }
  .chat-full .chat-panel { grid-template-columns: minmax(0, 1fr); }
  .chat-full .chat-heading, .chat-full .chat-search { grid-area: 1 / 1; }
  .chat-full #chat-contacts, .chat-full #chat-conversation { grid-area: 2 / 1; border-right: 0; }
  .chat-full .chat-search { border-right: 0; }
  .chat-full:not(.chat-has-peer) .chat-heading,
  .chat-full .chat-empty:not([hidden]),
  .chat-full.chat-has-peer .chat-search,
  .chat-full.chat-has-peer #chat-contacts { display: none; }
  .chat-full.chat-has-peer [data-chat=back] { display: inline-flex; }
  .chat-full #chat-conversation:not([hidden]) { overflow: auto; }
  .top-actions { gap: 5px; }
  .top-actions .user-pill { max-width: 90px; }
}

.collection-card.collection-complete{background:#eaf7ef;border-color:#80bc96}

.support-funded{background:#eaf7ef;border-color:#80bc96}

/* Confirmar a los integrantes del núcleo sin separar casilla y nombre. */
.attendance-members { min-width: 0; margin: 0 0 16px; padding: 12px; border: 1px solid #e0e5ee; border-radius: 12px; }
.attendance-members legend { max-width: 100%; padding: 0 4px; }
.attendance-members .attendance-member { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 10px 0; cursor: pointer; }
.attendance-members .attendance-member input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #10213b; }
.attendance-members .attendance-member span { min-width: 0; overflow-wrap: anywhere; }

