/* 05-notifications.css — the /Notifications page, stats panel, signal badges.
   Part of the former single site.css. These files are ORDER-DEPENDENT: they are linked in
   numeric order in _Layout.cshtml and later rules still override earlier ones exactly as they
   did in the one big file. Do not reorder the <link> tags. */
/* Notifications */
.notifications-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Stats panel (sidebar) */
.my-sets-stats-panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.stats-panel__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.stats-panel__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.stats-panel__stat.summary-stat--positive {
  background: linear-gradient(180deg, var(--up-bg), var(--up-bg));
  border-color: color-mix(in srgb, var(--up) 35%, var(--surface-1));
}

.stats-panel__stat.summary-stat--negative {
  background: linear-gradient(180deg, var(--down-bg), var(--down-bg));
  border-color: color-mix(in srgb, var(--down) 35%, var(--surface-1));
}

.stats-panel__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-panel__value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.stats-panel__stat.summary-stat--positive .stats-panel__value { color: var(--up); }
.stats-panel__stat.summary-stat--negative .stats-panel__value { color: var(--down); }

.stats-panel__note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Per-set gain breakdown list */
.stats-panel__breakdown {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-panel__breakdown-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.stats-panel__breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.stats-panel__breakdown-name {
  color: var(--muted);
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-panel__breakdown-gain {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
}

/* summary-stat negative for Index page reuse */
.summary-stat--negative {
  border-color: color-mix(in srgb, var(--down) 35%, var(--surface-1));
  background: linear-gradient(180deg, var(--surface), var(--down-bg));
}

@media (max-width: 900px) {
  .my-sets-stats-panel {
    position: static;
  }
}

/* Task 139: the inbox's page — the head and the two columns from 901 px, the folders sticky on the left; below 901 px
   in a desktop browser the folders and kinds become a row above the feed. Every card, the folders' items and the bell
   are .ui-inbox* / .ui-bell* components (01-components.css). Then task 096's «Не цікаво» page and /Settings' «Сховане». */
.notifications-inbox__head h1 { margin: 0; }
.notifications-inbox__head .ui-hint { margin: var(--space-1) 0 0; }
.notifications-inbox__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: var(--space-6); }
.notifications-inbox__body > .ui-inbox-nav { position: sticky; top: calc(var(--app-header) + var(--space-4)); }
@media (max-width: 900px) {
  .notifications-inbox__body { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .notifications-inbox__body > .ui-inbox-nav { position: static; }
  .notifications-inbox__body .ui-inbox-nav__list { display: flex; flex-wrap: wrap; gap: var(--space-1); }
  .notifications-inbox__body .ui-inbox-nav__label { display: none; }
  .notifications-inbox__body .ui-inbox-nav__links { display: flex; gap: var(--space-4); margin-top: var(--space-1); padding-top: var(--space-2); }
}
.notifications-mute { max-width: 560px; }
.notifications-mute__body { display: grid; gap: var(--space-3); }
.notifications-mute__group { display: grid; gap: var(--space-2); }
.notifications-mute__foot { justify-content: flex-end; gap: var(--space-2); }
