/*
 * 症状划线解释旁路样式。
 * 只影响浮窗和临时高亮，不改变 01-05 模块原有布局。
 */
.symptom-evidence-highlight {
  background: #fff2a8;
  border-bottom: 2px solid #d89b00;
  color: inherit;
  padding: 0 1px;
}

.symptom-evidence-control {
  position: relative;
  overflow: hidden;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 18px;
  border: 1px solid var(--line, #dbe7f5);
  border-radius: 18px;
  background: var(--panel, #ffffff);
  box-shadow: var(--shadow);
  padding: 18px;
}

.symptom-evidence-control::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  content: "";
}

.symptom-evidence-control-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink, #17233c);
}

.symptom-evidence-control-title strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 950;
}

.symptom-evidence-control-title strong::before {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  content: "S";
  font-size: 14px;
  font-weight: 950;
}

#symptomEvidenceStatus {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(47, 109, 246, 0.18);
  border-radius: 999px;
  background: #eef4ff;
  color: var(--muted, #66758d);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
}

.symptom-evidence-control-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.symptom-evidence-switch,
.symptom-evidence-disease-field {
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line, #dbe7f5);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--ink, #17233c);
  font-size: 18px;
  font-weight: 950;
  padding: 11px 12px;
}

.symptom-evidence-switch {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  color: var(--ink, #17233c);
  font-weight: 900;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.symptom-evidence-switch:hover {
  border-color: rgba(47, 109, 246, 0.45);
  box-shadow: 0 12px 26px rgba(47, 109, 246, 0.12);
  transform: translateY(-1px);
}

.symptom-evidence-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.symptom-switch-orb {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, #ffffff 0 18%, rgba(255, 255, 255, 0) 34%),
    conic-gradient(from 150deg, #dbeafe, #e0f2fe, #ecfdf5, #dbeafe);
  box-shadow:
    inset 0 0 0 1px rgba(47, 109, 246, 0.16),
    0 9px 20px rgba(39, 92, 188, 0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.symptom-switch-orb::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  content: "";
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.symptom-switch-core {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.symptom-evidence-switch input:checked + .symptom-switch-orb {
  background:
    radial-gradient(circle at 30% 24%, #ffffff 0 15%, rgba(255, 255, 255, 0) 32%),
    conic-gradient(from 90deg, var(--blue), var(--cyan), var(--green), var(--blue));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 10px 24px rgba(47, 109, 246, 0.28),
    0 0 0 7px rgba(34, 197, 94, 0.1);
  transform: rotate(18deg);
}

.symptom-evidence-switch input:checked + .symptom-switch-orb .symptom-switch-core {
  background: linear-gradient(135deg, #ffffff, #dffdfa);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(34, 211, 238, 0.58);
  transform: scale(1.1);
}

.symptom-evidence-switch input:focus-visible + .symptom-switch-orb {
  outline: 3px solid rgba(47, 109, 246, 0.3);
  outline-offset: 3px;
}

.symptom-switch-label {
  min-width: 0;
  line-height: 1.35;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.symptom-evidence-disease-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted, #66758d);
  font-weight: 950;
}

.symptom-evidence-disease-field select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line, #dbe7f5);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink, #17233c);
  font: inherit;
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1120px) {
  .symptom-evidence-control-grid {
    grid-template-columns: 1fr;
  }

  .symptom-switch-label,
  .symptom-evidence-disease-field {
    white-space: normal;
  }
}

.symptom-evidence-disease-field select.is-masked {
  color: #77718b;
  text-shadow: none;
  opacity: 1;
}

.symptom-evidence-disease-field select.is-masked option {
  color: #172033;
}

.symptom-evidence-popover {
  position: absolute;
  z-index: 10000;
  width: min(420px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid rgba(29, 41, 57, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  color: #172033;
  font-size: 14px;
  line-height: 1.55;
}

.symptom-evidence-popover[hidden] {
  display: none;
}

.symptom-evidence-actions,
.symptom-evidence-result,
.symptom-evidence-loading {
  padding: 14px;
}

.symptom-enhanced-progress {
  padding: 16px;
}

.symptom-enhanced-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #163a59;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.symptom-enhanced-progress-heading strong {
  font-size: 16px;
  font-weight: 950;
}

.symptom-enhanced-progress-heading span {
  flex: 0 0 auto;
  color: #60758a;
  font-size: 13px;
  font-weight: 800;
}

.symptom-enhanced-progress-track {
  height: 8px;
  overflow: hidden;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: #e4edf6;
}

.symptom-enhanced-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #247bd1, #18b7c9, #27b877);
  transition: width 0.3s ease;
}

.symptom-enhanced-progress p {
  margin: 0 0 12px;
  color: #50677b;
  font-size: 14px;
}

.symptom-stop-button {
  width: 100%;
  border: 1px solid #d3deea;
  border-radius: 8px;
  background: #fff;
  color: #425b70;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 9px 12px;
}

.symptom-stop-button:hover {
  border-color: #ee9c9c;
  background: #fff5f5;
  color: #b42318;
}

.symptom-evidence-actions p,
.symptom-evidence-result p {
  margin: 0 0 10px;
}

.symptom-evidence-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.symptom-evidence-button-row button {
  border: 0;
  border-radius: 6px;
  background: #1d4ed8;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}

.symptom-evidence-button-row button:hover {
  background: #1e40af;
}

.symptom-evidence-button-row .ghost {
  border: 1px solid rgba(29, 41, 57, 0.18);
  background: #ffffff;
  color: #334155;
}

.symptom-evidence-button-row .ghost:hover {
  background: #f8fafc;
}

.symptom-evidence-result h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 16px;
}

.symptom-evidence-result h4 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 14px;
}

.symptom-evidence-provenance {
  margin: 0 0 12px !important;
  padding: 9px 11px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 10px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 13px;
}

.symptom-evidence-fields {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0 0 12px;
}

.symptom-evidence-fields dt {
  color: #475569;
  font-weight: 700;
}

.symptom-evidence-fields dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.symptom-evidence-disease-list {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.symptom-evidence-disease-list li {
  border: 1px solid rgba(29, 41, 57, 0.12);
  border-radius: 6px;
  background: #f8fafc;
  color: #243044;
  padding: 5px 7px;
}

.symptom-evidence-source {
  border-top: 1px solid rgba(29, 41, 57, 0.12);
  padding-top: 10px;
}

.symptom-evidence-source + .symptom-evidence-source {
  margin-top: 10px;
}

.symptom-evidence-source a,
.symptom-evidence-fields a {
  color: #1d4ed8;
  overflow-wrap: anywhere;
}

.symptom-evidence-warning {
  border-left: 3px solid #d97706;
  background: #fff7ed;
  color: #7c2d12;
  padding: 8px 10px;
}

.symptom-evidence-muted {
  color: #64748b;
}

.symptom-evidence-animation {
  counter-reset: symptom-step;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.symptom-evidence-animation li {
  counter-increment: symptom-step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 8px 0;
}

.symptom-evidence-animation li::before {
  content: counter(symptom-step);
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e0f2fe;
  color: #075985;
  font-weight: 700;
}

.symptom-evidence-popover .is-pending {
  color: #b45309;
  font-weight: 700;
}

.symptom-evidence-popover .is-reviewed {
  color: #047857;
  font-weight: 700;
}

@media (max-width: 520px) {
  .symptom-evidence-control {
    margin-left: 12px;
    margin-right: 12px;
  }

  .symptom-evidence-control-grid {
    grid-template-columns: 1fr;
  }

  .symptom-evidence-disease-field {
    grid-template-columns: 1fr;
  }

  .symptom-evidence-popover {
    left: 12px !important;
    right: 12px;
    width: auto;
  }

  .symptom-evidence-fields {
    grid-template-columns: 1fr;
  }
}

/* 2026-08-20：症状划词临床证据工作台与解释浮层。 */
.symptom-evidence-highlight {
  border-bottom: 2px solid #9b6bc0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 8%, rgba(232, 210, 248, 0.88) 8%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.symptom-evidence-control {
  overflow: visible;
  border-color: rgba(150, 112, 188, 0.2);
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(222, 203, 244, 0.38), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(198, 232, 225, 0.34), transparent 34%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 48px rgba(105, 80, 139, 0.1);
  backdrop-filter: blur(16px);
}

.symptom-evidence-control::before {
  inset: 0 auto 0 0;
  width: 5px;
  height: auto;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, #a67ac4, #70b9b4, #e4b367);
}

.symptom-evidence-control-title {
  align-items: flex-start;
  gap: 18px;
}

.symptom-evidence-control-title strong {
  gap: 10px;
  font-size: 22px;
}

.symptom-evidence-control-title strong::before {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(145deg, #9b72bc, #6daca9);
  content: "释";
  box-shadow: 0 8px 18px rgba(121, 87, 157, 0.2);
}

#symptomEvidenceStatus {
  max-width: 460px;
  display: block;
  min-height: 34px;
  border-color: rgba(139, 101, 174, 0.2);
  background: rgba(248, 243, 252, 0.86);
  color: #6f5b7d;
  font-size: 16px;
  line-height: 1.45;
  white-space: normal;
}

.symptom-evidence-control-grid {
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1.22fr);
  gap: 14px;
  margin-top: 0;
}

.symptom-evidence-switch,
.symptom-evidence-disease-field {
  min-height: 62px;
  border-color: rgba(135, 112, 158, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(82, 75, 106, 0.06);
}

.symptom-evidence-switch {
  grid-template-columns: 62px minmax(0, 1fr);
}

.symptom-switch-orb {
  width: 56px;
  height: 32px;
  place-items: center start;
  border-radius: 999px;
  background: #e9e7ed;
  box-shadow: inset 0 0 0 1px rgba(98, 101, 118, 0.12);
}

.symptom-switch-orb::before {
  display: none;
}

.symptom-switch-core {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(63, 68, 82, 0.2);
  transform: translateX(0);
}

.symptom-evidence-switch input:checked + .symptom-switch-orb {
  background: linear-gradient(90deg, #9f73bf, #6eaaa8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 7px 16px rgba(116, 92, 145, 0.18);
  transform: none;
}

.symptom-evidence-switch input:checked + .symptom-switch-orb .symptom-switch-core {
  background: #fff;
  box-shadow: 0 3px 10px rgba(61, 63, 82, 0.24);
  transform: translateX(24px);
}

.symptom-evidence-disease-field {
  color: #75647e;
  font-size: 15px;
}

.symptom-evidence-disease-field select {
  min-height: 40px;
  border-color: rgba(135, 112, 158, 0.18);
  border-radius: 13px;
  background: #fbf9fc;
  font-size: 15px;
}

.symptom-evidence-popover {
  --symptom-evidence-accent: #745486;
  --symptom-evidence-ink: #302b36;
  --symptom-evidence-muted: #746c79;
  width: min(540px, calc(100vw - 32px));
  max-height: min(700px, calc(100dvh - 32px));
  overscroll-behavior: contain;
  border-color: rgba(113, 83, 132, 0.2);
  border-radius: 22px;
  background: #fdfcfe;
  box-shadow: 0 28px 72px rgba(57, 43, 69, 0.2), 0 2px 8px rgba(57, 43, 69, 0.08);
  color: var(--symptom-evidence-ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  font-synthesis: none;
  line-height: 1.78;
  scrollbar-color: #d4c9da transparent;
  scrollbar-width: thin;
  text-rendering: optimizeLegibility;
}

.symptom-evidence-popover::-webkit-scrollbar {
  width: 8px;
}

.symptom-evidence-popover::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #d4c9da;
  background-clip: padding-box;
}

.symptom-evidence-actions,
.symptom-evidence-loading {
  padding: 24px;
}

.symptom-evidence-result {
  padding: 0 24px 24px;
}

.symptom-evidence-actions > p:first-child {
  margin: 0 0 15px;
  color: #574566;
  font-size: 15px;
}

.symptom-evidence-actions > p:first-child strong {
  color: #8c60aa;
}

.symptom-evidence-button-row {
  gap: 10px;
}

.symptom-evidence-button-row button {
  min-height: 42px;
  border: 1px solid rgba(117, 83, 145, 0.14);
  border-radius: 13px;
  background: linear-gradient(135deg, #9169af, #6b9f9e);
  box-shadow: 0 8px 18px rgba(104, 78, 133, 0.14);
  font-weight: 900;
  padding: 9px 15px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.symptom-evidence-button-row button:hover {
  background: linear-gradient(135deg, #875fa7, #609593);
  box-shadow: 0 11px 24px rgba(104, 78, 133, 0.2);
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.symptom-evidence-button-row .ghost {
  border-color: rgba(117, 83, 145, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #6a5576;
  box-shadow: none;
}

.symptom-evidence-result h3 {
  color: #563f66;
  font-size: 18px;
}

.symptom-evidence-result h4 {
  color: #516269;
  font-size: 15px;
}

.symptom-evidence-provenance {
  border-color: rgba(111, 164, 158, 0.24);
  border-radius: 14px;
  background: #eff8f6;
  color: #386d68;
}

.symptom-evidence-fields {
  gap: 9px 12px;
  border: 1px solid rgba(119, 100, 137, 0.12);
  border-radius: 16px;
  padding: 13px;
  background: #fcfbfd;
}

.symptom-evidence-source {
  border: 1px solid rgba(119, 100, 137, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: #fcfbfd;
}

.symptom-evidence-source + .symptom-evidence-source {
  margin-top: 9px;
}

.symptom-evidence-warning {
  border: 1px solid rgba(212, 149, 65, 0.24);
  border-left: 4px solid #d6a04e;
  border-radius: 12px;
  background: #fff9ef;
}

@media (max-width: 760px) {
  .symptom-evidence-control-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .symptom-switch-core,
  .symptom-evidence-button-row button {
    transition: none !important;
  }
}

/* 症状解释采用医学阅读卡片结构：划词、病例、解释、机制、来源。 */
.symptom-evidence-heading {
  margin: 0 -24px;
  padding: 22px 24px 20px;
  border-bottom: 1px solid rgba(129, 95, 155, 0.14);
  background: linear-gradient(135deg, #f6f1f9 0%, #f4f7f7 100%);
}

.symptom-evidence-heading > span {
  display: block;
  margin-bottom: 6px;
  color: var(--symptom-evidence-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.symptom-evidence-heading h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #3c3144;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.symptom-evidence-heading .symptom-evidence-case-context {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  align-items: baseline;
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(116, 84, 134, 0.32);
  color: var(--symptom-evidence-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.symptom-evidence-case-context span {
  font-weight: 600;
}

.symptom-evidence-case-context strong {
  color: #61486e;
  font-weight: 800;
}

.symptom-evidence-explanation {
  display: grid;
  padding-top: 4px;
}

.symptom-evidence-content-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 20px 2px;
  border-bottom: 1px solid rgba(119, 100, 137, 0.11);
}

.symptom-evidence-explanation h4,
.symptom-evidence-explanation p {
  margin: 0;
}

.symptom-evidence-explanation h4 {
  margin-top: 0;
  color: var(--symptom-evidence-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.symptom-evidence-explanation p {
  color: #35313a;
  letter-spacing: 0.01em;
  line-height: 1.9;
  overflow-wrap: anywhere;
  text-align: left;
}

.symptom-evidence-analogy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 16px 0 4px;
  padding: 17px 18px;
  border: 1px solid rgba(116, 84, 134, 0.12);
  border-left: 3px solid #8c6d9d;
  border-radius: 14px;
  background: #f8f5fa;
}

.symptom-evidence-source-line {
  display: grid;
  gap: 12px;
  width: auto;
  margin: 20px -24px -24px;
  padding: 18px 24px 19px;
  border: 0;
  border-top: 1px solid rgba(119, 100, 137, 0.12);
  border-radius: 0;
  background: #faf9fb;
  box-shadow: none;
  color: #655d6c;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.symptom-evidence-generation-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  min-width: 0;
}

.symptom-evidence-generation-summary strong {
  color: #55455f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.symptom-evidence-generation-summary p {
  margin: 0;
  color: #5f5868;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-align: left;
}

.symptom-evidence-reference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: baseline;
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(119, 100, 137, 0.09);
}

.symptom-evidence-reference-row > span {
  color: #807586;
  font-size: 12px;
  font-weight: 800;
}

.symptom-evidence-reference-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.symptom-evidence-source-line a {
  color: #477b79;
  font-weight: 800;
  text-decoration-color: rgba(71, 123, 121, 0.38);
  text-underline-offset: 3px;
}

.symptom-evidence-source-line a:hover {
  color: #365f5e;
  text-decoration-thickness: 2px;
}

.symptom-evidence-source-line a:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(111, 82, 132, 0.42);
  outline-offset: 3px;
}

.symptom-evidence-source-separator {
  color: #aaa1af;
}

@media (max-width: 520px) {
  .symptom-evidence-popover {
    width: min(540px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .symptom-evidence-actions,
  .symptom-evidence-loading {
    padding: 20px 18px;
  }

  .symptom-evidence-result {
    padding: 0 18px 18px;
  }

  .symptom-evidence-heading {
    margin: 0 -18px;
    padding: 19px 18px 18px;
  }

  .symptom-evidence-heading h3 {
    font-size: 20px;
    line-height: 1.48;
  }

  .symptom-evidence-content-block {
    gap: 7px;
    padding: 19px 0;
  }

  .symptom-evidence-explanation h4 {
    margin-top: 0;
  }

  .symptom-evidence-explanation p {
    font-size: 14.5px;
    line-height: 1.85;
  }

  .symptom-evidence-analogy {
    gap: 7px;
    margin-top: 15px;
    padding: 15px 16px;
  }

  .symptom-evidence-source-line {
    margin: 16px -18px -18px;
    padding: 16px 18px 17px;
  }

  .symptom-evidence-reference-row {
    padding-top: 10px;
  }
}
