/* Live Feed: Daily Target + Live P/L bars and the last-3-days cards (11.10.2026). Scoped with the tf- prefix. */
.tf-live {
  --tf-red: #ff5d73;
  --tf-purple: #c084fc;
  --tf-amber: #f0a64a;
  --tf-panel: rgba(255, 255, 255, 0.045);
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(8px, 2vw, 20px);
}
.tf-live .section-inner,
.tf-days .section-inner {
  display: grid;
  gap: 14px;
}
.tf-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 5px 14px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tf-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 212, 122, 0.6);
  animation: tf-pulse 2s infinite;
}
.tf-bar {
  border: 1px solid var(--night-line);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: var(--tf-panel);
  padding: 14px 18px 16px;
  color: var(--text-on-dark);
}
.tf-bar.is-stale { border-left-color: var(--tf-red); opacity: 0.85; }
.tf-bar.is-reached { border-left-color: var(--gold); }
.tf-bar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 10px;
}
.tf-bar-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  font-size: 1rem;
}
.tf-age {
  margin-left: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.tf-age::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}
.tf-bar.is-stale .tf-age::before { background: var(--tf-red); }
.tf-bar-main {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  unicode-bidi: plaintext;
}
.tf-bar-main.is-neg { color: var(--tf-red); }
.tf-bar-main.is-muted { color: var(--muted-on-dark); }
.tf-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}
.tf-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.6s ease;
}
.tf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-on-dark);
  font-size: 0.98rem;
  white-space: nowrap;
}
.tf-pill b { font-weight: 700; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; color: var(--text-on-dark); }
.tf-pill.c-eq { border-color: rgba(77, 144, 254, 0.55); } .tf-pill.c-eq b { color: var(--cyan); }
.tf-pill.c-tgt { border-color: rgba(240, 166, 74, 0.6); } .tf-pill.c-tgt b { color: var(--tf-amber); }
.tf-pill.c-goal { border-color: rgba(192, 132, 252, 0.55); } .tf-pill.c-goal b { color: var(--tf-purple); }
.tf-pill.c-pos { border-color: rgba(34, 212, 122, 0.55); } .tf-pill.c-pos b { color: var(--green); }
.tf-pill.c-neg { border-color: rgba(255, 93, 115, 0.6); } .tf-pill.c-neg b { color: var(--tf-red); }

/* last 3 days */
.tf-days { padding-top: clamp(8px, 2vw, 20px); }
.tf-days h2 { margin: 0 0 4px; }
.tf-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tf-day-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px 20px;
  border: 1px solid var(--night-line);
  border-top: 3px solid var(--green);
  border-radius: 10px;
  background: var(--tf-panel);
  color: var(--text-on-dark);
}
.tf-day-card.is-neg { border-top-color: var(--tf-red); }
.tf-day-date { color: var(--muted-on-dark); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tf-day-net { font-size: 1.9rem; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.tf-day-card.is-neg .tf-day-net { color: var(--tf-red); }
.tf-day-net small { font-size: 1rem; font-weight: 600; margin-left: 6px; }
.tf-day-stats { margin: 0; display: grid; gap: 6px; }
.tf-day-stats div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); padding-bottom: 5px; }
.tf-day-stats dt { color: var(--muted-on-dark); }
.tf-day-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; text-align: end; }
.tf-day-card .button { justify-self: start; margin-top: 4px; }
.tf-days-empty { color: var(--muted-on-dark); margin: 0; }

@keyframes tf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 212, 122, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 212, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 212, 122, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tf-note::before { animation: none; }
  .tf-progress > span { transition: none; }
}
@media (max-width: 640px) {
  .tf-bar { padding: 12px 14px 14px; }
  .tf-pill { font-size: 0.9rem; padding: 4px 10px; }
  .tf-bar-main { font-size: 1.3rem; }
}

/* tiles: one row, same numbers as the hub dashboard */
.tf-tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(124px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.tf-tile {
  min-width: 0;
  padding: 9px 10px 10px;
  border: 1px solid var(--night-line);
  border-radius: 8px;
  background: var(--tf-panel);
  color: var(--text-on-dark);
}
.tf-tile.is-accent { border-color: rgba(34, 212, 122, 0.45); background: rgba(34, 212, 122, 0.06); }
.tf-tile-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tf-tile-value {
  margin: 3px 0 2px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  unicode-bidi: plaintext;
}
.tf-tile.is-pos .tf-tile-value, .tf-tile.is-accent .tf-tile-value { color: var(--green); }
.tf-tile.is-neg .tf-tile-value { color: var(--tf-red); }
.tf-tile-meta {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted-on-dark);
  unicode-bidi: plaintext;
}

/* day cards are links to the 24h report post on Telegram */
a.tf-day-card { text-decoration: none; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
a.tf-day-card:hover, a.tf-day-card:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, 0.075); border-color: rgba(255, 255, 255, 0.28); outline: none; }
.tf-day-cta {
  justify-self: start;
  margin-top: 4px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
  color: var(--text-on-dark);
}
a.tf-day-card:hover .tf-day-cta { background: rgba(255, 255, 255, 0.14); }
@media (prefers-reduced-motion: reduce) { a.tf-day-card { transition: none; } a.tf-day-card:hover { transform: none; } }
