/* Экраны «Новости» и «Статистика» */
.has-own-demo .app > .demo { display: none; }

.page-head { display: flex; align-items: flex-start; gap: 12px; }
.page-head__text { flex: 1; min-width: 0; }
.page-head__sub { margin-top: 2px; color: var(--text-2); font-size: 13px; }
.page-head .demo { flex: none; margin-top: 3px; }
.page-text { margin-top: 16px; color: var(--text-2); font-size: 13px; }
.fine { margin-top: 20px; color: var(--text-3); font-size: 11px; line-height: 1.45; }
.plain-list { margin: 0; padding: 0; list-style: none; }

/* Карточка с бордовым свечением в углу */
.glow {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--gold-border-faint);
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 100% 0, var(--market-glow), transparent 55%) var(--card-2);
}
.glow__label { margin: 0; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.glow__text { margin-top: 10px; }

/* Переключатель «Новости | Календарь» */
.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
  padding: 4px;
  border-radius: 16px;
  background: var(--card);
}
.segment__button {
  height: var(--tap);
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
}
.segment__button[aria-pressed="true"] { background: var(--segment-on); color: var(--text); }

/* Карточка новости */
.news__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.news__source { color: var(--text-3); font-size: 11px; font-weight: 700; }
.effect { padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.effect--flat { background: var(--wait-soft); color: var(--gold); }
.effect--down { background: var(--short-soft); color: var(--stop); }
.effect--up { background: var(--long-soft); color: var(--target); }
.news__title { margin: 10px 0 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.news__meaning { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-note); }
.news__meaning p { margin-top: 4px; color: var(--text-2); font-size: 14px; }

/* Календарь */
.cal {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.cal:first-child { padding-top: 0; border-top: 0; }
.cal:last-child { padding-bottom: 0; }
.cal__when { align-self: start; white-space: nowrap; }
.cal__note { margin-top: 2px; color: var(--text-3); font-size: 12px; line-height: 1.35; }
.cal__mark { margin: 0; white-space: nowrap; }

/* Статистика */
.free {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--long-soft);
  color: var(--target);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.filter {
  height: var(--tap);
  border: 1px solid var(--back-border);
  border-radius: 14px;
  background: var(--card);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}
.filter[aria-pressed="true"] { border-color: var(--gold-selected-border); background: var(--gold-selected); color: var(--gold); }

.total { border-radius: var(--radius-card-lg); }
.total--plus { --result: var(--long); }
.total--minus { --result: var(--short); }
.total__value { margin-top: 8px; color: var(--result); font: 600 36px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.total__money { margin-top: 4px; color: var(--text-2); font-size: 13px; }

.curve { margin: 16px 0; }
.curve svg { width: 100%; height: auto; }
.curve path { fill: none; }
.curve .curve__area { fill: var(--result); opacity: .12; animation: curve-fade 1.3s ease-out backwards; }
.curve__zero { stroke: var(--text-3); stroke-dasharray: 4 5; opacity: .6; }
.curve__line {
  stroke: var(--result);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  animation: curve-draw 1.3s var(--ease-screen) backwards;
}
.curve__dates { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-3); font-size: 11px; }

.deals { display: grid; gap: 8px; margin-top: 12px; }
.deal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}
.ticker--square { border-radius: 14px; }
.deal__text { flex: 1; min-width: 0; }
.deal__name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.deal__note { margin-top: 2px; color: var(--text-3); font-size: 12px; line-height: 1.35; }
.deal__result { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.deal__result--plus { color: var(--long); }
.deal__result--minus { color: var(--short); }
.deal__result--none { color: var(--text-3); }

@keyframes curve-draw { from { stroke-dashoffset: 100; } }
@keyframes curve-fade { from { opacity: 0; } }

@media (max-width: 359px) {
  .cal__mark { grid-column: 2; justify-self: start; }
  .total { padding: 16px; }
  .total__value { font-size: 30px; }
  .deal { gap: 10px; }
}
