/* per-page polish: activity */

/* ── D5: the proto caps the activity feed at inline max-width:760px,
   so it reads "not full page" vs Skills (which fills the ~933px main
   content area). Remove the cap so the content fills the SAME area as
   library/system-instructions for every left-nav selection. The .main
   element itself is already a constant 1021px across all pages. ── */
.shell .main .rise.r3[style*="max-width"] {
  max-width: none !important;
}

/* -- Page heading: CANON sec 10  -  h1 = 28 / 660 / -.025em. Override proto's
   31px inline `.head .h1 { font-size:31px }`. ── */
.shell .main .head .h1 {
  font-size: 28px !important;
  font-weight: 660 !important;
  letter-spacing: -.025em !important;
  line-height: 1.12 !important;
}
.shell .main .head p {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* -- Filter chips: CANON sec 2 pill (30h / r-pill / 12px / 550). -- */
.shell .main .filters .fc {
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 550;
}
.shell .main .filters .fc.on {
  background: var(--solid) !important;
  color: var(--solid-fg) !important;
  border-color: var(--solid) !important;
}

/* ── Date section labels: monospaced uppercase, spaced ── */
.shell .main .rise.r3 > div[style*="font-family:var(--font-mono)"] {
  font-size: 9.5px !important;
  letter-spacing: .09em !important;
  color: var(--ink-mute) !important;
  text-transform: uppercase;
  margin: 0 0 7px !important;
  padding-left: 2px;
}

/* ── Activity card sections: add glass treatment ── */
.shell .main .rise.r3 .card.card-sm {
  padding: 2px 14px !important;
  margin-bottom: 22px;
}

/* ── Event row structure ── */
.shell .main .rise.r3 .card.card-sm > div[style*="display:flex"] {
  padding: 12px 2px !important;
  gap: 12px !important;
  align-items: center !important;
}

/* ── Event type pill: monospace tag, steel tinted ── */
.shell .main .rise.r3 .card.card-sm span[style*="color:var(--accent)"] {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  font-size: 10.5px !important;
  font-family: var(--font-mono);
  color: var(--accent) !important;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: .01em;
  min-width: 0 !important;
  max-width: 100%;
}

/* ── Event action text: cleaner size ── */
.shell .main .rise.r3 .card.card-sm span[style*="font-size:13.5px"] {
  font-size: 13px !important;
  color: var(--ink) !important;
}
.shell .main .rise.r3 .card.card-sm span[style*="font-size:13.5px"] span {
  color: var(--ink-mute) !important;
  font-size: 13px !important;
}

/* ── Actor label ── */
.shell .main .rise.r3 .card.card-sm span[style*="font-size:12px;color:var(--ink-soft)"] {
  font-size: 11.5px !important;
  color: var(--ink-mute) !important;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ── Timestamp: compact, right-aligned ── */
.shell .main .rise.r3 .card.card-sm span[style*="font-size:11px;color:var(--ink-mute)"] {
  font-size: 10.5px !important;
  color: var(--ink-faint) !important;
  text-align: right;
  flex-shrink: 0;
  min-width: 60px !important;
}

/* ── Row separator: hairline, not full bleed ── */
.shell .main .rise.r3 .card.card-sm > div[style*="border-bottom"] {
  border-bottom: 1px solid var(--line-soft) !important;
}

/* Sidebar active item: canonical treatment lives in space-ds.css
   (D4 ,  one consistent restrained active state across all pages).
   The old per-page accent left-border was the inconsistency. */

/* ── Mobile ── */
@media (max-width: 900px) {
  .shell .main {
    padding: 20px 14px 60px;
  }
  /* 2G: cleanly STACK each event row on narrow viewports instead of
     a cramped single-line wrap. Line 1 = event-type badge; line 2 =
     the action text (full width); line 3 = actor + timestamp, left
     aligned. The proto rows are inline-styled (no classes) so each
     part is targeted by its inline-style signature. */
  .shell .main .rise.r3 .card.card-sm > div[style*="display:flex"] {
    flex-wrap: wrap;
    gap: 5px 10px !important;
    padding: 11px 2px !important;
    align-items: flex-start !important;
  }
  .shell .main .rise.r3 .card.card-sm span[style*="color:var(--accent)"] {
    min-width: auto !important;
    order: 1;
  }
  .shell .main .rise.r3 .card.card-sm span[style*="font-size:13.5px"] {
    order: 2;
    flex: 1 1 100% !important;
    min-width: 0;
  }
  .shell .main .rise.r3 .card.card-sm span[style*="font-size:12px;color:var(--ink-soft)"] {
    order: 3;
  }
  .shell .main .rise.r3 .card.card-sm span[style*="font-size:11px;color:var(--ink-mute)"] {
    order: 4;
    text-align: left !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
  .shell .main .rise.r3 {
    max-width: 100% !important;
  }
}
