.event-staged .detail-post-card { gap: 0.95rem; }
.event-staged .staged-host-trigger { display: inline-flex; align-items: center; gap: .6rem; }
.event-staged .staged-host-trigger > svg { width: 1.1rem; height: 1.1rem; flex: none; }
.event-staged .staged-steps,
.event-staged .staged-controls { display: flex; gap: .5rem; justify-content: space-between; }
.event-staged .staged-steps button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid rgb(138 154 176 / .28);
  background: transparent;
  color: inherit;
  padding: .3rem .15rem;
  font: inherit;
  font-size: .82rem;
}
.event-staged .staged-steps button[aria-current="step"] { border-color: var(--accent); font-weight: 700; }
.event-staged .staged-section { display: grid; gap: .85rem; min-width: 0; }
.event-staged .web-bring-result { margin: 0; padding: .55rem .7rem; border-radius: .55rem; background: #1d382e; }
.event-staged .staged-section > h3 { margin: 0; font-size: 1.1rem; scroll-margin-top: 1rem; }
.event-staged .staged-host-trigger {
  text-align: left;
  min-height: 49px;
  padding: .3rem;
  border: 0;
  border-radius: .55rem;
  color: inherit;
  background: transparent;
  font: inherit;
}
.event-staged .staged-host-trigger span small { display: block; margin-top: .15rem; opacity: .85; }
.event-staged .staged-rsvp {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: .4rem 0 max(.4rem, env(safe-area-inset-bottom));
}
.app-shell .page.event-staged .staged-rsvp .event-rsvp-card { background: #171d26; margin: 0; }
.event-staged #staged-host {
  width: min(24rem, calc(100% - 2rem));
  border: 1px solid #3b4554;
  border-radius: 1rem;
  background: #181f29;
  color: #f3f5f8;
  padding: 1.2rem;
}
.event-staged #staged-host > div { display: flex; flex-wrap: wrap; gap: .55rem; }
.event-staged #staged-host h3 { margin: 0; }
.event-staged #staged-host::backdrop { background: rgb(0 0 0 / .65); }
@media (prefers-reduced-motion: no-preference) {
  .event-staged .staged-enter { animation: staged-enter .17s ease-out both; }
  .event-staged dialog[open] { animation: staged-enter .16s ease-out both; }
  @keyframes staged-enter { from { opacity: .64; transform: translateY(5px); } }
}

.app-shell.task-shell .page.event-staged:not(.world-page):has(> .staged-rsvp),
.app-shell:not(.task-shell) .page.event-staged:not(.world-page):has(> .staged-rsvp) {
  padding-bottom: 0;
  scroll-padding-bottom: 8.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .event-staged .staged-claimed {
    animation: staged-claimed 0.6s ease-out both;
  }
  @keyframes staged-claimed {
    from { outline: 2px solid var(--accent); outline-offset: 2px; }
    to { outline: 2px solid transparent; outline-offset: 4px; }
  }
}

.event-cover-viewer-trigger {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.event-cover-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
  border: 0;
  background: #090b10;
  color: #fff;
}

.event-cover-viewer[open] {
  display: flex;
  flex-direction: column;
}

.event-cover-viewer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
}

.event-cover-viewer-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #79808e;
  border-radius: 22px;
  background: #222732;
  color: inherit;
}

.event-cover-viewer-image {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.event-cover-viewer-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.event-cover-viewer.is-enlarged .event-cover-viewer-image img {
  width: 200%;
  height: 200%;
}
