/* Event page restore — matches PolyBet tokens / FOUC class tree when original chunks are unavailable */

.event-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.event-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.event-page__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.event-page__sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 340px;
}

.event-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--text-secondary, #8b949e);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.event-page__back:hover {
  color: var(--text-primary, #f5f5f5);
}

.event-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.event-head__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-sunken, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.event-head__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-head__text {
  min-width: 0;
  flex: 1;
}

.event-head__title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
}

.event-head__meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted, rgba(255, 255, 255, 0.55));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.event-head__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary, rgba(255, 255, 255, 0.35));
}

.event-markets {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-markets__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto) auto;
  gap: 12px 16px;
  align-items: baseline;
  padding: 0 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.event-markets__head-left {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  line-height: 1.15;
}

.event-markets__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary, #f5f5f5);
}

.event-markets__count {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.45);
}

.event-markets__chance {
  font-size: 11px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  padding-right: 2px;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.event-markets__head-spacer {
  width: 168px;
  max-width: 42vw;
}

.event-markets__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-market {
  display: block;
  padding: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.event-market:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: transparent;
  transform: none;
}

.event-market.is-selected {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  box-shadow: none;
}

.event-market__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto) auto;
  gap: 12px 16px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
}

.event-market__left {
  min-width: 0;
}

.event-market__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.event-market__resolved {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-market--resolved {
  opacity: 0.72;
}

.event-market__mid {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  min-width: 72px;
  white-space: nowrap;
}

.event-market__pct {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #f5f5f5);
  line-height: 1;
}

.event-market__delta {
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  min-height: 0;
}

.event-market__delta--up { color: #2ee59d; }
.event-market__delta--down { color: #ff6b7a; }
.event-market__delta--flat:empty { display: none; }

.event-market__meta {
  display: none;
}

.event-market__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  width: 168px;
  max-width: 42vw;
  justify-content: flex-end;
}

.event-market__btn {
  appearance: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  font: inherit;
  cursor: pointer;
  transition: filter 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
}

.event-market__btn:hover {
  transform: none;
  filter: brightness(1.06);
}

.event-market__btn-label,
.event-market__btn-pct {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: none;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.event-market__btn-pct {
  font-variant-numeric: tabular-nums;
}

.event-market__btn--yes,
.event-market__btn--yes:hover,
.event-market__btn--yes:focus,
.event-market__btn--yes.is-active {
  color: #0a0b0c;
  background: #2ee59d;
  border-color: #2ee59d;
}

.event-market__btn--no,
.event-market__btn--no:hover,
.event-market__btn--no:focus,
.event-market__btn--no.is-active {
  color: #0a0b0c;
  background: #ff6b7a;
  border-color: #ff6b7a;
}

.event-market__btn--yes.is-active,
.event-market__btn--no.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

@media (max-width: 720px) {
  .event-markets__head {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 8px 8px;
  }
  .event-markets__chance { display: none; }
  .event-markets__head-spacer { display: none; }
  .event-market__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name mid"
      "actions actions";
    gap: 8px 10px;
    padding: 10px 8px;
  }
  .event-market__left { grid-area: name; }
  .event-market__mid { grid-area: mid; }
  .event-market__actions {
    grid-area: actions;
    width: 100%;
    max-width: none;
  }
  .event-market__btn {
    flex: 1;
    height: 40px;
  }
}

.event-page__desc {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.pm-trade {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface-1, #0f1117);
  box-shadow: var(--shadow-card, 0 8px 24px rgba(0, 0, 0, 0.25));
}

.pm-trade__tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-trade__action-tabs {
  display: inline-flex;
  align-items: flex-end;
  gap: 16px;
}

.pm-trade button.pm-trade__action {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  margin: 0;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.38) !important;
  font: inherit;
  font-size: 15px !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 2px 10px !important;
  cursor: pointer;
}

.pm-trade button.pm-trade__action:hover {
  color: rgba(255, 255, 255, 0.72) !important;
}

.pm-trade button.pm-trade__action.is-active {
  color: #fff !important;
  border-bottom-color: #fff !important;
}

.pm-trade__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pm-trade__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary, #f5f5f5);
}

.pm-trade__badge {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(60, 155, 244, 0.28);
  background: rgba(60, 155, 244, 0.1);
  color: var(--primary, #3c9bf4);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.pm-trade__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-trade__field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
}

.pm-trade__amount {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary, #f5f5f5);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pm-trade__amount:focus {
  border-color: rgba(60, 155, 244, 0.45);
  background-color: rgba(60, 155, 244, 0.06);
}

.pm-trade__amount-row {
  position: relative;
}

.pm-trade__currency {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, rgba(255, 255, 255, 0.5));
  font-weight: 600;
  pointer-events: none;
}

.pm-trade__amount {
  padding: 0 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}

.pm-trade__amount-row:has(.pm-trade__currency:not(.pm-trade__currency--suffix)) .pm-trade__amount {
  padding-left: 28px;
}

.pm-trade__amount::-webkit-outer-spin-button,
.pm-trade__amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pm-trade__sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  min-height: 44px;
  border-radius: 999px;
  background: #141516;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-trade__side {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.pm-trade__side:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.04) !important;
}

.pm-trade__side--yes,
.pm-trade__side--yes:hover,
.pm-trade__side--yes:focus,
.pm-trade__side--no,
.pm-trade__side--no:hover,
.pm-trade__side--no:focus {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.pm-trade__side--yes.is-active,
.pm-trade__side--yes.is-active:hover,
.pm-trade__side--yes.is-active:focus {
  background: #2ee59d !important;
  color: #0a0b0c !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

.pm-trade__side--no.is-active,
.pm-trade__side--no.is-active:hover,
.pm-trade__side--no.is-active:focus {
  background: #ff6b7a !important;
  color: #0a0b0c !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

.pm-trade__side-label,
.pm-trade__side-pct {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
  opacity: 1;
}

.pm-trade__side-pct {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.pm-trade__quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pm-trade__chip {
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, rgba(255, 255, 255, 0.65));
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pm-trade__chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f5f5f5);
}

.pm-trade__chip.is-active {
  border-color: rgba(60, 155, 244, 0.75);
  background: rgba(60, 155, 244, 0.28);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(60, 155, 244, 0.35);
}

.pm-trade button.pm-trade__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #eceff3;
  background-color: #eceff3;
  color: #12141a;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pm-trade button.pm-trade__submit:hover {
  background: #ffffff;
  background-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  transform: none;
}

.pm-trade button.pm-trade__submit:active {
  background: #dfe3e8;
  background-color: #dfe3e8;
  transform: none;
  box-shadow: none;
}

/* Logged-in place-trade: matte brand blue, still no glow */
.pm-trade[data-logged-in="1"] button.pm-trade__submit:not(.is-blocked) {
  background: #2f8fed;
  background-color: #2f8fed;
  border-color: transparent;
  color: #fff;
}

.pm-trade[data-logged-in="1"] button.pm-trade__submit:not(.is-blocked):hover {
  background: #3c9bf4;
  background-color: #3c9bf4;
}

.pm-trade[data-logged-in="1"] button.pm-trade__submit:not(.is-blocked):active {
  background: #277fd4;
  background-color: #277fd4;
}

html.pm-shell--light .pm-trade button.pm-trade__submit {
  background: #12141a;
  background-color: #12141a;
  border-color: #12141a;
  color: #fff;
}

html.pm-shell--light .pm-trade button.pm-trade__submit:hover {
  background: #2a2e38;
  background-color: #2a2e38;
  border-color: #2a2e38;
}

html.pm-shell--light .pm-trade[data-logged-in="1"] button.pm-trade__submit:not(.is-blocked) {
  background: #2f8fed;
  background-color: #2f8fed;
  border-color: transparent;
  color: #fff;
}

.pm-trade__hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.4));
  line-height: 1.4;
  text-align: center;
}

.ev-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ev-comments__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-comments__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary, #f5f5f5);
}

.ev-comments__badge {
  display: none;
}

.ev-comments__privacy,
.ev-comments__guest,
.ev-comments__signin {
  display: none;
}

.ev-comments__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ev-comments__composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-comments__field {
  display: block;
  margin: 0;
  position: relative;
}

.ev-comments__input {
  width: 100%;
  min-height: 84px;
  height: 84px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary, #f5f5f5);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.ev-comments__input:focus {
  border-color: rgba(60, 155, 244, 0.45);
  background: rgba(60, 155, 244, 0.05);
}

.ev-comments__composer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ev-comments__privacy {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

button.ev-comments__submit,
.ev-comments button.ev-comments__submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #eceff3;
  background-color: #eceff3;
  color: #12141a;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

button.ev-comments__submit:hover,
.ev-comments button.ev-comments__submit:hover {
  background: #ffffff;
  background-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  color: #12141a;
}

button.ev-comments__submit:active,
.ev-comments button.ev-comments__submit:active {
  background: #dfe3e8;
  background-color: #dfe3e8;
  color: #12141a;
}

html.pm-shell--light button.ev-comments__submit,
html.pm-shell--light .ev-comments button.ev-comments__submit {
  background: #12141a;
  background-color: #12141a;
  border-color: #12141a;
  color: #ffffff;
}

html.pm-shell--light button.ev-comments__submit:hover,
html.pm-shell--light .ev-comments button.ev-comments__submit:hover {
  background: #2a2e38;
  background-color: #2a2e38;
  border-color: #2a2e38;
  color: #ffffff;
}

.ev-comments__error {
  margin: 0;
  font-size: 12.5px;
  color: #ff6b7a;
}

.ev-comments__guest {
  padding: 4px 0 2px;
}

.ev-comments__signin {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ev-comments__empty {
  margin: 0;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.ev-comments__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-comment {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.ev-comment__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.ev-comment__meta strong {
  color: var(--text-primary, #f5f5f5);
  font-size: 13px;
}

.ev-comment__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary, #f5f5f5);
  white-space: pre-wrap;
  word-break: break-word;
}

.ev-comment__replies {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-comment__reply {
  padding: 8px 0 0;
}

.ev-trades {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ev-trades__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 8px;
}

.ev-trades__head-left {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  line-height: 1.15;
}

.ev-trades__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary, #f5f5f5);
}

.ev-trades__count {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.45);
}

.ev-trades__sheet {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: min(420px, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.ev-trades__sheet::-webkit-scrollbar {
  width: 6px;
}
.ev-trades__sheet::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.ev-trades__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px 88px 72px;
  gap: 12px 16px;
  align-items: end;
  padding: 0 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.01em;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--background, #090a0b);
}

.ev-trades__cols > span:nth-child(2) {
  text-align: left;
}

.ev-trades__cols > span:nth-child(3),
.ev-trades__cols > span:nth-child(4) {
  text-align: right;
}

.ev-trades__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ev-trades__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px 88px 72px;
  gap: 12px 16px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 0;
  border-radius: 12px;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.ev-trades__row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.ev-trades__row:last-child {
  border-bottom: 0;
}

.ev-trades__wallet {
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ev-trades__action {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: 0;
  width: 100%;
}

.ev-trades__side {
  display: block;
  width: 44px;
  flex: none;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.ev-trades__side--buy {
  color: #2ee59d;
}

.ev-trades__side--sell {
  color: #ff6b7a;
}

.ev-trades__outcome {
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-trades__outcome--yes {
  color: #2ee59d;
  border: 0;
  background: transparent;
}

.ev-trades__outcome--no {
  color: #ff6b7a;
  border: 0;
  background: transparent;
}

.ev-trades__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary, #f5f5f5);
  text-align: right;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ev-trades__time {
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ev-trades__empty {
  padding: 20px 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  text-align: center;
  list-style: none;
}

@media (max-width: 720px) {
  .ev-trades__cols,
  .ev-trades__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "wallet time"
      "action amount";
    gap: 6px 10px;
    padding: 10px 8px;
  }
  .ev-trades__cols { display: none; }
  .ev-trades__wallet { grid-area: wallet; }
  .ev-trades__action {
    grid-area: action;
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .ev-trades__amount { grid-area: amount; align-self: center; }
  .ev-trades__time { grid-area: time; }
  .ev-trades__list { max-height: none; }
  .ev-trades__sheet { max-height: min(360px, 50vh); }
}

.markets-page__sentinel {
  width: 100%;
  height: 1px;
  margin: 8px 0 24px;
}

/* Match original EventMarketsChart shell */
.event-chart[data-v-c2539afa] {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 4px 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: transparent;
  isolation: isolate;
}

.event-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.event-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.event-chart__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-chart__legend-text {
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-chart__legend-pct {
  margin-left: 2px;
  color: var(--text-primary, #f5f5f5);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.event-chart__plot {
  position: relative;
  width: 100%;
  min-height: 240px;
  height: 240px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  cursor: crosshair;
}

.event-chart__canvas {
  display: block;
  width: 100%;
  height: 240px;
}

.event-chart__tooltip {
  position: absolute;
  z-index: 10;
  width: 220px;
  padding: 10px 12px;
  background: var(--surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  color: var(--text-primary, #f5f5f5);
  backdrop-filter: blur(8px);
}

.event-chart__tooltip[hidden] {
  display: none !important;
}

.event-chart__tooltip-time {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  font-weight: 500;
}

.event-chart__tooltip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  font-size: 12px;
}

.event-chart__tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-chart__tooltip-name {
  flex: 1;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-chart__tooltip-value {
  font-weight: 600;
  color: var(--text-primary, #f5f5f5);
  font-variant-numeric: tabular-nums;
}

.event-chart__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-tertiary, rgba(255, 255, 255, 0.4));
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}

.event-chart__empty[hidden] {
  display: none !important;
}

.event-chart__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.event-chart__foot-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary, #f5f5f5);
  font-weight: 500;
}

.event-chart__vol {
  font-weight: 600;
}

.event-chart__divider {
  width: 1.5px;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.event-chart__ranges {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-chart__range {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary, rgba(255, 255, 255, 0.55));
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.event-chart__range:hover {
  color: var(--text-primary, #f5f5f5);
}

.event-chart__range--active {
  color: var(--text-primary, #f5f5f5);
  background: rgba(60, 155, 244, 0.16);
}

@media (max-width: 960px) {
  .event-page__layout {
    grid-template-columns: 1fr;
  }

  .event-page__sidebar {
    position: static;
    order: -1;
  }

  .event-head__title {
    font-size: 22px;
  }
}
