/* The Information tab's live view: your holdings, one stock at a time.
   Tokens only — no one-off values.

   This file covers exactly what live.js renders and nothing else. It used to
   carry a lead story, an also-today list, a see-all table, a catch-me-up modal
   and a floating "new items" pill; those views are gone and so are their rules. */

/* ---------- Live / All sources ---------- */

.live-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: var(--s3);
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill, 999px);
  background: var(--card);
}

.live-switch-btn {
  padding: 6px 15px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--slate);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.live-switch-btn:hover { color: var(--ink); }
.live-switch-btn.active { background: var(--gold-soft); color: var(--gold-deep); }

/* ---------- the column ---------- */

.live {
  width: 100%;
  max-width: 720px;
  margin: var(--s5) auto 0;
}

.lv-pad { padding: var(--s5) 0; }
.lv-quiet { color: var(--slate); }

.lv-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.lv-see { color: var(--navy); font-weight: 600; font-size: 12.5px; white-space: nowrap; }

/* ---------- yours vs watching ----------
   Two scopes, deliberately separate: what your money is in, and what you are
   sizing up. The same queue, a different question. */

.lv-scoperow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.lv-scope {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
}

.lv-scope-b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--slate);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lv-scope-b:hover { color: var(--ink); }
.lv-scope-b.on { background: var(--gold-soft); color: var(--gold-deep); }

.lv-scope-b u {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

/* ---------- the watch bar ----------
   Only under Watching, where the reader builds the list themselves. */

.lv-watchbar { margin-top: var(--s4); }

.lv-watch-add {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.lv-watch-in {
  flex: 1;
  min-width: 0;
  max-width: 280px;
  padding: 7px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lv-watch-in::placeholder { color: var(--slate); letter-spacing: 0; text-transform: none; }
.lv-watch-in:focus { outline: none; border-color: var(--navy); }
.lv-watch-add .lv-chip[disabled] { opacity: 0.55; cursor: default; }

.lv-watch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lv-watch-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px 4px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.lv-watch-tag .lv-x { padding: 0 4px 0 7px; font-size: 11px; line-height: 1; }

.lv-watch-hint,
.lv-watch-err {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.lv-watch-hint { color: var(--slate); }
.lv-watch-err { color: var(--loss); }
.lv-watch-err[hidden] { display: none; }

/* ---------- the queue ----------
   One stock per screen, Next until it runs out. */

.lv-rev {
  margin-top: var(--s4);
  padding: var(--s5) 28px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.lv-rev-top {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.lv-rev-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}

/* On a searched ticker there is no counter, so the watch toggle takes the slack. */
.lv-rev-top .lv-chip { margin-left: auto; }

.lv-rev-dots {
  display: flex;
  gap: 4px;
  margin-top: var(--s3);
}

.lv-rev-dots i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
  transition: background 0.3s ease;
}

.lv-rev-dots i.done { background: var(--gold-soft); }
.lv-rev-dots i.on { background: var(--gold); }

.lv-rev-head {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  margin-top: var(--s4);
}

.lv-rev-digest {
  margin: var(--s4) 0 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* Every story on this stock, without leaving the queue. */
.lv-rev-all {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: var(--s4);
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.lv-rev-all:hover { border-color: var(--navy); }
.lv-rev-all .lv-see { margin-left: auto; }

.lv-rev-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}

/* ---------- the stock's identity ---------- */

.lv-sym-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.lv-sym-sub {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.lv-sym-tk {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.lv-sym-d {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lv-sym-d.up { color: var(--gain); }
.lv-sym-d.dn { color: var(--loss); }
.lv-sym-held { font-size: 12.5px; color: var(--slate); }

/* ---------- reporting date ---------- */

.lv-earn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: var(--s4) 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.lv-earn i { font-style: normal; }
.lv-earn.soon { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }

/* ---------- the answer nobody else gives you ---------- */

.lv-means {
  margin-top: var(--s4);
  padding: 13px 16px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--card-2);
}

.lv-means-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.lv-means-v {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.lv-means-v i {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
}

.lv-means-b {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- the story list ---------- */

.lv-also { margin-top: var(--s3); }

.lv-also-r {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}

.lv-also-r:last-child { border-bottom: none; }
a.lv-also-r:hover .lv-also-tx { color: var(--navy); }

.lv-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.lv-also-tx { flex: 1; font-size: 14px; line-height: 1.45; transition: color 0.15s ease; }

.lv-also-sym {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-transform: uppercase;
}

.lv-also-age {
  flex: none;
  width: 26px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--slate);
}

/* ---------- the end of the queue ---------- */

.lv-caught-card {
  padding: var(--s5) 0 var(--s4);
  text-align: center;
}

.lv-caught-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.lv-caught-card h3 {
  margin: var(--s4) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.lv-caught-card p {
  max-width: 420px;
  margin: 10px auto 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---------- controls ---------- */

.lv-chip {
  padding: 5px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--navy);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lv-chip:hover { border-color: var(--navy); background: rgba(37, 77, 121, 0.06); }
.lv-chip.on { border-color: transparent; background: var(--gold-soft); color: var(--gold-deep); }

.lv-btn {
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lv-btn:hover { background: var(--navy-deep); }

.lv-x {
  border: none;
  background: none;
  padding: 0 0 0 10px;
  color: var(--slate);
  font-size: 13px;
  cursor: pointer;
}

.lv-x:hover { color: var(--ink); }

/* ---------- narrow ---------- */

@media (max-width: 760px) {
  .live { margin-top: var(--s4); }
  .lv-rev { padding: var(--s4) var(--s4); }
  .lv-sym-name { font-size: 23px; }
  .lv-rev-head { flex-wrap: wrap; }
  .lv-also-sym { display: none; }
  .lv-watch-in { max-width: none; }
}
