/* The Rettung page (rescue.mjs): Blechy asks, the answers are buttons. Own classes carry the prefix cee-. */
.cee-rescue {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cee-rescue > * {
  margin: 0;
}

.cee-rescue-chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

/* Blechy on the left, his speech bubble beside him; your answer as a bubble on the right. */
.cee-rescue-say {
  display: grid;
  grid-template-columns: var(--space-16) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: end;
}

.cee-rescue-blechy {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
  image-rendering: pixelated;
}

.cee-rescue-bubble {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 44rem;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-lg);
  background: var(--color-surface-panel-alt);
  line-height: 1.6;
}

.cee-rescue-say .cee-rescue-bubble {
  border-bottom-left-radius: var(--radius-xs);
}

.cee-rescue-bubble > * {
  margin: 0;
}

.cee-rescue-you {
  display: flex;
  justify-content: flex-end;
}

.cee-rescue-you .cee-rescue-bubble {
  border-color: var(--color-accent-primary-ring);
  border-bottom-right-radius: var(--radius-xs);
  background: var(--color-accent-primary-ring-soft);
}

.cee-rescue-source {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


.cee-rescue-path {
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  color: var(--color-text-primary);
}


/* The answers: one button each, under the last bubble. */
.cee-rescue-answers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-2);
  padding-left: calc(var(--space-16) + var(--space-3));
}

.cee-rescue-answers[hidden] {
  display: none;
}

.cee-rescue-answers .btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  height: auto;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  white-space: normal;
}

.cee-rescue-hint {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.cee-rescue-folder [data-device="red"] { --cee-device-tone: var(--color-status-error); }
.cee-rescue-folder [data-device="blue"] { --cee-device-tone: var(--color-chart-blue); }
.cee-rescue-folder [data-device="grey"] { --cee-device-tone: var(--color-text-muted); }

@media (max-width: 720px) {
  .cee-rescue-say { grid-template-columns: var(--space-10) minmax(0, 1fr); }
  .cee-rescue-answers { padding-left: 0; }
}
