:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #eef4ff;
  background: #080b12;
  --panel: #141a25;
  --border: #293244;
  --muted: #9da9ba;
  --blue: #2f75e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, #18305c, transparent 36rem),
    #080b12;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 18, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand div:last-child {
  display: grid;
  gap: 3px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

small,
p,
span,
.empty {
  color: var(--muted);
}

.topbar nav {
  display: flex;
  gap: 8px;
}

.topbar nav button,
.admin-menu button,
.resource-toolbar button,
#fullscreenButton {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: #1c2432;
}

.topbar nav button.active {
  background: var(--blue);
}

.shell {
  width: min(1500px, calc(100% - 28px));
  margin: auto;
  padding: 28px 0 60px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.hero {
  max-width: 900px;
  margin: 20px auto 30px;
  text-align: center;
  padding: 54px 30px;
}

.hero h1 {
  margin: 8px 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.primary {
  padding: 13px 18px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: var(--blue);
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.event-header {
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  gap: 16px;
  margin-bottom: 16px;
}

.organizer-card,
.event-image {
  min-height: 130px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.image-placeholder {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #232d3d;
  color: var(--muted);
}

.event-title {
  text-align: center;
}

.event-title h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.event-layout {
  display: grid;
  grid-template-columns: 210px 1fr 260px;
  gap: 16px;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.event-stage,
.right-rail {
  display: grid;
  align-content: start;
  gap: 16px;
}

.main-stream {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #24334d, #090c12);
}

#fullscreenButton {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 9px;
}

.stream-tile {
  min-height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111722;
  color: var(--muted);
}

.details-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 16px;
}

.map-panel {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.section-heading {
  margin: 20px 0;
}

.resource-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.resource-list,
.people-management {
  display: grid;
  gap: 12px;
}

@media (max-width: 1050px) {
  .event-layout,
  .event-header,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stream-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .details-grid,
  .stream-grid {
    grid-template-columns: 1fr;
  }
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.hero-logo {
    width: 180px;
    display: block;
    margin: 20px auto;
}

.platform-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer img {
    height: 36px;
}

/* WebPulse LIVE branding */

.platform-brand {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.platform-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hero-logo {
  width: min(230px, 62vw);
  max-height: 190px;
  display: block;
  margin: 0 auto 18px;
  object-fit: contain;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 15px;
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.footer img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer div {
  display: grid;
  gap: 3px;
}

.footer span,
.footer small {
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 800px) {
  .platform-brand {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .platform-brand img {
    width: 46px;
    height: 46px;
  }

  .footer {
    grid-template-columns: auto 1fr;
  }

  .footer > small {
    grid-column: 1 / -1;
  }
}

/* Create Event */

.hidden {
  display: none !important;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 6, 12, .88);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 5px 0 0;
}

.modal-header button,
.form-actions button {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: #1c2432;
}

.event-form {
  display: grid;
  gap: 16px;
}

.event-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.event-form input,
.event-form textarea,
.event-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: #090d15;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.form-status {
  min-height: 22px;
  margin: 0;
}

.event-summary-card {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1b2330;
}

.event-summary-card button {
  justify-self: start;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: white;
  background: #222c3b;
}

@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-layer {
    padding: 14px;
  }
}

/* Participants */

.invite-result {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111722;
}

.invite-result input {
  font-family: Consolas, monospace;
  font-size: .84rem;
}

.invite-actions,
.participant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1b2330;
}

.participant-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.participant-card-header > div {
  display: grid;
  gap: 3px;
}

.participant-card-header span,
.participant-card small {
  color: var(--muted);
}

.participant-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.status-invited {
  color: #a8c7ff;
  background: #172b4d;
}

.status-waiting {
  color: #ffd487;
  background: #4a3510;
}

.status-connected {
  color: #7ce7aa;
  background: #103b27;
}

.status-disconnected {
  color: #c3c8d2;
  background: #303643;
}

.status-removed {
  color: #ff9e9e;
  background: #4a1c1c;
}

.participant-actions button,
.invite-actions button {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: white;
  background: #222c3b;
}

/* Event Resources */

.resource-options {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111722;
}

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.check-row input {
  width: auto;
}

.resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}

.resource-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.resource-heading > div:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.resource-heading strong,
.resource-heading span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: white;
  background: #25334a;
  font-weight: 800;
}

.resource-state {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  color: #a8c7ff;
  background: #172b4d;
  font-size: .75rem;
  font-style: normal;
  font-weight: 700;
}

.resource-state.resource-live {
  color: #7ce7aa;
  background: #103b27;
}

.resource-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-actions button {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: white;
  background: #222c3b;
}

@media (max-width: 650px) {
  .resource-card {
    grid-template-columns: 1fr;
  }

  .resource-state {
    justify-self: start;
  }
}

/* Conference toolbar */

.conference-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.conference-status-block {
  display: grid;
  gap: 4px;
}

.conference-status-block strong {
  font-size: 1.2rem;
}

.conference-status-block span {
  color: var(--muted);
  font-size: .85rem;
}

#conferenceStatus.conference-live {
  color: #7ce7aa;
}

.conference-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.conference-controls button {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: #1c2432;
}

.conference-controls button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 760px) {
  .conference-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .conference-controls {
    justify-content: flex-start;
  }
}

/* Dashboard connectivity */

.dashboard-connectivity {
  margin-bottom: 16px;
}

.connectivity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.connectivity-heading h2 {
  margin: 5px 0 0;
}

.connectivity-heading button {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: white;
  background: #1c2432;
}

.connectivity-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.connectivity-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1b2330;
}

.connectivity-card > div {
  display: grid;
  gap: 4px;
}

.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #697180;
  box-shadow: 0 0 0 4px rgba(105, 113, 128, .12);
}

.status-online {
  background: #55d68b;
  box-shadow: 0 0 0 4px rgba(85, 214, 139, .13);
}

.status-idle {
  background: #e9bd63;
  box-shadow: 0 0 0 4px rgba(233, 189, 99, .13);
}

.status-offline {
  background: #e07171;
  box-shadow: 0 0 0 4px rgba(224, 113, 113, .13);
}

/* Conference deck RC1 */

.conference-stage {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 0;
  background:
    radial-gradient(circle at center, #273955, #080b11 72%);
}

.conference-video {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: cover;
  background: #05070b;
}

.conference-placeholder {
  min-height: 520px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  text-align: center;
}

.conference-avatar {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 2px solid #6b8fc4;
  border-radius: 50%;
  background: #263954;
  font-size: 2rem;
  font-weight: 800;
}

.conference-placeholder strong {
  font-size: 1.2rem;
}

.conference-placeholder span {
  color: var(--muted);
}

.stage-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-badges span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(5,8,13,.78);
  color: #c8d0dc;
  font-size: .72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.stage-badges .stage-live {
  background: rgba(160, 20, 32, .88);
  color: white;
}

.fox-assurance-panel {
  display: grid;
  gap: 14px;
}

.fox-assurance-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.fox-assurance-heading img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.fox-assurance-heading > div {
  display: grid;
  gap: 3px;
}

.fox-status-message {
  padding: 14px;
  border-radius: 12px;
  background: white;
  color: #121722;
}

.fox-status-message small {
  display: block;
  margin-bottom: 7px;
  color: #667287;
}

.fox-status-message p {
  margin: 0;
  color: #3e4a5d;
  line-height: 1.45;
}

.fox-readiness {
  display: grid;
  gap: 8px;
}

.fox-readiness span {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #1b2330;
  color: var(--muted);
  font-size: .78rem;
}

.conference-controls button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #638bc7;
}

@media (max-width: 700px) {
  .conference-stage,
  .conference-video,
  .conference-placeholder {
    min-height: 360px;
    height: 360px;
  }

  .conference-avatar {
    width: 86px;
    height: 86px;
  }
}

/* FOX admin courier board */

.fox-admin-board {
  margin-top: 16px;
}

.fox-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.fox-admin-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.fox-admin-identity img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.fox-admin-identity h2 {
  margin: 5px 0 0;
}

#foxAdminSummary {
  color: var(--muted);
  font-size: .82rem;
}

.fox-admin-controls {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.fox-admin-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.fox-admin-controls select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: #090d15;
}

.fox-courier-list {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.fox-courier-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #171f2c;
}

.fox-courier-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.fox-courier-top > div {
  display: grid;
  gap: 4px;
}

.fox-courier-top span {
  color: var(--muted);
  font-size: .8rem;
}

.fox-courier-state {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
}

.fox-state-queued {
  color: #ffd487;
  background: #4a3510;
}

.fox-state-delivered,
.fox-state-read {
  color: #a8c7ff;
  background: #172b4d;
}

.fox-state-responded {
  color: #7ce7aa;
  background: #103b27;
}

.fox-state-dismissed,
.fox-state-replaced {
  color: #c3c8d2;
  background: #303643;
}

.fox-courier-message {
  padding: 14px;
  border-radius: 11px;
  background: white;
  color: #111722;
}

.fox-courier-message small {
  display: block;
  margin-bottom: 7px;
  color: #667287;
}

.fox-courier-message p {
  margin: 0;
  color: #3e4a5d;
  line-height: 1.5;
}

.fox-courier-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.fox-courier-details span {
  color: var(--muted);
  font-size: .76rem;
}

.fox-courier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fox-courier-actions button {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: white;
  background: #222c3b;
}

@media (max-width: 700px) {
  .fox-admin-heading,
  .fox-admin-controls {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .fox-admin-controls {
    display: grid;
  }

  #sendFoxInvitationButton {
    width: 100%;
  }
}

/* LIVE Presence Manager */

.presence-manager-panel {
  margin-top: 16px;
}

.presence-manager-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.presence-manager-heading h2 {
  margin: 5px 0 0;
}

#presenceManagerSummary {
  color: var(--muted);
  font-size: .82rem;
}

.presence-manager-list {
  display: grid;
  gap: 10px;
}

.presence-manager-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #171f2c;
}

.presence-manager-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.presence-online {
  background: #55d68b;
  box-shadow:
    0 0 0 4px
    rgba(85,214,139,.13);
}

.presence-waiting {
  background: #e9bd63;
  box-shadow:
    0 0 0 4px
    rgba(233,189,99,.13);
}

.presence-offline {
  background: #717a89;
}

.presence-manager-details {
  display: grid;
  gap: 4px;
}

.presence-manager-details span,
.presence-manager-details small {
  color: var(--muted);
}

.presence-manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.presence-manager-actions button {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: white;
  background: #222c3b;
}

@media (max-width: 700px) {
  .presence-manager-heading {
    flex-direction: column;
  }

  .presence-manager-card {
    grid-template-columns: auto 1fr;
  }

  .presence-manager-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .presence-manager-actions button {
    flex: 1;
  }
}

/* Broadcast RC1 */

.broadcast-control-panel {
  margin-top: 16px;
}

.broadcast-control-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.broadcast-control-heading h2 {
  margin: 5px 0 0;
}

#broadcastStatusBadge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #303744;
  color: #c8ced8;
  font-size: .72rem;
  font-weight: 800;
}

#broadcastStatusBadge.broadcast-live {
  background: #a91c2d;
  color: white;
}

.broadcast-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.broadcast-control-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.broadcast-control-grid input,
.broadcast-control-grid select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: #090d15;
}

.broadcast-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.broadcast-control-actions button {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  background: #222c3b;
}

.broadcast-control-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.broadcast-control-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}

.broadcast-control-summary span {
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 700px) {
  .broadcast-control-heading,
  .broadcast-control-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .broadcast-control-actions button {
    flex: 1;
  }
}

/* Event lifecycle and archive */

.event-lifecycle-panel {
  margin-top: 16px;
}

.lifecycle-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lifecycle-heading h2 {
  margin: 5px 0 0;
}

#lifecycleStatus {
  padding: 6px 10px;
  border-radius: 999px;
  background: #173f2b;
  color: #7ce7aa;
  font-size: .72rem;
  font-weight: 800;
}

#lifecycleStatus.lifecycle-archived {
  background: #303744;
  color: #d4dae4;
}

.lifecycle-description {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.lifecycle-options {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    minmax(220px, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.lifecycle-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  background: #171f2c;
}

.lifecycle-options label:last-child {
  display: grid;
  grid-template-columns: auto 1fr;
}

.lifecycle-options select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: white;
  background: #090d15;
}

.lifecycle-actions {
  margin-top: 14px;
}

.danger-action {
  padding: 11px 15px;
  border: 1px solid #8d3340;
  border-radius: 10px;
  color: white;
  background: #7d2431;
  font-weight: 700;
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.event-summary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.event-summary > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.event-summary h3 {
  margin: 5px 0 0;
  font-size: 1.5rem;
}

#summaryArchiveStatus {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #303744;
  font-size: .72rem;
  font-weight: 800;
}

.event-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.event-summary-grid article {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #171f2c;
}

.event-summary-grid strong {
  font-size: 1.45rem;
}

.event-summary-grid span {
  color: var(--muted);
  font-size: .78rem;
}

.summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
}

.summary-footer span {
  color: var(--muted);
  font-size: .8rem;
}

.summary-footer a {
  padding: 10px 13px;
  border-radius: 10px;
  color: white;
  background: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 700px) {
  .lifecycle-heading,
  .event-summary > header,
  .summary-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .lifecycle-options,
  .event-summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-footer a,
  .danger-action {
    width: 100%;
    text-align: center;
  }
}
