/*
 * Ask response presentation only. Preserve collapse state, click targets,
 * focus rules, controls, and the outer modal. Shared guest/crisis cards excluded.
 */
#chatOverlay .answer-card:has(.full-response-collapse) {
  background: #f0e5d4;
}
#chatOverlay .answer-card:has(.full-response-collapse) > .ans-body {
  margin: 0;
  padding: 16px 12px;
}
#chatOverlay .answer-card .ans-header-title {
  color: #171a2b;
  font-weight: 900;
}
#chatOverlay .answer-card .ans-header {
  border-bottom: 2px solid #ba9858;
}
#chatOverlay .answer-card :is(.slbl, .action-step-label, .rl-toolkit-action-lbl),
#chatOverlay .followup-lbl {
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .065em;
  text-transform: uppercase;
  color: #171a2b;
  text-shadow: none;
  overflow-wrap: anywhere;
}
#chatOverlay .answer-card :is(.scene-setup-text, .scene-story-text, .next-text,
  .music-text, .bridge-text, .closing-reflection-text, .nextsteps-text,
  .checkin-emotion, .checkin-question, .checkin-mirror, .rally-text,
  .rl-toolkit-ack, .rl-toolkit-principle, .rl-toolkit-action-text) {
  color: #171a2b;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  text-shadow: none;
  overflow-wrap: anywhere;
}
#chatOverlay .answer-card :is(.scene-story-text, .scene-setup-text, .next-text,
  .music-text, .bridge-text, .rally-text, .nextsteps-text, .rl-toolkit-principle) :is(strong, em) {
  color: #171a2b;
  font-weight: 700;
}

/* A — narrative panels: a visible border and a small warm accent. */
#chatOverlay .answer-card :is(.scene-setup-box, .scene-story-box, .next-box,
  .coaching-checkin, .closing-reflection) {
  background: #fff9ef;
  border: 1px solid #bda679;
  border-left: 3px solid #bb644b;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 3px 8px rgb(58 42 24 / 9%);
}
#chatOverlay .answer-card .scene-setup-box {
  background: #e9dcc5;
  border-left-color: #9b7837;
}
#chatOverlay .answer-card .next-box {
  background: #eee0ca;
  border-left-color: #ad8639;
}
#chatOverlay .answer-card .coaching-checkin {
  background: #f7eddd;
}
#chatOverlay .answer-card .full-response-collapse > .collapse-body > * {
  margin: 14px 0;
}
#chatOverlay .answer-card .full-response-hdr {
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.3;
  color: #171a2b;
  background: transparent;
  border: 0;
  border-top: 2px solid #ad8639;
  border-bottom: 1px solid #ad8639;
  border-radius: 0;
  padding: 14px 0;
}
#chatOverlay .answer-card .full-response-hdr:hover {
  background: #e9dcc5;
  color: #171a2b;
}
#chatOverlay .answer-card .collapse-header {
  gap: 12px;
}
#chatOverlay .answer-card .collapse-header > .slbl {
  min-width: 0;
  margin-bottom: 0;
}
#chatOverlay .answer-card .collapse-chevron {
  flex-shrink: 0;
}

/* B — cinematic features, with the padding inside the existing collapse body.
 * No display/max-height/opacity overrides: collapsed behavior stays intact. */
#chatOverlay .answer-card :is(.the-line-box, .music-box) {
  background: #fff9ef;
  border: 1px solid #b49759;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(58 42 24 / 12%);
}
#chatOverlay .answer-card .the-line-box::before {
  content: none;
}
#chatOverlay .answer-card :is(.the-line-box, .music-box) > .collapse-header {
  padding: 14px 18px;
  margin: 0;
  background: #192039;
  border-bottom: 1px solid #ad8639;
}
#chatOverlay .answer-card :is(.the-line-box, .music-box) > .collapse-header :is(.slbl, .collapse-chevron) {
  color: #e5c77f;
}
#chatOverlay .answer-card .the-line-box {
  background: #ead7b2;
}
#chatOverlay .answer-card .the-line-quote {
  margin: 20px 20px 0;
  padding-left: 14px;
  border-left: 3px solid #b65d43;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.55;
  color: #171a2b;
  overflow-wrap: anywhere;
}
#chatOverlay .answer-card .the-line-attr {
  margin: 12px 20px 20px 37px;
  color: #65471a;
  overflow-wrap: anywhere;
}
#chatOverlay .answer-card .music-text {
  margin: 18px 20px;
}

/* C — Coach and action: the warmest, strongest panel on the page. */
#chatOverlay .answer-card .unified-action-box {
  background: #f8d9ca;
  border: 2px solid #b95c43;
  border-top: 5px solid #b95c43;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 5px 14px rgb(105 49 30 / 14%);
}
#chatOverlay .answer-card .unified-action-box:hover {
  border-color: #96452f;
}
#chatOverlay .answer-card .uab-header {
  gap: 12px;
  flex-wrap: wrap;
}
#chatOverlay .answer-card .uab-header .slbl {
  font-size: 24px;
  font-weight: 800;
  flex: 1 1 160px;
}
#chatOverlay .answer-card .action-step-divider {
  background: #bd775e;
  height: 2px;
  margin: 20px 0 16px;
}
#chatOverlay .answer-card .action-step-label {
  color: #7f3526;
}

/* Evidence is quieter and cooler, not another feature or story tile. */
#chatOverlay .answer-card .rl-toolkit-card {
  margin: 0 12px 16px;
  padding: 18px 20px;
  background: #e5e3db;
  border: 1px solid #aaa99a;
  border-left: 4px solid #9d803f;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #f8f6ed, 0 3px 8px rgb(35 37 44 / 8%);
}
#chatOverlay .answer-card .rl-toolkit-action-wrap {
  background: #f9dfd1;
  border: 1px solid #c28168;
  border-radius: 10px;
  padding: 14px;
}
#chatOverlay .answer-card .rl-toolkit-action-lbl {
  color: #7f3526;
}
#chatOverlay .followup-box {
  background: #e9dcc5;
  border: 1px solid #b49a69;
  border-top: 3px solid #ad8639;
  box-shadow: 0 3px 8px rgb(58 42 24 / 9%);
  margin-top: 16px;
  padding: 20px;
}
#chatOverlay .followup-lbl {
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  #chatOverlay .answer-card :is(.scene-setup-box, .scene-story-box, .next-box,
    .coaching-checkin, .closing-reflection) {
    padding: 16px 14px;
  }
  #chatOverlay .answer-card .unified-action-box {
    padding: 18px 14px;
  }
  #chatOverlay .answer-card .rl-toolkit-card {
    padding: 16px 14px;
  }
  #chatOverlay .answer-card :is(.the-line-box, .music-box) > .collapse-header {
    padding: 14px;
  }
  #chatOverlay .answer-card .the-line-quote {
    font-size: 21px;
    margin: 18px 14px 0;
    padding-left: 10px;
  }
  #chatOverlay .answer-card .the-line-attr {
    margin: 12px 14px 18px 27px;
  }
  #chatOverlay .answer-card .music-text {
    margin: 16px 14px;
  }
  #chatOverlay .followup-box {
    padding: 16px 14px;
  }
}