/* Sales > Activity Feed (QA #344): from the design's assets/css/sales-workspace.css
 * (design-assets-13-nov-2026), lines 2-23, 255-257, 765-770 and 1044-1720: the page shell and the
 * feed. sales-workspace.css itself is not copied whole: its global .sw-search would restyle
 * Settings > Sales Workspace. Every selector is scoped to the page root (.sw-activity-feed). */

/* Page shell */
.sw-page:where(.sw-activity-feed) {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0px;
  color: var(--text);
  min-width: 0;
  position: relative;
}
:where(.sw-activity-feed) .sw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
:where(.sw-activity-feed) .sw-header h1 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  margin: 0;
}

/* Schedule body (the feed column) */
:where(.sw-activity-feed) .sw-schedule-body {
  padding: 14px 14px 18px;
}

/* Hidden feed rows */
:where(.sw-activity-feed) [data-feed-item][hidden],
:where(.sw-activity-feed) [data-feed-group][hidden] {
  display: none !important;
}

/* Feed: search, filters, cards, actions, menus and toasts */
:where(.sw-activity-feed) .sw-feed-panel {
  max-height: 600px;
  overflow: auto;
}
:where(.sw-activity-feed) .sw-feed-panel[hidden] {
  display: none !important;
}
:where(.sw-activity-feed) .ep-pane-feed {
  color: var(--text);
  position: relative;
}
:where(.sw-activity-feed) .ep-pane-feed .ep-pane-feed-button {
  position: sticky;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  bottom: 0;
  height: 50px;
  left: 0;
  right: 0;
  margin-top: 12px;
  padding: 12px 20px;
  color: var(--brand-ink);
  font-weight: 600;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
:where(.sw-activity-feed) .ep-search {
  position: relative;
  margin-bottom: 10px;
}
:where(.sw-activity-feed) .ep-search__input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
:where(.sw-activity-feed) .ep-search__input::placeholder {
  color: var(--text-subtle);
}
:where(.sw-activity-feed) .ep-search__input:focus {
  border-color: var(--brand);
  outline: 0;
}
:where(.sw-activity-feed) .ep-search > .icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.sw-activity-feed .sw-feed-toolbar {
  display: grid;
  justify-items: start;
  gap: 2px;
}
.sw-activity-feed .ep-search {
  width: min(50%, 100%);
  margin-bottom: 4px;
}
.sw-activity-feed .sw-feed-filter-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 12px;
}
.sw-activity-feed .sw-feed-filter-field {
  flex-wrap: wrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--text);
}
.sw-activity-feed .sw-feed-filter-field > span {
  white-space: nowrap;
}
:where(.sw-activity-feed) .sw-feed-dd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
:where(.sw-activity-feed) .sw-feed-dd:hover {
  color: var(--brand);
}
:where(.sw-activity-feed) .sw-feed-dd:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(36, 86, 230, 0.25));
  border-radius: 6px;
}
:where(.sw-activity-feed) .sw-feed-caret {
  width: 16px;
  height: 16px;
  flex: none;
}
:where(.sw-activity-feed) .sw-feed-menu {
  position: absolute;
  z-index: 10090;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: calc(100vw - 16px);
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.18);
}
:where(.sw-activity-feed) .sw-feed-menu__it {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
:where(.sw-activity-feed) .sw-feed-menu__it:hover,
:where(.sw-activity-feed) .sw-feed-menu__it:focus-visible,
:where(.sw-activity-feed) .sw-feed-menu__it.is-on {
  background: var(--surface-hover);
  outline: 0;
}
:where(.sw-activity-feed) .sw-feed-filter-wrap {
  position: relative;
  margin-bottom: 8px;
}
:where(.sw-activity-feed) .ep-filter {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
:where(.sw-activity-feed) .ep-filter:hover,
:where(.sw-activity-feed) .ep-filter[aria-expanded="true"] {
  background: var(--surface-hover);
}
:where(.sw-activity-feed) .ep-filter:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
:where(.sw-activity-feed) .sw-feed-filter-popup {
  position: fixed;
  z-index: 35;
  top: 0;
  left: 0;
  width: min(300px, calc(100vw - 48px));
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
:where(.sw-activity-feed) .sw-feed-filter-popup[hidden] {
  display: none;
}
:where(.sw-activity-feed) .sw-feed-filter-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
:where(.sw-activity-feed) .sw-feed-filter-field label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
:where(.sw-activity-feed) .sw-feed-filter-field select {
  width: 100%;
  height: 36px;
  font-size: 12px;
}
:where(.sw-activity-feed) .sw-feed-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
:where(.sw-activity-feed) .ep-group {
  margin-bottom: 12px;
}
:where(.sw-activity-feed) .ep-group__title {
  margin: 8px 0 7px 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
:where(.sw-activity-feed) .ep-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.sw-activity-feed) .ep-card {
  position: relative;
  padding: 13px 12px 11px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
:where(.sw-activity-feed) .ep-card:hover {
  border-color: var(--text-subtle);
  box-shadow: var(--shadow-sm);
}
:where(.sw-activity-feed) .ep-card[hidden],
:where(.sw-activity-feed) .ep-group[hidden] {
  display: none !important;
}
:where(.sw-activity-feed) .ep-card__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
:where(.sw-activity-feed) .ep-card__body {
  flex: 1;
  min-width: 0;
}
:where(.sw-activity-feed) .ep-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
:where(.sw-activity-feed) .ep-card__text .ep-strong {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
:where(.sw-activity-feed) .ep-card__text .ep-strong:hover {
  text-decoration: underline;
}
:where(.sw-activity-feed) .ep-card__time {
  display: block;
  margin-top: 4px;
  color: var(--text-subtle);
  font-size: 11px;
}
:where(.sw-activity-feed) .ep-avatar,
:where(.sw-activity-feed) .ep-logo-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
:where(.sw-activity-feed) .ep-tint-teal {
  background: var(--panel-active);
  color: var(--indigo);
}
:where(.sw-activity-feed) .ep-tint-indigo {
  background: var(--indigo-bg);
  color: var(--indigo);
}
:where(.sw-activity-feed) .ep-tint-pink {
  background: var(--pink-bg);
  color: var(--pink);
}
:where(.sw-activity-feed) .ep-tint-orange {
  background: var(--orange-bg);
  color: var(--orange);
}
:where(.sw-activity-feed) .ep-tint-cyan {
  background: var(--panel-active);
  color: var(--indigo);
}
:where(.sw-activity-feed) .ep-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin-top: 8px;
}
:where(.sw-activity-feed) .ep-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
:where(.sw-activity-feed) .ep-expand:hover {
  background: var(--surface-hover);
}
:where(.sw-activity-feed) .ep-expand .icon {
  transition: transform 0.15s ease;
}
:where(.sw-activity-feed) .ep-expand[aria-expanded="true"] .icon {
  transform: rotate(90deg);
}
:where(.sw-activity-feed) .ep-feed-type {
  color: var(--text-subtle);
  font-size: 10px;
}
:where(.sw-activity-feed) .ep-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 23px;
  padding: 0 8px;
  border: 1px solid;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
:where(.sw-activity-feed) .ep-badge--neutral {
  color: var(--text-muted);
  background: var(--neutral-bg);
  border-color: var(--text-muted);
}
:where(.sw-activity-feed) .ep-badge--orange {
  color: var(--orange);
  background: var(--orange-bg);
  border-color: var(--orange);
}
:where(.sw-activity-feed) .ep-badge--teal,
:where(.sw-activity-feed) .ep-badge--cyan {
  color: var(--indigo);
  background: var(--panel-active);
  border-color: var(--indigo);
}
:where(.sw-activity-feed) .ep-badge--pink {
  color: var(--pink);
  background: var(--pink-bg);
  border-color: var(--pink);
}
:where(.sw-activity-feed) .ep-badge--indigo {
  color: var(--indigo);
  background: var(--indigo-bg);
  border-color: var(--indigo);
}
:where(.sw-activity-feed) .ep-badge--brand {
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-color: var(--brand);
}
:where(.sw-activity-feed) .ep-timeline {
  position: relative;
  margin: 12px 0 2px 5px;
  padding: 0 0 0 18px;
  list-style: none;
}
:where(.sw-activity-feed) .ep-timeline::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 2px;
  background: var(--border-strong);
  content: "";
}
:where(.sw-activity-feed) .ep-timeline li {
  position: relative;
  padding: 0 0 10px;
}
:where(.sw-activity-feed) .ep-timeline li:last-child {
  padding-bottom: 0;
}
:where(.sw-activity-feed) .ep-timeline li::before {
  position: absolute;
  top: 4px;
  left: -22px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--text-subtle);
  border-radius: 50%;
  background: var(--surface);
  content: "";
}
:where(.sw-activity-feed) .ep-timeline p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}
:where(.sw-activity-feed) .ep-timeline time {
  display: block;
  color: var(--text-subtle);
  font-size: 10px;
}
:where(.sw-activity-feed) .ep-empty {
  padding: 26px 8px;
  color: var(--text-muted);
  text-align: center;
}
:where(.sw-activity-feed) .ep-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
:where(.sw-activity-feed) .ep-load-more {
  margin: 8px 0 2px;
  border-radius: 999px;
  height: 40px;
  font-size: 12px;
}
:where(.sw-activity-feed) .ep-load-more[hidden] {
  display: none;
}
:where(.sw-activity-feed) .ep-load-more.is-loading span:first-child {
  opacity: 0.6;
}
:where(.sw-activity-feed) .ep-card__right {
  display: flex;
  flex: none;
  align-items: center;
}
:where(.sw-activity-feed) .ep-actions {
  display: none;
  align-items: center;
  gap: 6px;
}
.sw-activity-feed .ep-card__right {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}
.sw-activity-feed .ep-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
:where(.sw-activity-feed) .ep-card:hover .ep-card__right .ep-badge,
:where(.sw-activity-feed) .ep-card:focus-within .ep-card__right .ep-badge,
:where(.sw-activity-feed) .ep-card.is-menu-open .ep-card__right .ep-badge {
  display: none;
}
:where(.sw-activity-feed) .ep-card:hover .ep-actions,
:where(.sw-activity-feed) .ep-card:focus-within .ep-actions,
:where(.sw-activity-feed) .ep-card.is-menu-open .ep-actions {
  display: flex;
}
:where(.sw-activity-feed) .ep-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  height: 24px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
:where(.sw-activity-feed) .ep-btn-outline:hover {
  background: var(--surface-hover);
}
:where(.sw-activity-feed) .ep-btn-outline--teal {
  background: var(--panel-active);
  border-color: var(--indigo);
}
:where(.sw-activity-feed) .ep-btn-outline:focus-visible,
:where(.sw-activity-feed) .ep-bell:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
:where(.sw-activity-feed) .ep-bell {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -2px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
:where(.sw-activity-feed) .ep-bell:hover {
  background: var(--surface-hover);
}
:where(.sw-activity-feed) .ep-bell__off {
  display: none;
  color: var(--text-muted);
}
:where(.sw-activity-feed) .ep-card[data-notify="off"] .ep-bell__on {
  display: none;
}
:where(.sw-activity-feed) .ep-card[data-notify="off"] .ep-bell__off {
  display: block;
}
:where(.sw-activity-feed) .ep-tip {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: -6px;
  width: 210px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg, #fff);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
  pointer-events: none;
}
:where(.sw-activity-feed) .ep-bell:hover .ep-tip,
:where(.sw-activity-feed) .ep-bell:focus-visible .ep-tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}
:where(.sw-activity-feed) .ep-menu {
  position: fixed;
  z-index: 1000;
  min-width: 152px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
:where(.sw-activity-feed) .ep-menu[hidden] {
  display: none;
}
:where(.sw-activity-feed) .ep-menu--sm {
  width: 190px;
}
:where(.sw-activity-feed) .ep-menu button {
  display: block;
  width: 100%;
  padding: 9px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
:where(.sw-activity-feed) .ep-menu button:hover,
:where(.sw-activity-feed) .ep-menu button:focus-visible {
  background: var(--surface-hover);
  outline: 0;
}
:where(.sw-activity-feed) .ep-toasts {
  position: fixed;
  z-index: 1100;
  top: 16px;
  right: 16px;
  width: min(360px, calc(100vw - 32px));
}
:where(.sw-activity-feed) .ep-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}
:where(.sw-activity-feed) .ep-toast__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
:where(.sw-activity-feed) .ep-toast__title {
  font-weight: 700;
}
:where(.sw-activity-feed) .ep-toast__msg {
  color: var(--text-muted);
}
:where(.sw-activity-feed) .ep-toast--success {
  border-color: var(--success, #1a7f4b);
}
:where(.sw-activity-feed) .ep-toast--warning {
  border-color: var(--warning, #c77700);
}
:where(.sw-activity-feed) .ep-toast--info {
  border-color: var(--info, #2b6cb0);
}
:where(.sw-activity-feed) .ep-toast .ep-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Small screens */
@media (max-width: 760px) {
  .sw-page:where(.sw-activity-feed) {
    padding: 16px 14px 26px;
  }
}
@media (max-width: 420px) {
  :where(.sw-activity-feed) .sw-header h1 {
    font-size: 19px;
  }
}
@media (max-width: 600px) {
  :where(.sw-activity-feed) .sw-schedule-body {
    padding: 0;
  }
  :where(.sw-activity-feed) .ep-expand {
    width: 100%;
  }
  :where(.sw-activity-feed) .ep-card__foot {
    flex-wrap: wrap-reverse;
  }
  .sw-activity-feed .ep-card__right,
  .sw-activity-feed .ep-actions,
  :where(.sw-activity-feed) .ep-card .ep-card__right .ep-badge {
    display: flex;
  }
}

/* HUB-709: the contact's job title after their name. */
.ep-card__text .ep-job{color:var(--text-muted);font-weight:400}
