/* Stock page: the Signal section (Buy / Hold / Don't chase / No signal) above the target tiles */
.sg { --sg-buy: #0f8a4f; --sg-sell: #d93025; --sg-amber: #b86e0e; --sg-blue: #1b47b8; --sg-grey: #6b7280;
  --sg-line: var(--border, rgba(15,23,40,.1)); --sg-mute: var(--text-3, #8a94a6); --sg-ink: var(--text, #0f1728); --sg-soft: var(--surface-2, #f3f5fb);
  margin: 14px 0; }
.sg-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--sg-line); background: var(--surface, #fff); }
.sg-badge { font: 700 16px "Hanken Grotesk", sans-serif; letter-spacing: .02em; padding: 8px 16px; border-radius: 999px; color: #fff; white-space: nowrap; }
.sg-badge.buy { background: var(--sg-buy); } .sg-badge.hold { background: var(--sg-blue); } .sg-badge.wait { background: var(--sg-amber); } .sg-badge.watch { background: var(--sg-grey); }
.sg-say { flex: 1; min-width: 220px; font-size: 15px; color: var(--sg-ink); line-height: 1.45; }
.sg-say small { display: block; color: var(--sg-mute); font-size: 13.5px; margin-top: 3px; }
.sg-score { display: flex; gap: 8px; } .sg-score span { font: 600 13.5px "JetBrains Mono", monospace; padding: 5px 10px; border-radius: 8px; background: var(--sg-soft); color: var(--sg-ink); white-space: nowrap; }
.sg-score span.ok { color: var(--sg-buy); } .sg-score span.no { color: var(--sg-mute); }
.sg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.sg-card { border: 1px solid var(--sg-line); border-radius: 14px; padding: 16px 18px; background: var(--surface, #fff); min-width: 0; }
.sg-card h3 { font: 500 18px "Newsreader", Georgia, serif; margin: 0 0 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sg-card h3 span { font: 600 13.5px "JetBrains Mono", monospace; } .sg-card h3 span.ok { color: var(--sg-buy); } .sg-card h3 span.no { color: var(--sg-sell); }
.sg-cap { font-size: 13.5px; color: var(--sg-mute); margin: 12px 0 4px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sg-cap i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; } .sg-cap i b { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.sg svg { width: 100%; display: block; overflow: visible; }
.sg svg text { font: 500 11.5px "JetBrains Mono", monospace; fill: var(--sg-mute); }
.sg-chk { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--sg-line); font-size: 14.5px; display: flex; flex-direction: column; gap: 6px; }
.sg-chk li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; } .sg-chk .i { font-weight: 700; width: 14px; flex-shrink: 0; }
.sg-chk .ok .i { color: var(--sg-buy); } .sg-chk .no .i { color: var(--sg-sell); } .sg-chk .no { color: var(--sg-mute); }
.sg-note { font-size: 13px; color: var(--sg-mute); margin-top: 10px; line-height: 1.5; }
@media (max-width: 860px) { .sg-grid { grid-template-columns: minmax(0, 1fr); } }

/* Trade / Watchlist next to the stock name; signal chips in the list */
.sg-acts { display: inline-flex; gap: 6px; margin-left: 14px; vertical-align: middle; position: relative; top: -3px; flex-wrap: nowrap; }
.sg-btn { font: 600 14px "Hanken Grotesk", sans-serif; padding: 5px 12px; border-radius: 8px; text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.sg-btn.t { background: #2b4eff; color: #fff !important; } .sg-btn.t:hover { background: #1b47b8; text-decoration: none; }
.sg-btn.w { background: var(--surface, #fff); color: var(--text, #0f1728); border-color: var(--border, rgba(15,23,40,.16)); }
.sg-btn.w.on { background: #fff4dc; border-color: #c77f1a; color: #7a4d0b; }
.sg-chip { font: 700 11px "Hanken Grotesk", sans-serif; letter-spacing: .02em; padding: 1px 6px; border-radius: 5px; vertical-align: 1px; margin-left: 4px; white-space: nowrap; }
.sg-chip.buy { background: #e5f4ec; color: #0f8a4f; } .sg-chip.hold { background: #e8f1ff; color: #1b47b8; } .sg-chip.wait { background: #fff4dc; color: #7a4d0b; } .sg-chip.watch { display: none; }
