/* Deal analyzer additions on top of the shared theme */
.toplinks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toplinks a { color: var(--blue-dark); background: #fff; border: 1px solid #000; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.toplinks a:hover { background: var(--blue-tint); }
.assumptions { border: 2px solid var(--blue); }
.agrid, .fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 16px; align-items: end; }
.agrid label, .fgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.agrid label .unit, .fgrid label .unit { font-weight: 400; color: var(--text-3); }
.agrid input, .fgrid input, .fgrid select { width: 100%; }
.agrid label.check, .fgrid label.check { flex-direction: row; align-items: center; gap: 8px; min-height: 36px; }
.agrid label.check input, .fgrid label.check input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; }
.chart.tall { height: 420px; }
.legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #000; margin-right: 6px; vertical-align: -1px; }
.r-strong { background: #159c6c; } .r-good { background: #2a78d6; } .r-fair { background: #eda100; } .r-weak { background: #c9d4e5; }
.pill.r-strong { background: #e5f6ee; } .pill.r-good { background: var(--blue-tint); } .pill.r-fair { background: #fff4dc; } .pill.r-weak { background: #f1f3f6; }
.pill.pos { background: #e5f6ee; } .pill.neg { background: #fde8e4; }
.gbar { align-items: center; justify-content: space-between; }
.pager { display: flex; gap: 8px; align-items: center; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gtile { border: 1px solid #000; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.gtile .media { position: relative; aspect-ratio: 4 / 3; background: #eef1f5; }
.gtile img, .gtile iframe { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.gtile .na { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-3); font-size: 13px; }
.gtile .badge { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.92); border: 1px solid #000; border-radius: 99px; font-size: 11px; font-weight: 600; padding: 1px 8px; }
.gtile .cap { padding: 8px 10px; font-size: 12.5px; line-height: 1.4; }
.gtile .cap b { display: block; font-size: 13px; }
.lbmedia img, .lbmedia iframe { width: 100%; max-height: 60vh; border: 0; border-radius: 8px; object-fit: contain; background: #eef1f5; }
.lbmedia iframe { height: 420px; }
@media (max-width: 560px) { .chart.tall { height: 320px; } .ggrid { grid-template-columns: 1fr 1fr; } }
