/* The activity event log and the notifications list: day separators, one row per event. */

.daysep, .daylabel {
  padding: 12px 18px 7px; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tr-caps);
  text-transform: uppercase; color: var(--ink-4);
}
.daysep { background: var(--panel-2); border-bottom: 1px solid var(--line-soft); }

/* ---------- Event log ---------- */
.ev {
  display: grid; grid-template-columns: 90px 26px minmax(0, 1fr) auto; gap: 12px; align-items: flex-start;
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft); transition: background .12s ease;
}
.ev:last-child { border-bottom: 0; }
/* The outcome as a thin edge, so a day of syncs can be scanned from the left. */
.ev[data-tone] { box-shadow: inset 3px 0 0 var(--edge); }
.ev[data-tone="ok"] { --edge: var(--ok); }
.ev[data-tone="warn"] { --edge: var(--warn); }
.ev[data-tone="bad"] { --edge: var(--bad); }
.ev[data-tone="info"] { --edge: var(--brand-text); }
.ev:hover { background: var(--panel-2); }
.ev .ts { padding-top: 2px; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--ink-4); white-space: nowrap; }
.ev .ic {
  --tone: var(--ink-3);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-s);
  background: color-mix(in srgb, var(--tone) 12%, transparent); color: var(--tone);
}
.ev .ic svg { width: 13px; height: 13px; }
.ev .ic.ok { --tone: var(--ok); }
.ev .ic.warn { --tone: var(--warn); }
.ev .ic.bad { --tone: var(--bad); }
.ev .ic.info { --tone: var(--brand-text); }
.ev .ti2 { font-size: var(--fs-s); font-weight: 600; }
.ev .de { margin-top: 2px; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); }
.ev .de .mono { font-size: var(--fs-2xs); color: var(--ink-2); }
.ev .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.ev .side { display: flex; align-items: center; gap: 8px; }

.activityfilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.activityfilter .af-field {
  display: flex; flex-direction: column; gap: 5px;
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--ink-4);
}
.activityfilter .af-field .input { width: 170px; font-weight: 400; letter-spacing: normal; text-transform: none; }
.activityfilter .af-field select.input { width: 220px; }

/* ---------- Notifications list ---------- */
.nrow {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft); transition: background .12s ease;
}
.nrow:last-child { border-bottom: 0; }
.nrow:hover { background: var(--panel-2); }
.nrow.unread { background: var(--brand-soft); }
.nrow .nt { font-size: var(--fs-m); font-weight: 600; }
.nrow .nb { margin-top: 2px; font-size: var(--fs-s); line-height: 1.55; color: var(--ink-3); }
.nrow .nm { font-size: var(--fs-2xs); color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .ev { grid-template-columns: 26px minmax(0, 1fr); }
  .ev .ts, .ev .side { grid-column: 1 / -1; }
  .ev .side { flex-wrap: wrap; }
  .nrow { grid-template-columns: 30px minmax(0, 1fr); }
  .nrow .nm { grid-column: 2; margin-top: 2px; }
  .activityfilter .af-field, .activityfilter .af-field .input, .activityfilter .af-field select.input { width: 100%; }
}
