/* What analysts say about what you hold (src/dashboard/analyst.js). Colours come from app.css's variables, so dark mode follows. Nothing here is coloured good or bad:
   a change in a count is a number with a sign, not a verdict. */
.an-card .an-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.an-summary { margin: 0; font-weight: 600; flex: 1 1 260px; min-width: 0; }
.an-toggle { display: inline-flex; align-items: center; gap: 8px; }
.an-list, .an-wrap { min-width: 0; }
.an-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-table th { text-align: start; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.an-table th.num, .an-table td.num { text-align: end; }
.an-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: normal; }
.an-row { cursor: pointer; }
.an-row:hover { background: var(--panel-2); }
.an-link { color: var(--text); font-size: 15px; }
.an-link:hover { text-decoration: none; }
.an-n { font-variant-numeric: tabular-nums; }
.an-d { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.an-sub, .an-since { margin-top: 2px; }
.an-since { font-size: 11px; }
.an-action { max-width: 280px; overflow-wrap: anywhere; }
.an-alerts { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.an-chart .chart { margin-top: 4px; }
.an-block > *, .an-deltas > * { min-width: 0; }
/* A phone: each stock is a small block, the three counts side by side under its symbol; the head of the table is kept for a screen reader. */
@media (max-width: 719px) {
  .an-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .an-table, .an-table tbody { display: block; }
  .an-table tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .an-table td { display: block; border: 0; padding: 0; min-width: 0; }
  .an-table td.num { text-align: start; }
  .an-table td.an-cell::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); }
  .an-table td.an-sym, .an-table td.an-targetcell, .an-table td.an-action { grid-column: 1 / -1; }
  .an-table td.an-targetcell::before, .an-table td.an-action::before { content: attr(data-label) ": "; font-size: 12px; color: var(--muted); }
  .an-row:hover { background: transparent; }
  .an-action { max-width: none; }
}
/* The change over three looks back on a stock's page: a line each, wrapping on a phone. */
.an-looks { display: flex; flex-direction: column; gap: 6px; }
.an-look { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.an-look b { min-width: 11em; font-size: 14px; }
.an-look .an-counts { font-size: 14px; }
.an-looked { margin-top: 2px; }
