#root .gr-activity-reference-list {
  --member-accent: #d6000f;
  --member-banner: #bc1a14;
  --member-ink: #222;
  --member-muted: #676260;
  --member-gutter: var(--gr-page-gutter);
  --activity-card-gutter: 4.2667%;
  min-width: 0;
  flex: 1;
  padding-bottom: 24px;
  background: #f6f6f6;
  color: var(--member-ink);
}

#root .gr-activity-reference-list :is(button, select, a, input):focus-visible {
  outline-color: var(--member-accent);
}

#root .gr-activity-reference-list .gr-member-search :is(button, input):focus-visible {
  outline-offset: -3px;
}

.gr-activity-ref-filters {
  background: #fff;
}

.gr-activity-ref-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px var(--activity-card-gutter) 0;
  background: var(--gr-page-canvas);
}

.gr-activity-ref-status > button {
  flex: 1 0 auto;
  min-width: 44px;
  max-width: 100%;
  min-height: 44px;
  padding: 4px 5px;
  border: 1px solid #ead9d8;
  border-radius: 999px;
  background: #fff;
  color: #544342;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.gr-activity-ref-status > button:is(:hover, :active):not([aria-pressed="true"]) {
  background: #fbeaea;
}

.gr-activity-ref-status > button[aria-pressed="true"] {
  border-color: var(--member-accent);
  background: var(--member-accent);
  color: #fff;
  font-weight: 650;
}

.gr-activity-ref-categories {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px var(--activity-card-gutter);
}

.gr-activity-ref-categories > button {
  min-height: 44px;
  max-width: 100%;
  padding: 2px 10px;
  border: 0;
  border-radius: 999px;
  background: #fafafa;
  color: #4e4948;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.gr-activity-ref-categories > button[aria-pressed="true"] {
  background: #d6000f;
  color: #fff;
}

.gr-activity-ref-feed {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 var(--activity-card-gutter);
  list-style: none;
}

.gr-activity-ref-section > h2 {
  margin: 0;
  padding: 16px var(--activity-card-gutter) 10px;
  color: var(--member-ink);
  font-size: 1rem;
  font-weight: 650;
}

.gr-activity-ref-item {
  min-width: 0;
}

.gr-activity-ref-card {
  position: relative;
  display: block;
  padding-bottom: 1px;
  border-radius: 11px;
  background: #fefffe;
  color: inherit;
  text-decoration: none;
}

.gr-activity-ref-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 686 / 380;
  border-radius: 11px;
  background: #f7e6e7 url("./assets/activity-reference-cover.png") center / cover no-repeat;
}

.gr-activity-ref-cover > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gr-activity-ref-cover-identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.gr-activity-ref-cover-identity > img {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
}

.gr-activity-ref-ribbon {
  position: absolute;
  z-index: 1;
  inset-block-start: 0;
  inset-inline-end: -4px;
  display: grid;
  min-width: max(68px, 5em);
  max-width: calc(100% - 8px);
  min-height: 29px;
  align-items: start;
  justify-items: center;
  padding: 1px 4px 4px;
  background: #776e6d;
  border-radius: 4px 0 0 6px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.8;
  overflow-wrap: anywhere;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.gr-activity-ref-ribbon[data-status="waiting"] {
  background-color: transparent;
  background-image: url("./assets/activity-reference-status-waiting.png");
}

.gr-activity-ref-ribbon[data-status="running"] {
  background-color: transparent;
  background-image: url("./assets/activity-reference-status-running.png");
}

.gr-activity-ref-ribbon[data-status="open"] {
  background-color: transparent;
  background-image: url("./assets/activity-reference-status-open.png");
}

.gr-activity-ref-ribbon[data-status="closed"] {
  background-color: transparent;
  background-image: url("./assets/activity-reference-status-closed.png");
}

.gr-activity-ref-copy {
  padding: 12px 13px 0;
}

.gr-activity-ref-copy > h3 {
  margin: 0 0 3px;
  color: #222;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.37;
  overflow-wrap: anywhere;
}

.gr-activity-ref-meta {
  display: flex;
  min-width: 0;
  min-height: 23px;
  align-items: center;
  margin: 0 0 2px;
  color: #636363;
  font-size: 0.78125rem;
  line-height: 1.45;
}

.gr-activity-ref-meta-icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-inline-end: 4px;
  background: center / contain no-repeat;
}

.gr-activity-ref-meta:is([data-kind="register"], [data-kind="time"]) > .gr-activity-ref-meta-icon {
  background-image: url("./assets/activity-reference-list-time.png");
}

.gr-activity-ref-meta[data-kind="address"] > .gr-activity-ref-meta-icon {
  background-image: url("./assets/activity-reference-list-address.png");
}

.gr-activity-ref-meta-label {
  flex: none;
  color: #6c6c6c;
}

.gr-activity-ref-meta-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gr-activity-ref-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 13px 16px;
  padding-top: 10px;
  border-top: 1px solid #f0eded;
  color: #d6000f;
  font-size: 0.84375rem;
  font-weight: 560;
}

.gr-activity-ref-card:hover .gr-activity-ref-enter {
  color: #a8000b;
}

.gr-activity-ref-empty {
  padding: 56px 16px;
  color: #6c6c6c;
  font-size: 0.875rem;
  text-align: center;
}
