/*
 * partner-activity-2026-06-17.css
 * Activity log: stat strip, timeline toolbar, day separators, event rows.
 * Operations-level only - no funding/FEMA/BOL events per README.
 */

/* Page header reuse */
.appshell .pg-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.appshell .pg-header .pg-title { margin: 0 0 4px; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.appshell .pg-header .pg-sub { margin: 0; font-size: 13px; color: var(--muted); max-width: 64ch; }

/* Breadcrumb */
.appshell .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.appshell .breadcrumb a { color: var(--muted); text-decoration: none; }
.appshell .breadcrumb a:hover { color: var(--hra-purple); text-decoration: underline; }
.appshell .breadcrumb .sep { opacity: 0.4; }

/* Stat strip */
.appshell .stat-strip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .appshell .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.appshell .stat-cell { padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
.appshell .stat-cell .l { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.appshell .stat-cell .n { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.appshell .stat-cell .d { font-size: 11px; color: var(--muted); margin-top: 3px; }
.appshell .stat-cell .d b { color: var(--text); font-weight: 600; }

/* Activity grid */
.appshell .activity-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: flex-start; }
@media (max-width: 1100px) { .appshell .activity-grid { grid-template-columns: 1fr; } }

/* Timeline toolbar */
.appshell .tl-toolbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 1px solid var(--border-2); padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.appshell .tl-toolbar .scope { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.appshell .tl-toolbar .scope button { padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 500; color: var(--text); background: transparent; border: none; cursor: pointer; border-right: 1px solid var(--border); }
.appshell .tl-toolbar .scope button:last-child { border-right: none; }
.appshell .tl-toolbar .scope button.active { background: var(--hra-purple); color: #fff; }
.appshell .tl-toolbar .tl-search { position: relative; flex: 1; max-width: 320px; }
.appshell .tl-toolbar .tl-search input { width: 100%; height: 32px; padding: 0 10px 0 30px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); font: inherit; font-size: 12.5px; color: var(--text); }
.appshell .tl-toolbar .tl-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--muted); }
.appshell .tl-toolbar .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.appshell .tl-toolbar select { font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 5px 26px 5px 10px; cursor: pointer; height: 32px; }

/* Timeline wrap */
.appshell .timeline-wrap { background: var(--surface); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow-sm); }

/* Day separator */
.appshell .day-sep { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--border-2); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.appshell .day-sep .date { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.appshell .day-sep .rel { color: var(--muted); font-weight: 500; }
.appshell .day-sep .ct { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; }

/* Event row */
.appshell .ev-row { display: grid; grid-template-columns: 88px 32px 1fr; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border-2); position: relative; }
.appshell .ev-row:last-child { border-bottom: none; }
.appshell .ev-row:hover { background: var(--surface-2); }
.appshell .ev-time { font-size: 12px; color: var(--muted); text-align: right; padding-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.appshell .ev-time .ago { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }

.appshell .ev-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.appshell .ev-icon svg { width: 15px; height: 15px; }
.appshell .ev-icon.purple { background: var(--hra-lavender-bg); color: var(--hra-purple); }
.appshell .ev-icon.green { background: var(--success-bg); color: var(--success); }
.appshell .ev-icon.amber { background: var(--warning-bg); color: var(--warning); }
.appshell .ev-icon.blue { background: var(--info-bg); color: var(--info); }
.appshell .ev-icon.red { background: var(--critical-bg); color: var(--critical); }
.appshell .ev-icon.gray { background: var(--surface-2); color: var(--muted); }

.appshell .ev-body { min-width: 0; }
.appshell .ev-line1 { font-size: 13.5px; color: var(--text); line-height: 1.4; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.appshell .ev-line1 .actor { font-weight: 600; color: var(--ink); }
.appshell .ev-line1 .verb { color: var(--muted); font-weight: 400; }
.appshell .ev-line1 a.target { font-weight: 600; color: var(--hra-purple); text-decoration: none; background: var(--hra-lavender-bg); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--hra-lavender); font-size: 12.5px; }
.appshell .ev-line1 a.target:hover { background: var(--hra-purple); color: #fff; }

.appshell .ev-line1 .pri-ev { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.appshell .ev-line1 .pri-ev::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.appshell .ev-line1 .pri-ev.critical { background: var(--critical-bg); color: var(--critical); }
.appshell .ev-line1 .pri-ev.high { background: var(--warning-bg); color: var(--warning); }
.appshell .ev-line1 .pri-ev.medium { background: var(--hra-lavender-bg); color: var(--hra-purple); }

.appshell .ev-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.appshell .ev-meta b { color: var(--text); font-weight: 600; }

.appshell .ev-detail { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; color: var(--text); }
.appshell .ev-detail .kv { display: inline-flex; align-items: center; gap: 4px; }
.appshell .ev-detail .kv span { color: var(--muted); font-weight: 500; }
.appshell .ev-detail .kv b { color: var(--ink); font-weight: 600; }

.appshell .ev-note { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 12.5px; color: var(--text); max-width: 680px; border-left: 2px solid var(--hra-lavender); }
.appshell .ev-note .who { font-size: 11px; color: var(--muted); margin-bottom: 3px; }

/* Timeline footer */
.appshell .tl-foot { padding: 16px 22px; text-align: center; border-top: 1px solid var(--border-2); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 12.5px; color: var(--muted); }

/* Filter rail reuse from needs */
.appshell .activity-filter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 6px 4px 12px; box-shadow: var(--shadow-sm); position: sticky; top: 80px; }
.appshell .activity-filter .fr-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; }
.appshell .activity-filter .fr-head h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.appshell .activity-filter .fr-head h2 svg { width: 14px; height: 14px; color: var(--hra-purple); }
.appshell .activity-filter .fr-sec { border-top: 1px solid var(--border-2); padding: 12px 14px 8px; }
.appshell .activity-filter .fr-sec:first-of-type { border-top: none; }
.appshell .activity-filter .fr-sec h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.appshell .activity-filter .fr-check { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text); }
.appshell .activity-filter .fr-check:hover { background: var(--surface-2); }
.appshell .activity-filter .fr-check input { appearance: none; width: 14px; height: 14px; border: 1.5px solid var(--border); border-radius: 3px; background: var(--surface); position: relative; cursor: pointer; flex-shrink: 0; margin: 0; }
.appshell .activity-filter .fr-check input:checked { background: var(--hra-purple); border-color: var(--hra-purple); }
.appshell .activity-filter .fr-check input:checked::after { content: ""; position: absolute; left: 3px; top: 0; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.appshell .activity-filter .fr-check .ct { margin-left: auto; font-size: 11px; color: var(--muted-2); font-weight: 500; }
