/* S1 Activity (s1-activity.js). Only .s1act-* rules; everything else is the shared kit (s1-kit.css).
 * Hue means status (Created / Archived pills), ink means action. */
.s1act-host { display: block; }
.s1act .k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s1act-panel .k-panel-body { padding: 0; }
.s1act-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--s1-line-soft); }
.s1act-views { flex: none; }
.s1act-field { display: block; min-width: 0; position: relative; }
.s1act-bar > .s1act-field:not(.s1act-search) { flex: 0 1 240px; }
.s1act-search { flex: 1 1 200px; }
.s1act-search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--s1-mute); pointer-events: none; }
.s1act-search .k-input { padding-left: 34px; }
.s1act-chips { padding: 10px 16px 0; }
.s1act-body { padding: 4px 0 8px; min-width: 0; }
.s1act-body > .k-callout, .s1act-body > .k-empty { margin: 12px 16px; }
.s1act-day { margin: 0; padding: 16px 16px 6px; font: 700 11px var(--k-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--s1-mute); position: sticky; top: 0; background: #fff; z-index: 1; }
.s1act-list { list-style: none; margin: 0; padding: 0; display: grid; }
.s1act-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 10px 16px; align-items: start; border-top: 1px solid var(--s1-line-soft); transition: background 120ms; }
.s1act-day + .s1act-list > .s1act-row:first-child { border-top: 0; }
.s1act-row:hover { background: var(--s1-column); }
.s1act-ico { background: var(--s1-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.s1act-main { min-width: 0; display: grid; gap: 4px; }
.s1act-title { font-weight: 650; color: var(--s1-ink); overflow-wrap: anywhere; text-decoration: none; }
a.s1act-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1act-desc { margin: 0; font-size: 13px; color: var(--s1-ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s1act-meta { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-width: 0; }
.s1act-actor { font-size: 12.5px; color: var(--s1-mute); }
.s1act-time { font-size: 12px; color: var(--s1-mute); white-space: nowrap; padding-top: 2px; font-variant-numeric: tabular-nums; }
.s1act-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px 6px; border-top: 1px solid var(--s1-line-soft); }
.s1act-end { margin: 0; padding: 14px 16px 6px; }
.s1act-skel b, .s1act-skel em { display: block; height: 12px; border-radius: 6px; background: var(--s1-column); }
.s1act-skel b { width: 55%; } .s1act-skel em { width: 35%; margin-top: 8px; height: 10px; }
.s1act-skel .k-av { background: var(--s1-column); }
@media (max-width: 640px) {
  .s1act-bar { padding: 12px; }
  .s1act-bar > .s1act-field:not(.s1act-search), .s1act-search { flex: 1 1 100%; }
  .s1act-views { flex: 1 1 100%; } .s1act-views .k-seg { display: flex; } .s1act-views .k-seg button { flex: 1; justify-content: center; }
  .s1act-chips { padding: 10px 12px 0; flex-wrap: nowrap; overflow-x: auto; }
  .s1act-chips .k-fchip { flex: none; }
  .s1act-row { grid-template-columns: 34px minmax(0, 1fr); padding: 10px 12px; }
  .s1act-time { grid-column: 2; padding-top: 0; order: 3; }
  .s1act-day, .s1act-foot, .s1act-end { padding-left: 12px; padding-right: 12px; }
}

/* Group activity view */
.s1act-date { display: flex; align-items: center; gap: 6px; flex: 0 1 170px !important; }
.s1act-datelab { font-size: 12px; color: var(--s1-mute); }
.s1act-date .k-input { min-width: 0; }
.s1act-live[aria-pressed="true"] svg { color: var(--s1-ok, currentColor); }
.s1act-newwrap { display: flex; justify-content: center; min-height: 0; }
.s1act-newwrap:not(:empty) { padding: 10px 16px 0; }
.s1act-newpill { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 14px; background: var(--s1-ink); color: #fff; font: 650 13px var(--k-font-ui); cursor: pointer; }
.s1act-newpill:hover { opacity: .9; }
.s1act-sentence { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.s1act-sentence .k-chip, .s1act-sentence .k-person { vertical-align: middle; }
.s1act-actor-name { font-weight: 650; }
.s1act-text { color: var(--s1-ink); }
.s1act-target { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.s1act-expand { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 4px; font: 600 12px var(--k-font-ui); color: var(--s1-mute); cursor: pointer; border-radius: 6px; }
.s1act-expand:hover { color: var(--s1-ink); background: var(--s1-column); }
.s1act-detail { margin-top: 2px; padding: 8px 12px; border-left: 2px solid var(--s1-line-soft); display: grid; gap: 6px; }
.s1act-desc--full { display: block; -webkit-line-clamp: unset; }
.s1act-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.s1act-changes li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; overflow-wrap: anywhere; }
.s1act-field-name { font-weight: 650; color: var(--s1-ink); }
.s1act-from { color: var(--s1-mute); text-decoration: line-through; text-decoration-color: var(--s1-line-soft); }
.s1act-to { color: var(--s1-ink); }
.s1act-arrow { color: var(--s1-mute); }
@media (max-width: 640px) { .s1act-date { flex: 1 1 calc(50% - 6px) !important; } }
