.app .greeting { white-space: nowrap; text-overflow: ellipsis; }
/* В чате заголовок — это фраза, а не одно слово: обрезка «Чат пока не под…» недопустима. */
#chat .greeting { white-space: normal; overflow-wrap: break-word; }
#chat .hello-card { min-height: 96px; }
.meta-value { white-space: normal; }
.meta-chip { max-width: 100%; }
#day-revenue, .mini-value { overflow-wrap: anywhere; white-space: normal; }
#overview .mini-grid { grid-template-columns: repeat(3, minmax(0, auto)); }
.mini-label { letter-spacing: .02em; }
.delta:not(.delta-up) { color: var(--fg); }
.category-basis { margin-bottom: 12px; }
.cat-val { text-align: end; white-space: normal; }
.cat-sum { display: block; font-weight: 500; }
.retry {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  cursor: pointer;
}
.retry:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chart-hits, .chart-labels { display: grid; grid-template-columns: repeat(var(--points), minmax(0, 1fr)); }
.chart-hits { position: absolute; inset: 0; }
.chart-hits .chart-hit { position: static; display: block; border: 0; background: none; padding: 0; cursor: pointer; }
.chart-hit:focus-visible { outline: 1px dashed currentColor; outline-offset: -1px; }
.chart-dot-incomplete { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; }
.chart-ring.no-point { display: none; }
.chart-foot #chart-value { margin-inline-start: auto; }
#overview .hello-card:has(#day-content[hidden]) { margin-bottom: 12px; }
@supports (clip-path: shape(from 0 0, line to 100% 0, close)) {
  #overview .hello-card:has(#day-content[hidden])::before {
    clip-path: shape(from 0 0, hline to calc(100% - 61px), vline to 36px,
      arc to calc(100% - 45px) 52px of 16px ccw, hline to 100%, vline to 100%, hline to 0, close);
  }
  /* Keep every KPI clear of the concave notch, including wrapped values. */
  #overview .mini-grid { max-width: calc(100% + 6px - var(--step-edge)); }
}
@media (max-width: 344px) {
  .chart-labels:not(.dense-labels) span { visibility: visible; }
  .chart-labels span { font-size: 9px; }
  .mini-label { font-size: 9px; }
}
