/* Dashboard: the event on the left, the invitation on a phone fixed on the right */
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: start;
}
.dash-main {
  min-width: 0;
}
.dash-main .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.event-banner-solo {
  grid-template-columns: minmax(0, 1fr);
  min-height: 250px;
}
.event-banner-solo .hero-content {
  padding: 28px;
  max-width: 62%;
}
/* The picture of the event on the right: it fades into the colour of the banner, so the text stays readable */
.event-banner-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%);
  mask-image: linear-gradient(to right, transparent 0, #000 42%);
}
.event-banner-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-banner-art.is-illustration img {
  object-fit: contain;
  object-position: right center;
  padding: 18px 12px 18px 0;
}
@media (max-width: 760px) {
  .event-banner-solo {
    min-height: 0;
  }
  .event-banner-solo .hero-content {
    max-width: none;
    padding: 190px 22px 24px;
  }
  .event-banner-art {
    inset: 0 0 auto 0;
    width: 100%;
    height: 170px;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  }
  .event-banner-art.is-illustration img {
    object-position: center;
    padding: 12px 0;
  }
}
.hero-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--event-accent);
  font-size: 13px;
}
.hero-count b {
  font-family: Manrope, sans-serif;
  font-size: 20px;
}
.gl2-summary-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dash-side {
  position: sticky;
  top: calc(var(--app-header-h, 160px) + 16px);
  display: grid;
  gap: 14px;
  justify-items: center;
}
/* The phone: real proportions (390 x 820), scaled to the screen by --phone-scale (set in app.js) */
.dash-fit {
  width: calc(390px * var(--phone-scale, 1));
  height: calc(820px * var(--phone-scale, 1));
}
.dash-fit .dash-phone.pv-frame {
  width: 390px;
  max-width: none;
  height: 820px;
  max-height: none;
  transform: scale(var(--phone-scale, 1));
  transform-origin: top left;
}
.dash-live {
  height: 100%;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.dash-live::-webkit-scrollbar {
  display: none;
}
/* A preview, not the page itself: it scrolls, nothing in it reacts */
.dash-live .invitation {
  pointer-events: none;
}
/* Under the phone: icons first, the names are in the tooltips and for screen readers */
.dash-site {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.dash-state {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--si-line, #e3e9ee);
  color: var(--si-muted, #5b6b78);
}
.dash-state .icon {
  width: 20px;
  height: 20px;
}
.dash-state i {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e0a030;
}
.dash-state.is-live {
  color: var(--si-yes, #1f7a5a);
}
.dash-state.is-live i {
  background: var(--si-yes, #1f7a5a);
}
.dash-state:focus-visible {
  outline: 3px solid #86b6d2;
  outline-offset: 1px;
}
.dash-edit {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto;
  height: 40px;
  gap: 8px;
  padding: 0 14px 0 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border-color: var(--accent, #2f6687);
  background: var(--accent, #2f6687);
  color: #fff;
}
.dash-edit:hover {
  background: #26536e;
}
.dash-edit .icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 1180px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-side {
    position: static;
  }
  .gl2-summary-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* "Mes événements": one plain row per event */
.ev-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.ev-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ev-open {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--si-line, #e3e9ee);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ev-open:hover {
  border-color: #b9c9d4;
}
.ev-open:focus-visible {
  outline: 3px solid #86b6d2;
  outline-offset: 1px;
}
.ev-row.is-current .ev-open {
  border-color: var(--accent, #2f6687);
  box-shadow: 0 0 0 1px var(--accent, #2f6687) inset;
}
.ev-thumb {
  flex: none;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--event-bg, #eef3f7);
}
.ev-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ev-info {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.ev-info b {
  overflow: hidden;
  font-size: 15.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-info small {
  overflow: hidden;
  color: var(--si-muted, #5b6b78);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-state {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3df;
  color: #8a5409;
  font-size: 12px;
  font-weight: 650;
}
.ev-state.is-live {
  background: #e3f3ec;
  color: #1c6f51;
}
.ev-del {
  flex: none;
  color: #8f1d17;
}
.ev-del:hover {
  background: #fdecea;
  border-color: #e5b9b4;
}
.ev-confirm-name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.ev-confirm-notes {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}
.ev-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
@media (max-width: 560px) {
  /* A phone keeps the room for the name: no picture, the name may take two lines */
  .ev-thumb {
    display: none;
  }
  .ev-open {
    gap: 10px;
    padding: 10px 12px;
  }
  .ev-info b {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
