.event-activity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 2rem;
}

.event-activity > turbo-frame { display: contents; }

.event-activity__guest-access,
.recent-uploads,
.recent-participants {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #e5dfd6;
  border-radius: 0.65rem;
  background: #fffdf9;
}
.recent-participants__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.recent-participants__heading h2 { margin: 0; }
.recent-participants__heading p { margin: 0; color: #625e56; font-size: 0.9rem; }
.recent-participants__list { list-style: none; margin: 0; padding: 0; max-height: 26rem; overflow-y: auto; }
.recent-participant { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.65rem 0.15rem; }
.recent-participant + .recent-participant { border-top: 1px solid #f0ebe3; }
.recent-participant__text { display: grid; min-width: 0; }
.recent-participant__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; font-weight: 500; }
.recent-participant__text small, .recent-participant__text time { color: #716d65; font-size: 0.75rem; line-height: 1.5; }
.recent-participant form { flex: 0 0 auto; }
.recent-participant .button { min-height: 2rem; padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.recent-participants__empty { color: #716d65; font-size: 0.9rem; }

.event-activity__guest-access .event-invitation {
  max-width: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

.event-activity__guest-access .event-invitation__qr { max-width: 13rem; }
.event-hero__text { flex: 1 1 16rem; min-width: 0; }
.event-hero__title-row { display: flex; align-items: center; gap: 1rem; }
.event-hero__title-row h1 { flex: 1 1 auto; min-width: 0; }
.header-actions { position: relative; flex: 0 0 auto; width: fit-content; margin-left: auto; }
.header-actions summary { list-style: none; gap: 0.6rem; }
.header-actions summary::-webkit-details-marker { display: none; }
.header-actions summary svg { flex: 0 0 auto; }
.header-actions__items { position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 10; display: grid; min-width: 14rem; max-width: calc(100vw - 2rem); background: #fffdf9; border: 1px solid #e5dfd6; border-radius: 0.65rem; padding: 0.35rem; box-shadow: 0 0.5rem 1.5rem rgba(48, 44, 39, 0.12); }
.header-actions__items a, .header-actions__items button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.6rem 0.75rem; border: 0; border-radius: 0.35rem; background: transparent; color: inherit; font: inherit; font-size: 0.9rem; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.header-actions__items a:hover, .header-actions__items button:hover { background: #f8f3eb; }
.header-actions__items svg { flex: 0 0 auto; }
.event-activity__guest-access h2, .recent-uploads h2 { font-size: 1.05rem; margin: 0 0 0.65rem; }
.recent-uploads__heading { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.65rem; }
.recent-uploads__heading h2 { margin: 0; }
.recent-uploads__download { display: flex; align-items: center; gap: 0.5rem; }
.recent-uploads__download-button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid #e5dfd6; border-radius: 0.4rem; background: #fffdf9; color: inherit; cursor: pointer; }

.recent-uploads__total { color: #625e56; font-size: 0.9rem; margin: 0 0 1rem; }
.recent-uploads__list { list-style: none; margin: 0; padding: 0; max-height: 26rem; overflow-y: auto; }
.recent-upload + .recent-upload { border-top: 1px solid #f0ebe3; }
.recent-upload__link { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.15rem; color: inherit; text-decoration: none; }
.recent-upload__link:hover { background: #f8f3eb; }
.recent-upload__link:focus-visible { outline: 2px solid #a83f2f; outline-offset: -2px; border-radius: 0.25rem; }
.recent-upload__thumbnail { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: #eee9e0; border-radius: 0.3rem; overflow: hidden; }
.recent-upload__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recent-upload__text { min-width: 0; flex: 1; }
.recent-upload__text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; font-weight: 500; }
.recent-upload__text > span, .recent-upload__text time { display: block; color: #716d65; font-size: 0.75rem; line-height: 1.5; overflow-wrap: anywhere; }
.recent-upload__check { flex: 0 0 1rem; background: #61806b; border-radius: 50%; color: white; text-align: center; font-size: 0.7rem; line-height: 1rem; }
.recent-uploads__empty { padding: 1.5rem 0; color: #716d65; }
.recent-uploads__empty h3 { font-size: 0.95rem; color: #302c27; }
.recent-uploads__empty p, .recent-uploads__feedback p { font-size: 0.85rem; line-height: 1.5; }
.recent-uploads__feedback p { color: #885b2d; }
.recent-uploads__feedback p:empty { display: none; }
.event-activity [hidden] { display: none; }
.activity-missions { grid-column: 1 / -1; margin-top: 0.5rem; min-width: 0; }

@media (max-width: 42rem) {
  .event-activity { grid-template-columns: minmax(0, 1fr); }
  .recent-uploads__list, .recent-participants__list { max-height: 23rem; }
  .header-actions__label { display: none; }
}
