.colFilter {
  border-bottom: 1px solid #dfe7ee;
  color: #263746;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  margin-bottom: 18px;
  padding: 0 0 14px;
  width: 100%;
}

.colFilterArea {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  margin-top: 12px;
  width: 100%;
}

.col-filter-search {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(220px, 360px);
  margin-top: 12px;
}

.col-filter-search label {
  color: #4c5f71;
  font-size: 0.84rem;
  font-weight: 650;
}

.col-filter-search input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.collFItem {
  --filter-color: #0093ff;
  min-width: 0;
  position: relative;
}

.collFItem input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.collFItem label {
  align-items: center;
  background: #fff;
  border: 2px solid var(--filter-color);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(32, 45, 58, 0.05);
  box-sizing: border-box;
  color: #35485a;
  cursor: pointer;
  display: grid;
  font-size: 0.84rem;
  font-weight: 650;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 36px;
  padding: 7px 9px 7px 10px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, opacity 120ms ease;
  user-select: none;
  width: 100%;
}

.collFItem label span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collFItem label:hover {
  border-color: var(--filter-color);
  box-shadow: 0 2px 7px rgba(32, 45, 58, 0.08);
}

.collFItem input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(0, 147, 255, 0.22);
}

.collFItem input:not(:checked) + label {
  background: #f8fafc;
  border-color: #dfe7ee;
  color: #657380;
  font-weight: 500;
  opacity: 0.82;
}

.collFItem input:not(:checked) + label .filter-item-count {
  background: #e6edf3;
  color: #657380;
}

.filter-item-count {
  background: color-mix(in srgb, var(--filter-color) 14%, #f7fafc);
  border-radius: 999px;
  color: #3f5163;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 22px;
  padding: 1px 6px;
  text-align: center;
}

.collective-filter-highlight {
  background: #fff2a8;
  border-radius: 3px;
  color: inherit;
  padding: 0 2px;
}

.collTyping {
  min-height: 50px;
}

.collContent {
  min-height: 50px;
  padding: 0 0 0 4px;
  word-break: break-word;
}

.collRow {
  margin-bottom: 15px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 240px auto;
}

@media screen and (max-width: 800px) {
  .col-filter-search {
    grid-template-columns: 1fr;
  }

  .collRow {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.timeline {
  --timeline-date-width: 158px;
  color: #263746;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 1300px;
}

.timeline-item {
  --timeline-color: #45b7d1;
  align-items: flex-start;
  display: grid;
  gap: 22px;
  grid-template-columns: var(--timeline-date-width) minmax(0, 1fr);
  margin-bottom: 18px;
}

.timeline-date {
  color: #69798a;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  grid-column: 1;
  letter-spacing: 0;
  line-height: 1.35;
  padding-top: 17px;
  text-align: right;
}

.timeline-content {
  background: #fff;
  border: 1px solid #dfe7ee;
  border-left: 4px solid var(--timeline-color);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(32, 45, 58, 0.07), 0 8px 22px rgba(32, 45, 58, 0.08);
  grid-column: 2;
  margin-left: 0;
  min-width: 0;
  padding: 13px 16px 15px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.timeline-header {
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  min-width: 0;
  padding-bottom: 8px;
}

.timeline-type {
  align-items: center;
  color: #35485a;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 650;
  gap: 8px;
  line-height: 1.2;
  margin: 0;
  min-width: 0;
}

.timeline-type .fa-solid {
  align-items: center;
  color: var(--timeline-color);
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 0.9rem;
  height: 18px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  transform: translateY(1px);
  width: 18px;
}

.timeline-user {
  color: #6d7c8a;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 1px;
  text-align: right;
}

.timeline-body {
  color: #33475b;
  font-size: 0.92rem;
  line-height: 1.55;
  min-height: 36px;
  overflow-wrap: anywhere;
}

.timeline-body b {
  color: #3f5163;
  font-weight: 650;
}

.timeline-body i {
  color: #4d5d6d;
}

.timeline-placeholder {
  color: #7a8794;
  font-style: italic;
}

.timeline-status {
  align-items: center;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 650;
  gap: 6px;
  margin-top: 8px;
}

.timeline-status-error {
  color: #b33f35;
}

.sss-meta {
  align-items: center;
  border-bottom: 1px solid #e6edf3;
  color: #526271;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 10px 14px;
  line-height: 1.3;
  margin: 2px 0 16px;
  padding-bottom: 10px;
}

.sss-meta__status {
  color: #657380;
  font-size: inherit;
  font-weight: 700;
}

.sss-meta__status::after {
  color: #a2afba;
  content: "/";
  font-weight: 500;
  margin-left: 14px;
}

.sss-meta__levels {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sss-meta__level {
  background: color-mix(in srgb, var(--sss-level-bg) 48%, #fff);
  border: 1px solid color-mix(in srgb, var(--sss-level-border) 55%, #dfe7ee);
  border-radius: 3px;
  color: #263746;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1;
  padding: 5px 8px;
}

.sss-meta__arrow {
  color: #657380;
  font-size: 0.72rem;
}

.sss-meta__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.sss-meta__fact {
  color: #526271;
  display: inline-flex;
  font-size: inherit;
  gap: 5px;
  line-height: inherit;
}

.sss-meta__fact b {
  color: #263746;
}

.sss-meta-detail {
  margin-top: 12px;
}

.sss-meta-link {
  margin-top: 12px;
}

@media screen and (max-width: 800px) {
  .timeline {
    --timeline-date-width: 0px;
    padding-left: 0;
  }

  .timeline-item {
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 14px;
  }

  .timeline-date {
    font-size: 0.74rem;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 5px;
    padding-top: 0;
    text-align: left;
  }

  .timeline-content {
    grid-column: 1;
    grid-row: 2;
  }

  .timeline-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .timeline-user {
    text-align: left;
  }

  .sss-meta {
    gap: 8px 12px;
  }
}

.col-filter-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
}

.col-filter-actions {
  display: inline-flex;
  gap: 6px;
}

.col-filter-action {
  background: #fff;
  border: 2px solid #dfe7ee;
  border-radius: 8px;
  color: #4c5f71;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1;
  min-height: 30px;
  padding: 6px 10px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.col-filter-action:hover {
  border-color: #c7d3de;
  box-shadow: 0 2px 7px rgba(32, 45, 58, 0.07);
  color: #35485a;
}

.col-filter-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 147, 255, 0.18);
  outline: none;
}

.col-filter-count {
  color: #657380;
  font-size: 0.84rem;
  font-weight: 600;
  margin-left: auto;
}

.collective-empty-filter {
  background: #f8fafc;
  border: 1px dashed #b8c6d2;
  border-radius: 6px;
  color: #526271;
  margin: 16px 0;
  padding: 18px;
  text-align: center;
}

.email-iframe {
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  color-scheme: light;
  display: block;
  height: 340px;
  margin: 10px 0 2px;
  min-height: 120px;
  overflow: hidden;
  width: 100%;
}
