.submit-modal:has(#submit-result:not([hidden])) {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.result-card {
  border-left: 0;
  background: #eee5d7;
  padding: 22px;
}

.insight-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid #d5c7b3;
  padding-bottom: 12px;
}

.insight-heading strong {
  color: #302b4d;
  font-size: 17px;
}

.insight-heading span,
.insight-sources {
  color: #8a795e;
  font-size: 11px;
}

.insight-summary {
  color: #544d60;
  font-style: normal;
  line-height: 1.8;
}

.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 20px;
}

.insight-tags span {
  border: 1px solid #cbb78f;
  color: #725e3f;
  background: #f8f1e5;
  padding: 4px 9px;
  font-size: 11px;
}

.narrative-reading {
  border-top: 1px solid #d5c7b3;
  border-bottom: 1px solid #d5c7b3;
  margin: 20px 0 4px;
  padding: 20px 0 18px;
}

.narrative-reading h4 {
  color: #76582d;
  font-size: 14px;
  letter-spacing: .06em;
  margin: 0 0 13px;
}

.narrative-reading p {
  color: #514a59;
  font-size: 13px;
  line-height: 2;
  margin: 0 0 13px;
}

.narrative-reading blockquote {
  border-left: 2px solid #c18e39;
  background: #f9f2e6;
  color: #6d4f25;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  margin: 18px 0 0;
  padding: 12px 15px;
}

.insight-section {
  margin-top: 18px;
}

.insight-section h4 {
  color: #76582d;
  font-size: 13px;
  margin: 0 0 6px;
}

.insight-section p {
  color: #575060;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

.insight-advice {
  border-left: 2px solid #d3a84f;
  background: rgba(255, 249, 237, .65);
  padding: 12px 14px;
}

.insight-sources {
  margin-top: 17px;
}

.insight-conclusion {
  border: 1px solid rgba(210, 177, 109, .35);
  background: #29253f;
  color: #f5efe6;
  margin-top: 22px;
  padding: 18px 19px;
  box-shadow: 0 10px 24px rgba(36, 29, 61, .16);
}

.insight-conclusion > span {
  color: #c9b5f2;
  font-size: 11px;
  letter-spacing: .08em;
}

.insight-conclusion h4 {
  color: #f0c977;
  font-size: 15px;
  margin: 9px 0 7px;
}

.insight-conclusion p {
  color: #e5dfeb;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}

.insight-disclaimer {
  display: block;
  border-top: 1px solid #d5c7b3;
  color: #8d8490;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 12px;
}

@media (max-width: 600px) {
  .submit-modal:has(#submit-result:not([hidden])) {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .result-card {
    padding: 17px;
  }

  .insight-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
