#activity-view { padding-block:30px 50px; }
.activity-heading { margin-bottom:24px; }
.activity-heading h1 { font-size:clamp(38px,4vw,60px); line-height:1.05; font-weight:800; letter-spacing:-.055em; }
.activity-heading p { color:var(--muted); font-size:17px; margin-top:9px; }
.activity-notice { margin-bottom:13px; color:var(--muted); font-size:13px; }
.activity-layout:not([hidden]) { display:grid; grid-template-columns:minmax(0,2.45fr) minmax(235px,1fr); gap:20px; align-items:start; }
.activity-layout:has(.activity-side[hidden]) { grid-template-columns:1fr; }
.activity-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.activity-search { position:relative; flex:1 1 200px; }
.activity-search .icon { position:absolute; left:12px; top:12px; color:var(--muted); width:17px; height:17px; }
#activity-view :is(input,select) { min-height:42px; border:1px solid var(--line-strong); background:var(--surface); border-radius:10px; color:var(--ink); padding:8px 9px; font-size:13px; }
#activity-view .activity-search input { width:100%; padding-left:37px; }
#activity-view :is(.primary-button,.secondary-button) { padding:8px 13px; }
#activity-view .secondary-button { border:1px solid var(--line); }
#activity-view .secondary-button:hover { background:var(--surface-hover); }
.activity-surface { background:var(--surface); border:1px solid var(--line); border-radius:15px; }
.activity-day { margin-bottom:19px; }
.activity-day h2 { margin:0 0 7px; font-size:16px; font-weight:800; }
.activity-row { display:grid; grid-template-columns:38px minmax(0,1fr) auto auto 15px; align-items:center; gap:11px; width:100%; min-height:65px; padding:10px 13px; text-align:left; }
.activity-row + .activity-row { border-top:1px solid var(--line); }
.activity-row:first-child { border-radius:14px 14px 0 0; }
.activity-row:last-child { border-radius:0 0 14px 14px; }
.activity-row:only-child { border-radius:14px; }
.activity-row:hover,.activity-run:hover { background:var(--surface-hover); }
.activity-row:focus-visible,.activity-run:focus-visible { outline-offset:-3px!important; }
.activity-glyph { width:37px; height:37px; display:inline-grid; place-items:center; border-radius:10px; background:var(--blue-soft); color:var(--blue-text); flex:none; }
.activity-glyph .icon { width:20px; height:20px; }
.activity-glyph[data-kind="offers"],.activity-glyph[data-kind="followups"] { color:var(--ink); background:var(--surface-hover); }
.activity-row-copy { min-width:0; }
.activity-row-copy strong,.activity-row-copy > span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.activity-row-copy strong { font-size:14px; font-weight:800; }
.activity-row-copy > span,.activity-row time { color:var(--muted); font-size:12px; }
.activity-row time,.activity-badge { white-space:nowrap; }
.activity-chevron { color:var(--muted); }
.activity-chevron .icon { width:15px; height:15px; }
.activity-badge { display:inline-block; width:fit-content; font-size:11px; font-weight:800; border-radius:99px; padding:3px 8px; background:var(--surface-hover); color:var(--muted); }
.activity-badge[data-outcome="Completed"],.activity-badge[data-outcome="Saved"] { color:#17623b; background:#dff4e8; }
.activity-badge[data-outcome="Failed"],.activity-badge[data-outcome="Partial"] { color:#854414; background:#ffead4; }
[data-theme="dark"] .activity-badge[data-outcome="Completed"],[data-theme="dark"] .activity-badge[data-outcome="Saved"] { color:#acf0c6; background:#213d30; }
[data-theme="dark"] .activity-badge[data-outcome="Failed"],[data-theme="dark"] .activity-badge[data-outcome="Partial"] { color:#ffca94; background:#4c331f; }
.activity-card { padding:16px; margin-bottom:14px; }
.activity-card h2 { font-size:18px; margin-bottom:10px; letter-spacing:-.03em; }
.activity-card dl { margin:0; }
.activity-card dl > div { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; }
.activity-card dl > div + div,.activity-run + .activity-run { border-top:1px solid var(--line); }
.activity-card dt { display:flex; align-items:center; gap:9px; font-size:13px; }
.activity-card dd { font-weight:800; }
.activity-card .activity-glyph { width:29px; height:29px; border-radius:8px; }
.activity-card .activity-glyph .icon { width:16px; height:16px; }
.activity-run { display:grid; grid-template-columns:1fr auto; gap:3px 5px; width:100%; padding:9px 0; text-align:left; font-size:13px; }
.activity-run > :is(span:not(.activity-badge),small) { grid-column:1/-1; color:var(--muted); overflow-wrap:anywhere; font-size:12px; }
.activity-empty { text-align:center; padding:55px 18px; }
.activity-empty h2 { font-size:24px; margin-top:9px; letter-spacing:-.03em; }
.activity-empty p { color:var(--muted); margin:7px 0 15px; }
.activity-dialog { position:fixed; inset:0; margin:auto; width:min(590px,calc(100% - 24px)); max-height:85dvh; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); }
.activity-dialog h2 { padding-right:30px; }
.activity-detail p { overflow-wrap:anywhere; margin:12px 0; }
.activity-detail-time { color:var(--muted); font-size:13px; }
@media(max-width:1030px){ .activity-layout:not([hidden]) { grid-template-columns:1fr; } .activity-side:not([hidden]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }
@media(max-width:580px){
  .activity-side:not([hidden]) { grid-template-columns:1fr; }
  .activity-row { grid-template-columns:33px minmax(0,1fr) auto; gap:5px 9px; }
  .activity-row .activity-glyph { grid-row:span 2; width:33px; height:33px; }
  .activity-row .activity-badge { grid-column:2; }
  .activity-row time { font-size:11px; }
  .activity-chevron { display:none; }
}
