/* Quote page stock health score badge + dialog (quote-health.js). */
.kse-health { margin: 10px 0; }
.kse-health-badge {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px;
  padding: 8px 14px; border: 1px solid #e6ebf1; border-radius: 12px;
  background: #fff; color: #5b6b7c; font: inherit; font-size: 0.85rem; text-align: left; cursor: pointer;
}
.kse-health-badge:hover { border-color: #b9c6d6; }
.kse-health-num {
  flex: 0 0 auto; width: 44px; height: 44px; line-height: 44px; border-radius: 50%;
  text-align: center; font-size: 1.1rem; font-weight: 800; color: #fff;
}
.kse-health-text b { display: block; color: #0a2540; }
.kse-health--good .kse-health-num, .kse-health-score.kse-health--good { background: #0a8f4f; }
.kse-health--avg .kse-health-num, .kse-health-score.kse-health--avg { background: #c27803; }
.kse-health--weak .kse-health-num, .kse-health-score.kse-health--weak { background: #d23b3b; }

.kse-health-dialog {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 18px 16px;
  border: 0; border-radius: 14px; background: #f6f9fc; color: #33475b; font-size: 0.85rem;
}
.kse-health-dialog::backdrop { background: rgba(10, 37, 64, 0.55); }
.kse-health-dialog h2 { margin: 0 36px 6px 0; font-size: 1.15rem; color: #0a2540; }
.kse-health-score { display: inline-block; padding: 1px 8px; border-radius: 8px; color: #fff; }
.kse-health-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  border: 0; background: transparent; font-size: 1.5rem; color: #5b6b7c; cursor: pointer;
}
.kse-health-intro, .kse-health-disclaimer { margin: 0 0 10px; color: #5b6b7c; line-height: 1.5; }
.kse-health-disclaimer { margin: 10px 0 0; font-size: 0.78rem; }
.kse-health-flags { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: #fdecec; color: #9b1c1c; }
.kse-health-flags ul { margin: 4px 0 0; padding-left: 18px; }
.kse-health-part { margin-bottom: 10px; padding: 10px 12px; background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; }
.kse-health-part h3 { display: flex; justify-content: space-between; margin: 0; font-size: 0.95rem; color: #0a2540; }
.kse-health-note { margin: 2px 0 6px; color: #5b6b7c; }
.kse-health-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.kse-health-table th, .kse-health-table td { padding: 4px 3px; border-top: 1px solid #eef2f6; text-align: right; }
.kse-health-table th:first-child, .kse-health-table td:first-child { text-align: left; }
.kse-health-table th { color: #5b6b7c; font-weight: 600; }

/* Watchlist Health and Buy/Sell chips (watchlist-page.js); click opens #wlSigDialog. */
#wlList .wl-sig { padding: 2px 8px; border: 0; border-radius: 6px; font: inherit; font-size: 0.78rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
#wlList .wl-sig--good { color: #15803d; background: #dcfce7; }
#wlList .wl-sig--avg { color: #b45309; background: #fef3c7; }
#wlList .wl-sig--weak { color: #b91c1c; background: #fee2e2; }
#wlList .wl-sig--buy { color: #047857; background: #d1fae5; }
#wlList .wl-sig--sell { color: #be123c; background: #ffe4e6; }
#wlSigDialog h2 { margin: 0 36px 10px 0; }
