:root {
  --bg: #050c0b;
  --panel: #071713;
  --panel-2: #0b1d19;
  --text: #eef2ff;
  --muted: #a7b8ae;
  --border: rgba(213, 236, 224, 0.14);
  --accent: #39d98a;
  --gold: #f2c14e;
  --danger: #fb7185;
  --event-participant-modal-z-index: 2400;
  --event-participant-side-width: 430px;
  --event-header-control-height: 38px;
  --event-header-control-font-size: 13px;
  --event-header-label-space: 14px;
}

/* На тач-устройствах (включая планшеты в портрете) поднимаем контролы шапки
   до порога 44px, чтобы по «День»/«Зал»/теме было удобно попадать пальцем. */
@media (pointer: coarse) {
  :root {
    --event-header-control-height: 44px;
  }
}

html[data-room-theme] {
  --panel-2: var(--panel2, #0b1d19);
}

* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

html[data-room-theme] body {
  background: var(--brand-page-watermark, none), var(--page-background, var(--bg));
}

html[data-room-theme] .event-participant-head,
html[data-room-theme] .event-broadcast-panel,
html[data-room-theme] .event-broadcast-standby,
html[data-room-theme] .event-module-column,
html[data-room-theme] .event-common-chat,
html[data-room-theme] .event-before-info-panel,
html[data-room-theme] .event-info-overlay-head,
html[data-room-theme] .event-participant-status,
html[data-room-theme] .event-info-image-lightbox-head,
html[data-room-theme] .event-legal-head,
html[data-room-theme] .event-entry-card {
  background: var(--panel-strong, var(--panel));
}

html[data-room-theme] .event-workspace,
html[data-room-theme] .event-broadcast-stage,
html[data-room-theme] .event-hall-empty,
html[data-room-theme] .event-info-overlay,
html[data-room-theme] .event-legal-overlay,
html[data-room-theme] .event-legal-frame,
html[data-room-theme] .event-info-image-lightbox {
  background: var(--bg);
}

html[data-room-theme] .event-broadcast-body,
html[data-room-theme] .event-info-image-lightbox-stage,
html[data-room-theme] .event-photo-lightbox-stage img {
  background: var(--bg-deep, var(--bg));
}

html[data-room-theme] .event-context-field select,
html[data-room-theme] .event-day-button,
html[data-room-theme] .event-module-select-label select,
html[data-room-theme] .event-info-select-filter select,
html[data-room-theme] .event-common-chat-form textarea,
html[data-room-theme] .event-info-feedback-question textarea {
  background: var(--input-bg, var(--panel-2));
  color: var(--text);
  border-color: var(--border);
}

html[data-room-theme] .event-announcement-ack,
html[data-room-theme] .event-empty-state-actions button,
html[data-room-theme] .event-photo-lightbox-download {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.42);
  background: var(--primary-bg, rgba(var(--room-accent-rgb, 57,217,138), 0.18));
  color: var(--primary-ink, #06100e);
}

html[data-room-theme] .event-announcement-ack:disabled {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

html[data-room-theme] .event-broadcast-mode-toggle,
html[data-room-theme] .event-push-toggle {
  border-color: rgba(var(--room-accent-2-rgb, 147,197,253), 0.34);
  background: rgba(var(--room-accent-2-rgb, 147,197,253), 0.12);
  color: var(--text);
}

html[data-room-theme] .event-chat-tabs button.active,
html[data-room-theme] .event-participant-tab-row > button.active {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.42);
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.16);
  color: var(--text);
}

html[data-room-theme] .event-chat-tab-icon,
html[data-room-theme] .event-hall-compact-index,
html[data-room-theme] .event-hall-menu-item-icon {
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.16);
  color: var(--accent);
}

html[data-room-theme] .event-chat-tabs button.active .event-chat-tab-icon {
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.24);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.event-participant-head {
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 23, 19, 0.96);
}

.event-participant-head h1 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.event-participant-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.event-participant-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.event-custom-domain-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: 180px;
  min-width: 0;
  min-height: 34px;
}

.event-custom-domain-brand.hidden {
  display: none;
}

.event-custom-domain-brand img {
  display: block;
  max-width: min(180px, 36vw);
  max-height: 38px;
  object-fit: contain;
}

.event-participant-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-context-field,
.event-module-select-label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
  text-transform: uppercase;
}

.event-context-field select,
.event-module-select-label select,
.event-day-button {
  min-width: 150px;
  min-height: var(--event-header-control-height);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1715;
  color: var(--text);
  padding: 7px 28px 7px 10px;
  font: inherit;
  font-size: var(--event-header-control-font-size);
  font-weight: var(--font-weight-display, 700);
  text-transform: none;
}

.event-day-chip {
  position: relative;
  min-width: 74px;
}

.event-day-button {
  min-width: 74px;
  justify-content: center;
  padding: 7px 10px;
  cursor: pointer;
}

.event-day-button[aria-expanded="true"] {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.46);
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.14);
}

.event-day-button.is-today {
  min-width: 128px;
  border-color: rgba(var(--room-warm-rgb, 242,193,78), 0.52);
  background: rgba(var(--room-warm-rgb, 242,193,78), 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(var(--room-warm-rgb, 242,193,78), 0.12);
}

.event-day-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0 !important;
  min-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.event-connection-status {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(242, 193, 78, 0.34);
  background: rgba(242, 193, 78, 0.12);
  color: #fef3c7;
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.35;
}

.event-connection-status[data-state="online"] {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.34);
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.12);
  color: #dfffee;
}

.event-connection-status[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
  color: #fee2e2;
}

/* Transient websocket reconnects are routine, so render them as a small, low-contrast pill
   instead of a loud full-width banner — present but easy to ignore. */
.event-connection-status[data-state="reconnecting"] {
  width: max-content;
  max-width: min(680px, calc(100% - 24px));
  margin: 0 auto 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted, #cbd5e1);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.82;
}

.event-common-chat-kicker,
.event-entry-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
}

.event-participant-code {
  min-width: 0;
  max-width: min(46vw, 520px);
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.event-title-overflow-hidden {
  min-width: 0;
}

.event-broadcast-mode-toggle,
.event-broadcast-picker-toggle,
.event-theme-toggle {
  width: auto;
  min-height: var(--event-header-control-height);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(57, 217, 138, 0.34);
  background: rgba(57, 217, 138, 0.14);
  color: #dfffee;
  padding: 7px 10px;
  font: inherit;
  font-size: var(--event-header-control-font-size);
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-theme-toggle {
  width: auto;
  min-width: 0;
  border-color: var(--border);
  background: #0b1715;
  color: var(--text);
}

.event-theme-toggle.active,
html[data-room-theme] .event-theme-toggle.active {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.46);
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.14);
}

.event-theme-toggle-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(213, 236, 224, 0.62);
}

.event-theme-toggle-swatch::after {
  display: none;
}

html[data-theme="light"] .event-theme-toggle-swatch {
  border-color: rgba(15, 23, 42, 0.28);
}

.event-theme-toggle-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-align: left;
  line-height: 1;
}

.event-theme-toggle-label {
  color: var(--text);
  font-size: var(--event-header-control-font-size);
  font-weight: var(--font-weight-display, 700);
  text-transform: none;
  white-space: nowrap;
}

/* Переключатель языка интерфейса (глобус в шапке участника) */
.event-lang-switch { position: relative; display: inline-flex; }
/* Пилюля-близнец кнопки «Стиль»: флаг + название текущего языка, та же высота/шрифт/паддинг. */
.event-lang-toggle {
  width: auto;
  min-height: var(--event-header-control-height);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 8px;
  border: 1px solid var(--border); background: #0b1715; color: var(--text);
  padding: 7px 10px; cursor: pointer; line-height: 1;
  font: inherit;
  font-size: var(--event-header-control-font-size);
  font-weight: var(--font-weight-display, 700);
}
.event-lang-toggle-flag { font-size: 18px; line-height: 1; }
.event-lang-toggle-label { color: var(--text); white-space: nowrap; line-height: 1; }
.event-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  min-width: 160px; padding: 6px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface, #0b1715);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 2px;
}
.event-lang-option {
  appearance: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  border: none; background: transparent; color: var(--text);
  font-size: 14px; font-weight: 600;
}
.event-lang-option:hover { background: rgba(255,255,255,.06); }
.event-lang-option.is-active { background: rgba(57,217,138,.16); color: #dfffee; }
.event-lang-option-flag { font-size: 18px; line-height: 1; }

.event-broadcast-mode-toggle {
  border-color: var(--border);
  background: #0b1715;
  color: var(--text);
}

html[data-room-theme] .event-broadcast-mode-toggle,
html[data-room-theme] .event-broadcast-picker-toggle,
html[data-room-theme] .event-theme-toggle,
html[data-room-theme] .event-lang-toggle {
  border-color: var(--border);
  background: var(--input-bg, var(--panel-2));
  color: var(--text);
}

.event-broadcast-mode-toggle[aria-pressed="true"],
html[data-room-theme] .event-broadcast-mode-toggle[aria-pressed="true"] {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.42);
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.12);
}

.event-participant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-participant-logo {
  --event-participant-logo-height: 50px;
  --event-participant-logo-width: var(--event-participant-logo-height);
  --event-participant-logo-max-width: min(150px, 24vw);
  width: min(var(--event-participant-logo-width), var(--event-participant-logo-max-width));
  height: var(--event-participant-logo-height);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(213, 236, 224, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.event-participant-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 861px) {
  .event-participant-head {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .event-participant-logo {
    order: -1;
  }

  .event-participant-head-left {
    order: 0;
    flex: 1 1 0;
    max-width: min(34vw, 420px);
  }

  .event-participant-head-left.event-participant-head-left-title-hidden {
    flex: 1 1 0;
    max-width: min(34vw, 420px);
  }

  .event-participant-context {
    order: 2;
    flex: 0 1 auto;
    margin-left: auto;
  }

  .event-participant-actions {
    order: 3;
    align-items: flex-start;
    flex: 0 0 auto;
    flex-wrap: wrap;
    padding-top: var(--event-header-label-space);
  }

  .event-participant-context.hidden + .event-participant-actions {
    margin-left: auto;
    padding-top: 0;
  }

  .event-theme-toggle {
    order: 4;
    align-self: flex-start;
    width: auto;
    min-width: 0;
  }

  .event-lang-switch {
    order: 4;
    align-self: flex-start;
    flex: 0 0 auto;
    margin-top: var(--event-header-label-space);
  }

  #eventHallField {
    flex: 0 1 280px;
  }

  #eventHallField select {
    width: clamp(170px, 20vw, 280px);
    max-width: 280px;
  }

  .event-day-chip {
    flex: 0 0 auto;
    width: auto;
    min-width: 76px;
  }

  .event-day-button {
    width: auto;
    min-width: 76px;
    max-width: 150px;
  }

  #eventDayButtonLabel {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .event-broadcast-mode-toggle,
  .event-broadcast-picker-toggle,
  .event-theme-toggle {
    flex: 0 0 auto;
    margin-top: var(--event-header-label-space);
    white-space: nowrap;
  }

  .event-participant-actions .event-broadcast-mode-toggle,
  .event-participant-actions .event-broadcast-picker-toggle {
    margin-top: 0;
  }
}

@media (min-width: 861px) and (max-width: 1320px) {
  .event-participant-head {
    gap: 8px;
    padding: 10px 12px;
  }

  .event-participant-head-left {
    max-width: min(28vw, 320px);
  }

  .event-participant-code {
    max-width: min(24vw, 300px);
    font-size: 14px;
  }

  .event-participant-actions {
    padding-top: calc(var(--event-header-label-space) + 1px);
  }

  #eventHallField {
    flex-basis: 232px;
  }

  #eventHallField select {
    width: clamp(154px, 18vw, 232px);
    max-width: 232px;
  }

  .event-context-field select,
  .event-module-select-label select,
  .event-day-button,
  .event-broadcast-mode-toggle,
  .event-broadcast-picker-toggle,
  .event-theme-toggle,
  .event-lang-toggle,
  .event-push-toggle {
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 12px;
  }

  .event-broadcast-mode-toggle {
    max-width: 166px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-broadcast-picker-toggle {
    max-width: 106px;
  }

  .event-theme-toggle {
    width: auto;
    min-width: 0;
  }
}

.event-push-toggle {
  width: auto;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(242, 193, 78, 0.38);
  background: rgba(242, 193, 78, 0.12);
  color: #fef3c7;
  padding: 9px 12px;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-push-toggle {
  border-color: rgba(147, 197, 253, 0.34);
  background: rgba(147, 197, 253, 0.12);
  color: #dbeafe;
}

.event-push-toggle.active,
.event-push-toggle[data-state="subscribed"] {
  border-color: rgba(57, 217, 138, 0.42);
  background: rgba(57, 217, 138, 0.16);
  color: #dfffee;
}

.event-push-toggle[data-state="busy"] {
  opacity: 0.72;
  cursor: progress;
}

.event-push-toggle[data-state="denied"],
.event-push-toggle:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.event-theme-toggle:focus-visible,
.event-lang-toggle:focus-visible,
.event-broadcast-picker-toggle:focus-visible,
.event-day-button:focus-visible,
.event-day-head button:focus-visible,
.event-day-option:focus-visible,
.event-theme-head button:focus-visible,
.event-theme-option:focus-visible,
.event-info-overlay-head button:focus-visible,
.event-info-back:focus-visible,
.event-info-room-filter button:focus-visible,
.event-info-launcher-tile:focus-visible {
  outline: 2px solid rgba(57, 217, 138, 0.72);
  outline-offset: 2px;
}

.event-organizer-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1604;
  font-size: 12px;
}

.event-participant-tabs {
  grid-row: 2;
  display: none;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 12, 11, 0.92);
}

.event-participant-tab-row {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.event-hall-compact-bar {
  display: none;
}

.event-participant-tabs[data-hall-nav-mode="compact"] {
  display: none;
  overflow: visible;
  padding: 8px;
}

.event-participant-tabs[data-hall-nav-mode="compact"] .event-hall-compact-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.event-participant-tabs[data-hall-nav-mode="compact"] .event-participant-tab-row {
  display: none;
}

.event-participant-tab-row > button {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 9px 12px;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-participant-tab-row > button::after {
  content: attr(data-hall-state-label);
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1;
}

.event-participant-tab-row > button[data-hall-state="live"]::after {
  color: #bbf7d0;
}

.event-phase-gate {
  min-height: 0;
  display: grid;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(57, 217, 138, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(242, 193, 78, 0.1), transparent 38%),
    var(--bg);
}

.event-phase-gate-card {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(213, 236, 224, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  transform-origin: center bottom;
  animation: event-phase-card-in 560ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.event-phase-gate-card.no-splash {
  min-height: 420px;
}

.event-phase-gate-card.is-before::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 64%);
  opacity: 0;
  pointer-events: none;
  animation: event-before-card-sheen 1200ms 220ms ease-out both;
}

.event-before-splash {
  position: absolute;
  inset: 0;
}

.event-before-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 11, 0.1), rgba(5, 12, 11, 0.72));
}

.event-before-splash img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  animation: event-before-splash-in 900ms ease-out both;
}

.event-phase-gate-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: grid;
  gap: 12px;
  padding: clamp(18px, 4vw, 44px);
  animation: event-phase-content-in 620ms 90ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.event-phase-gate-card.is-before .event-phase-gate-content {
  max-width: 820px;
  gap: 10px;
}

.event-phase-gate-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
}

.event-phase-gate-event-title {
  max-width: 680px;
  color: var(--text);
  font-size: 18px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.2;
}

.event-phase-gate-card.is-before .event-phase-gate-event-title,
.event-phase-gate-card.is-before h2 {
  width: fit-content;
  max-width: min(100%, 820px);
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 11, 0.62);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  overflow-wrap: anywhere;
}

.event-phase-gate-card.is-before .event-phase-gate-event-title {
  padding: 13px 15px;
  font-size: 46px;
  line-height: 1.04;
}

.event-phase-gate-card.is-before h2 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.event-phase-gate h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.event-phase-gate p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.event-before-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 112px));
  gap: 8px;
  margin-top: 4px;
}

.event-before-countdown span {
  position: relative;
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(5, 12, 11, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  animation: event-before-countdown-cell-in 480ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
  animation-delay: calc(150ms + (var(--event-countdown-index, 0) * 70ms));
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.event-before-countdown span::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57, 217, 138, 0.1), rgba(242, 193, 78, 0.7), rgba(57, 217, 138, 0.12));
  opacity: 0.64;
}

.event-before-countdown span[data-before-countdown-part="seconds"] {
  border-color: rgba(57, 217, 138, 0.38);
}

.event-before-countdown span.is-ticking {
  animation: event-before-countdown-tick 420ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.event-before-countdown b {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.event-before-countdown em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
}

.event-before-start-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.35;
}

.event-phase-gate-preview {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(242, 193, 78, 0.36);
  border-radius: 8px;
  color: #fef3c7;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
}

@keyframes event-phase-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes event-phase-content-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes event-before-splash-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes event-before-card-sheen {
  0% {
    opacity: 0;
    transform: translateX(-42%);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes event-before-countdown-cell-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes event-before-countdown-tick {
  0% {
    transform: translateY(0) scale(1);
    border-color: rgba(242, 193, 78, 0.28);
  }

  36% {
    transform: translateY(-3px) scale(1.025);
    border-color: rgba(242, 193, 78, 0.58);
  }

  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(242, 193, 78, 0.28);
  }
}

.event-participant-tab-row > button[data-hall-state="stream"]::after {
  color: #fef3c7;
}

.event-announcements {
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  padding: 14px;
}

.event-announcement-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 8px;
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.event-announcement-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #fef3c7;
  font-size: 11px;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
}

.event-announcement-meta time {
  color: var(--muted);
  text-transform: none;
}

.event-announcement-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.event-announcement-card p {
  margin: 0;
  color: #f8fafc;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.event-announcement-card a {
  width: fit-content;
  color: #bbf7d0;
  font-weight: var(--font-weight-display, 700);
  text-decoration: none;
}

@media (hover: hover) {
  .event-announcement-card a:hover {
    text-decoration: underline;
  }
}

.event-announcement-card.is-acknowledged {
  border-color: rgba(213, 236, 224, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.event-announcement-card.is-acknowledged .event-announcement-meta {
  color: var(--muted);
}

.event-announcement-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.event-announcement-ack {
  min-height: 44px;
  border: 1px solid rgba(57, 217, 138, 0.32);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.14);
  color: #dfffee;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-announcement-ack:disabled {
  border-color: rgba(213, 236, 224, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: default;
}

.event-participant-tab-row > button.active {
  color: #dfffee;
  border-color: rgba(57, 217, 138, 0.42);
  background: rgba(57, 217, 138, 0.16);
}

.event-hall-compact-current,
.event-hall-menu-toggle,
.event-hall-menu-head button,
.event-hall-menu-item {
  font: inherit;
  cursor: pointer;
}

.event-hall-compact-current {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid rgba(57, 217, 138, 0.4);
  background: rgba(57, 217, 138, 0.15);
  color: #dfffee;
  padding: 8px 10px;
  text-align: left;
}

.event-hall-compact-index,
.event-hall-menu-item-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.16);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
}

.event-hall-compact-copy,
.event-hall-menu-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.event-hall-compact-title,
.event-hall-menu-item-title {
  min-width: 0;
  overflow: hidden;
  color: #dfffee;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-hall-compact-meta,
.event-hall-menu-item-meta,
.event-hall-menu-item-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.1;
}

.event-hall-menu-toggle {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(242, 193, 78, 0.36);
  background: rgba(242, 193, 78, 0.12);
  color: #fef3c7;
  padding: 8px 10px;
  font-weight: var(--font-weight-display, 700);
}

.event-hall-menu-toggle-icon,
.event-hall-menu-toggle-icon::before,
.event-hall-menu-toggle-icon::after {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.event-hall-menu-toggle-icon {
  position: relative;
}

.event-hall-menu-toggle-icon::before,
.event-hall-menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.event-hall-menu-toggle-icon::before {
  top: -6px;
}

.event-hall-menu-toggle-icon::after {
  top: 6px;
}

.event-hall-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-items: end;
}

body.event-hall-menu-open {
  overflow: hidden;
}

.event-hall-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 12, 11, 0.62);
}

.event-hall-menu-sheet {
  position: relative;
  width: min(100%, 620px);
  max-height: min(72dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px), 620px);
  justify-self: center;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(213, 236, 224, 0.16);
  border-radius: 8px 8px 0 0;
  background: rgba(7, 23, 19, 0.99);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.38);
}

.event-hall-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.event-hall-menu-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.event-hall-menu-head button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 24px;
}

.event-hall-menu-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 10px 14px 14px;
}

.event-hall-menu-item {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(213, 236, 224, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

.event-hall-menu-item.active {
  border-color: rgba(57, 217, 138, 0.42);
  background: rgba(57, 217, 138, 0.16);
}

.event-hall-menu-item.no-stream {
  opacity: 0.78;
}

.event-hall-menu-item-state {
  max-width: 112px;
  overflow-wrap: anywhere;
  text-align: right;
}

.event-hall-compact-current:focus-visible,
.event-hall-menu-toggle:focus-visible,
.event-hall-menu-head button:focus-visible,
.event-hall-menu-item:focus-visible {
  outline: 2px solid rgba(57, 217, 138, 0.72);
  outline-offset: 2px;
}

.event-participant-shell {
  grid-row: 3;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--event-participant-side-width);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: var(--bg);
}

.event-participant-shell[data-side-panel="none"] {
  grid-template-columns: minmax(0, 1fr);
}

.event-participant-shell[data-layout="workspace"] {
  grid-template-columns: minmax(0, 1fr) var(--event-participant-side-width);
}

.event-participant-shell[data-layout="phase"] {
  grid-template-columns: minmax(0, 1fr);
}

.event-participant-shell[data-layout="phase"][data-side-panel="info"] {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.event-participant-shell[data-layout="phase"][data-side-panel="after"] {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
}

.event-broadcast-stage,
.event-workspace,
.event-module-column,
.event-module-slot,
.event-module-pool {
  min-height: 0;
}

.event-broadcast-stage {
  display: grid;
  background: var(--bg);
}

.event-participant-shell[data-layout="phase"] .event-broadcast-stage,
.event-participant-shell[data-layout="phase"] .event-workspace {
  display: none;
}

.event-participant-shell[data-layout="phase"][data-side-panel="after"] .event-workspace {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr);
}

.event-participant-shell[data-layout="phase"][data-side-panel="after"] [data-event-workspace-column="left"] {
  display: none;
}

.event-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: var(--bg);
}

.event-participant-shell[data-layout="workspace"] .event-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.event-participant-shell[data-layout="workspace"] [data-event-workspace-column="left"] {
  display: none;
}

.event-participant-shell[data-layout="stream"] [data-event-workspace-column="left"] {
  display: none;
}

.event-module-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid var(--border);
  background: rgba(7, 23, 19, 0.98);
}

.event-participant-shell[data-layout="workspace"] .event-module-column {
  border-left: 1px solid var(--border);
}

.event-participant-shell[data-layout="workspace"] .event-module-column + .event-module-column {
  border-left: 1px solid var(--border);
}

.event-module-column-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.event-common-chat.event-module-column {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.event-common-chat-head.event-module-column-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.event-module-column-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.event-module-slot {
  display: grid;
  overflow: hidden;
}

.event-broadcast-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  background: rgba(7, 23, 19, 0.96);
}

.event-broadcast-standby {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(57, 217, 138, 0.08), rgba(242, 193, 78, 0.06)),
    rgba(7, 23, 19, 0.96);
}

.event-broadcast-standby.hidden {
  display: none;
}

.event-broadcast-standby-inner {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(213, 236, 224, 0.16);
  border-radius: 8px;
  background: rgba(5, 12, 11, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.event-broadcast-standby-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 217, 138, 0.32);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.13);
  color: #bbf7d0;
}

.event-broadcast-standby-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-broadcast-standby-icon.has-logo {
  border-color: rgba(213, 236, 224, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.event-broadcast-standby-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-broadcast-standby-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.event-broadcast-standby h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.05;
}

.event-broadcast-standby p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.event-broadcast-standby-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-broadcast-standby-meta span {
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(213, 236, 224, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  overflow-wrap: anywhere;
}

.event-broadcast-standby-action {
  grid-column: 2;
  justify-self: start;
  min-height: 40px;
  border: 1px solid rgba(57, 217, 138, 0.42);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.16);
  color: #dfffee;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

@media (hover: hover) {
  .event-broadcast-standby-action:hover {
    background: rgba(57, 217, 138, 0.22);
  }
}

.event-broadcast-standby-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.event-broadcast-standby-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a5f;
  box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.55);
  animation: event-broadcast-standby-pulse 2s ease-out infinite;
}

@keyframes event-broadcast-standby-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .event-broadcast-standby-live-dot {
    animation: none;
  }
}

.event-broadcast-body {
  position: relative;
  min-height: 0;
  background: #020706;
}

.event-broadcast-body iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
}

.event-broadcast-body video.event-broadcast-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #020706;
  object-fit: contain;
}

.event-broadcast-body .event-broadcast-unmute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 12, 11, 0.72);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}

.event-broadcast-body .event-broadcast-unmute:hover {
  background: rgba(5, 12, 11, 0.86);
}

.event-broadcast-body .event-broadcast-unmute:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.event-broadcast-body .event-broadcast-unmute-icon {
  font-size: 19px;
}

.event-broadcast-body .event-broadcast-unmute.hidden {
  display: none;
}

.event-broadcast-body .event-broadcast-unavailable {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #020706;
  text-align: center;
}

.event-broadcast-body .event-broadcast-unavailable.hidden {
  display: none;
}

.event-broadcast-unavailable-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.92);
}

.event-broadcast-unavailable-title {
  font-size: 17px;
  font-weight: 700;
}

.event-broadcast-unavailable-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.event-broadcast-unavailable-retry {
  margin-top: 4px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.event-broadcast-unavailable-retry:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ——— Custom native-HLS player chrome (LIVE badge, logo, spinner, mute + fullscreen) ——— */
.event-player-chrome {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.event-player-chrome.hidden {
  display: none;
}

.event-player-topleft {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-player-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(5, 12, 11, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}

.event-player-viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 12, 11, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.event-player-viewers.hidden {
  display: none;
}

.event-player-viewers-eye {
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.event-player-viewers-eye svg {
  display: block;
}

.event-player-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55);
  animation: eventPlayerLivePulse 2s ease-out infinite;
}

.event-player-live.is-behind {
  background: rgba(5, 12, 11, 0.72);
  color: rgba(255, 255, 255, 0.82);
  text-transform: none;
  letter-spacing: 0;
}

.event-player-live.is-behind .event-player-live-dot {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  animation: none;
}

@keyframes eventPlayerLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.event-player-logo {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  max-width: 34%;
  pointer-events: none;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.event-player-logo.hidden {
  display: none;
}

.event-player-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 34px;
  object-fit: contain;
}

.event-player-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.event-player-spinner.hidden {
  display: none;
}

.event-player-spinner-ring {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: eventPlayerSpin 0.8s linear infinite;
}

@keyframes eventPlayerSpin {
  to { transform: rotate(360deg); }
}

.event-player-controls {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  display: inline-flex;
  gap: 8px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-broadcast-body.player-active .event-player-controls,
.event-player-controls:focus-within {
  opacity: 1;
  transform: none;
}

.event-player-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(5, 12, 11, 0.6);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}

.event-player-btn:hover {
  background: rgba(5, 12, 11, 0.8);
}

.event-player-btn:active {
  transform: scale(0.94);
}

.event-player-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.event-player-btn-icon {
  display: grid;
  place-items: center;
}

.event-player-btn-icon svg,
.event-broadcast-unmute-icon svg {
  display: block;
}

/* Volume: mute button + a slider that expands on hover (desktop only — touch devices,
   incl. iOS where video.volume is read-only, keep it collapsed and use the mute button). */
.event-player-volume {
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-player-volume-slider {
  width: 0;
  height: 4px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: width 0.18s ease, opacity 0.18s ease;
}

@media (hover: hover) {
  .event-player-volume:hover .event-player-volume-slider,
  .event-player-volume:focus-within .event-player-volume-slider {
    width: 74px;
    margin: 0 6px 0 2px;
    opacity: 1;
    pointer-events: auto;
  }
}

.event-player-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.event-player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.event-player-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.event-player-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.event-player-volume-slider:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .event-player-volume-slider { transition: none; }
  .event-player-live-dot { animation: none; }
  .event-player-spinner-ring { animation-duration: 1.4s; }
  .event-player-controls { transition: none; }
}

/* Narrow phones: keep the top-left LIVE badge and the top-right logo from crowding
   each other, and shrink the buttons a touch. */
@media (max-width: 380px) {
  .event-player-live {
    font-size: 11px;
    padding: 5px 10px 5px 8px;
  }
  .event-player-viewers {
    font-size: 11px;
    padding: 5px 9px;
  }
  .event-player-logo {
    max-width: 34%;
  }
  .event-player-logo img {
    max-height: 26px;
  }
  .event-player-btn {
    width: 38px;
    height: 38px;
  }
}

/* Docked BELOW the video (grid row 2 of .event-broadcast-panel) so it never
   covers the player's control bar / fullscreen button. Was an absolute
   bottom-right overlay that sat on top of the controls. */
.event-reaction-panel {
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 8px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) 10px;
  border-top: 1px solid var(--border, rgba(213, 236, 224, 0.14));
  background: transparent;
}

.event-reaction-panel.hidden {
  display: none;
}

.event-reaction-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 217, 138, 0.28);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.14);
  color: var(--text);
  padding: 0;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(3, 9, 8, 0.58);
}

html[data-room-theme] .event-reaction-button {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.34);
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.14);
}

.event-reaction-button.cooling {
  opacity: 0.56;
  cursor: wait;
}

.event-reaction-button.reaction-sent {
  animation: eventReactionSent 0.34s ease both;
}

/* Ambient audience counter chip in the reaction dock (shown only when reactions are peer-visible). */
.event-reaction-count {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-right: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--room-accent-rgb, 57, 217, 138), 0.28);
  background: rgba(var(--room-accent-rgb, 57, 217, 138), 0.12);
  color: var(--muted, #9fb7ad);
  font: 600 12px/1 var(--font-sans, inherit);
  white-space: nowrap;
}

.event-reaction-count:empty {
  display: none;
}

.event-broadcast-empty {
  display: grid;
  min-height: 0;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

@keyframes eventReactionSent {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

.event-hall-empty {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
}

.event-empty-state {
  min-width: 0;
  width: min(100%, 460px);
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: auto;
  padding: 18px;
  border: 1px dashed rgba(213, 236, 224, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: center;
  line-height: 1.42;
}

.event-empty-state strong {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.event-empty-state p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.event-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.event-empty-state-actions button {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(57, 217, 138, 0.28);
  background: rgba(57, 217, 138, 0.1);
  color: #dfffee;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-common-chat {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--border);
  background: rgba(7, 23, 19, 0.98);
}

.event-before-info-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: rgba(7, 23, 19, 0.98);
}

.event-before-info-head {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.event-before-info-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.event-before-info-panel .event-info-launcher-grid {
  grid-template-columns: 1fr;
  align-content: start;
  padding: 14px;
  overflow-y: auto;
}

.event-common-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.event-common-chat-head h2 {
  margin: 0;
  font-size: 16px;
}

.event-chat-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.event-chat-tabs {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  /* No horizontal scroll: tabs that do not fit collapse behind the «Ещё»
     button (priority+ pattern). overflow:visible keeps the corner badges
     (unread counts) from being clipped. */
  overflow: visible;
  padding: 2px;
}

.event-chat-tabs button,
.event-chat-label-toggle {
  position: relative;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.15;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.event-chat-tabs button .event-chat-tab-icon {
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

/* Gentle reveal when the full «Ещё» menu opens. */
.event-chat-nav[data-labels="expanded"] .event-chat-tabs button {
  animation: eventChatTabReveal 0.18s ease both;
}

@keyframes eventChatTabReveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .event-chat-tabs button,
  .event-chat-label-toggle,
  .event-chat-tabs button .event-chat-tab-icon {
    transition: none;
  }

  .event-chat-nav[data-labels="expanded"] .event-chat-tabs button {
    animation: none;
  }
}

.event-chat-tabs button {
  /* Square-ish icon chips so more tabs fit per row without shrinking the icon. */
  flex: 0 0 46px;
}

/* Priority+ overflow: tabs past the fold hide behind «Ещё» (compact only). */
.event-chat-nav[data-labels="compact"] .event-chat-tabs button.is-overflow {
  display: none;
}

/* «Ещё» only appears when it actually collapses something — when every icon
   fits the row (data-overflow="false") the control steps aside. */
.event-chat-nav[data-labels="compact"][data-overflow="false"] .event-chat-label-toggle {
  display: none;
}

.event-chat-label-toggle {
  grid-column: 2;
  grid-row: 1;
  width: 44px;
  flex: 0 0 auto;
  padding: 0;
}

/* «+N» count of tabs hidden behind «Ещё». */
.event-chat-more-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(213, 236, 224, 0.16);
  color: var(--text);
  font-size: 10px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
}

.event-chat-more-count.hidden {
  display: none;
}

/* When a hidden tab needs attention the count turns warm (matches has-update). */
.event-chat-label-toggle.has-update .event-chat-more-count {
  background: var(--gold);
  color: #1a1206;
}

html[data-room-theme] .event-chat-label-toggle.has-update .event-chat-more-count {
  background: rgb(var(--room-warm-rgb, 242, 193, 78));
  color: #1a1206;
}

/* «Ещё» / overflow control — horizontal ellipsis (•••). */
.event-chat-label-toggle-icon,
.event-chat-label-toggle-icon::before,
.event-chat-label-toggle-icon::after {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.event-chat-label-toggle-icon {
  position: relative;
}

.event-chat-label-toggle-icon::before,
.event-chat-label-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0;
}

.event-chat-label-toggle-icon::before {
  left: -7px;
}

.event-chat-label-toggle-icon::after {
  left: 7px;
}

.event-chat-tab-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.12);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
}

.event-chat-tab-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-chat-tab-label {
  min-width: 0;
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-chat-nav[data-labels="expanded"] {
  grid-template-columns: minmax(0, 1fr);
}

.event-chat-nav[data-labels="expanded"] .event-chat-label-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.event-chat-nav[data-labels="expanded"] .event-chat-tabs {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  overflow: visible;
}

.event-chat-nav[data-labels="expanded"] .event-chat-tabs button {
  justify-content: flex-start;
  padding: 7px 10px;
}

.event-chat-nav[data-labels="expanded"] .event-chat-tab-label {
  display: block;
}

/* Auto-fit: few tabs whose labels fit in one row — full names, no «Ещё». */
.event-chat-nav[data-labels="auto"] {
  grid-template-columns: minmax(0, 1fr);
}

.event-chat-nav[data-labels="auto"] .event-chat-label-toggle {
  display: none;
}

.event-chat-nav[data-labels="auto"] .event-chat-tabs {
  grid-column: 1;
  overflow: visible;
  flex-wrap: nowrap;
}

.event-chat-nav[data-labels="auto"] .event-chat-tabs button {
  flex: 0 0 auto;
  justify-content: center;
  padding: 7px 10px;
}

.event-chat-nav[data-labels="auto"] .event-chat-tab-label {
  display: block;
}

.event-chat-tabs .event-organizer-badge,
.event-chat-tabs .event-announcements-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
}

.event-chat-tabs button.active {
  border-color: rgba(57, 217, 138, 0.38);
  background: rgba(57, 217, 138, 0.14);
  color: #dfffee;
}

.event-chat-tabs button.active .event-chat-tab-icon {
  background: rgba(57, 217, 138, 0.22);
  color: #dfffee;
}

.event-chat-tabs button.is-locked {
  border-color: rgba(213, 236, 224, 0.1);
}

.event-chat-tabs button.is-locked .event-chat-tab-icon {
  opacity: 0.72;
}

.event-chat-tabs button.has-update::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.12);
}

.event-chat-label-toggle.has-update {
  border-color: rgba(242, 193, 78, 0.58);
  background: rgba(242, 193, 78, 0.16);
  color: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.12), 0 0 0 3px rgba(242, 193, 78, 0.08);
}

.event-chat-label-toggle.has-update::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.14);
}

html[data-room-theme] .event-chat-label-toggle.has-update {
  border-color: rgba(var(--room-warm-rgb, 242,193,78), 0.58);
  background: rgba(var(--room-warm-rgb, 242,193,78), 0.16);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(var(--room-warm-rgb, 242,193,78), 0.12), 0 0 0 3px rgba(var(--room-warm-rgb, 242,193,78), 0.08);
}

html[data-room-theme] .event-chat-label-toggle.has-update::after {
  background: rgb(var(--room-warm-rgb, 242,193,78));
  box-shadow: 0 0 0 3px rgba(var(--room-warm-rgb, 242,193,78), 0.14);
}

.event-chat-tabs button.is-interactive-attention {
  border-color: rgba(242, 193, 78, 0.58);
  background: rgba(242, 193, 78, 0.15);
  color: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.16), 0 0 0 3px rgba(242, 193, 78, 0.08);
}

.event-chat-tabs button.is-interactive-attention .event-chat-tab-icon {
  background: rgba(242, 193, 78, 0.22);
  color: #fef3c7;
}

.event-chat-tabs button:focus-visible,
.event-chat-label-toggle:focus-visible {
  outline: 2px solid rgba(57, 217, 138, 0.72);
  outline-offset: 2px;
}

.event-module-tooltip {
  position: fixed;
  z-index: calc(var(--event-participant-modal-z-index) + 20);
  max-width: min(220px, calc(100vw - 16px));
  padding: 6px 9px;
  border: 1px solid rgba(213, 236, 224, 0.18);
  border-radius: 8px;
  background: rgba(5, 12, 11, 0.96);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

html[data-room-theme] .event-module-tooltip {
  background: var(--panel-strong, var(--panel));
  color: var(--text);
}

.event-chat-panel {
  min-height: 0;
  display: none;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.event-chat-panel.active {
  display: grid;
}

.event-info-module-panel,
.event-announcements-panel,
.event-interactive-panel {
  grid-template-rows: minmax(0, 1fr);
}

.event-interactive-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.event-info-module-body {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.event-info-module-body .event-info-detail {
  max-width: none;
  margin: 0;
}

.event-interactive-hall-switcher {
  min-width: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.026);
}

.event-interactive-hall-switcher.hidden {
  display: none;
}

.event-interactive-hall-switcher button {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 220px;
  min-height: 42px;
  display: grid;
  gap: 2px;
  justify-items: start;
  border: 1px solid rgba(213, 236, 224, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
  line-height: 1.15;
  cursor: pointer;
}

.event-interactive-hall-switcher button.active {
  border-color: var(--room-accent-border-strong, rgba(57, 217, 138, 0.38));
  background: var(--primary-bg, rgba(57, 217, 138, 0.14));
  color: var(--primary-ink, #dfffee);
}

.event-interactive-hall-switcher span,
.event-interactive-hall-switcher small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-interactive-hall-switcher span {
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
}

.event-interactive-hall-switcher small {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-heavy, 700);
}

.event-interactive-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: var(--bg);
}

.event-question-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.event-question-target {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.026);
}

.event-question-target label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
}

.event-question-target select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1715;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  text-transform: none;
}

.event-question-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.event-chat-scroll-wrap {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.event-common-chat-list {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 12px 14px 16px;
  overscroll-behavior: contain;
}

.event-common-chat-list > :first-child {
  margin-top: 0;
}

.event-chat-empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
}

/* Разделитель дней в ленте общего чата */
.event-chat-day {
  align-self: center;
  margin: 14px 0 4px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: var(--font-weight-heavy, 700);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Пилюля «↓ N новых» — возврат к свежим сообщениям */
.event-chat-jump {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(213, 236, 224, 0.16);
  border-radius: 999px;
  background: rgba(14, 26, 23, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.event-chat-jump:hover {
  transform: translateY(-1px);
}

.event-chat-jump.hidden {
  display: none;
}

.event-chat-jump-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  margin-top: -3px;
}

.event-chat-jump-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #06100e;
  font-size: 12px;
  line-height: 1;
}

.event-chat-jump-count.hidden {
  display: none;
}

.demo-read-only-note {
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px dashed rgba(213, 236, 224, 0.28);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  text-align: center;
}

/* Сообщение = ряд «аватар + пузырь», как в мессенджере */
.event-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
  max-width: 100%;
}

.event-chat-row.is-grouped {
  margin-top: 3px;
}

.event-chat-day + .event-chat-row {
  margin-top: 6px;
}

.event-chat-row.mine {
  flex-direction: row-reverse;
}

.event-chat-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(var(--avatar-hue, 150) 42% 46%);
  color: #fff;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
  user-select: none;
}

/* Сгруппированные сообщения выравниваются под первым — место под аватар сохраняем */
.event-chat-row.is-grouped .event-chat-avatar {
  visibility: hidden;
  height: 0;
}

.event-chat-row.mine .event-chat-avatar {
  display: none;
}

.event-chat-bubble {
  min-width: 0;
  max-width: min(78%, 560px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 11px 6px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-radius: 14px;
  border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.event-chat-row.is-grouped .event-chat-bubble {
  border-top-left-radius: 8px;
}

.event-chat-row.mine .event-chat-bubble {
  border-color: rgba(57, 217, 138, 0.28);
  background: rgba(57, 217, 138, 0.12);
  border-radius: 14px;
  border-bottom-right-radius: 5px;
}

.event-chat-row.mine.is-grouped .event-chat-bubble {
  border-top-right-radius: 8px;
}

.event-chat-row.pending .event-chat-bubble {
  border-color: rgba(242, 193, 78, 0.4);
  background: rgba(242, 193, 78, 0.08);
}

.event-chat-author {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: var(--font-weight-heavy, 700);
  overflow-wrap: anywhere;
}

.event-chat-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.36;
  font-size: 14.5px;
}

.event-chat-text .event-chat-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-chat-message-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
}

.event-chat-time {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.event-chat-pending-tag {
  color: rgba(242, 193, 78, 0.95);
  font-size: 11px;
  font-weight: var(--font-weight-heavy, 700);
}

/* Кнопка «Перевести» и блок перевода под текстом сообщения */
.event-chat-translate-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-heavy, 700);
  cursor: pointer;
  white-space: nowrap;
}
.event-chat-translate-btn:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.event-chat-translation {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.36;
  font-size: 14.5px;
}
.event-chat-translation-loading {
  color: var(--muted);
  font-size: 13px;
}
html[data-theme="light"] .event-chat-translation {
  border-top-color: rgba(0, 0, 0, 0.12);
}

/* Эмодзи-реакции под пузырём */
.event-chat-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.event-chat-row.mine .event-chat-reactions {
  justify-content: flex-end;
}

.event-chat-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(213, 236, 224, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.event-chat-reaction-chip:active {
  transform: scale(0.94);
}

.event-chat-reaction-emoji {
  font-size: 13px;
}

.event-chat-reaction-count {
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-heavy, 700);
}

.event-chat-reaction-chip.is-mine {
  border-color: rgba(57, 217, 138, 0.5);
  background: rgba(57, 217, 138, 0.16);
  color: var(--accent);
}

.event-chat-reaction-add {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(213, 236, 224, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.12s ease;
}

.event-chat-reaction-add::before {
  content: "☺";
  font-size: 15px;
  line-height: 1;
}

.event-chat-reaction-add:hover,
.event-chat-reaction-add:focus-visible {
  opacity: 1;
}

.event-chat-reactions.is-empty .event-chat-reaction-add {
  opacity: 0.42;
}

@media (pointer: coarse) {
  .event-chat-reaction-add {
    width: 26px;
    height: 26px;
    opacity: 0.72;
  }
  .event-chat-reactions.is-empty .event-chat-reaction-add {
    opacity: 0.55;
  }
}

/* Всплывающий пикер реакций (position: fixed, координаты из JS) */
.event-chat-reaction-picker {
  position: fixed;
  z-index: 60;
  display: flex;
  gap: 2px;
  padding: 5px 6px;
  border: 1px solid var(--border-strong, rgba(213, 236, 224, 0.24));
  border-radius: 999px;
  background: rgba(12, 24, 21, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(8px);
}

.event-chat-reaction-picker.hidden {
  display: none;
}

.event-chat-reaction-option {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}

.event-chat-reaction-option:hover,
.event-chat-reaction-option:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.18);
}

.event-organizer-load-older,
.event-chat-load-older {
  align-self: center;
  display: block;
  margin: 0 auto 8px;
  padding: 6px 14px;
  border: 1px solid rgba(213, 236, 224, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.event-organizer-load-older:disabled,
.event-chat-load-older:disabled {
  opacity: 0.6;
  cursor: default;
}

.event-organizer-receipt {
  align-self: flex-end;
  margin-top: -4px;
  color: var(--muted);
  font-size: 11px;
}

.event-organizer-receipt.is-read {
  color: rgba(57, 217, 138, 0.95);
}

/* ── Личный чат с организатором: редизайн ── */
.event-organizer-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.event-organizer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(var(--room-accent-rgb, 57, 217, 138), 0.06);
}

.event-organizer-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--accent);
  background: rgba(var(--room-accent-rgb, 57, 217, 138), 0.14);
}

.event-organizer-head-icon svg {
  width: 20px;
  height: 20px;
}

.event-organizer-head-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.event-organizer-head-title {
  font-weight: var(--font-weight-heavy, 700);
  font-size: 14px;
  line-height: 1.2;
}

.event-organizer-head-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.event-organizer-messages {
  gap: 8px;
}

.event-organizer-msg {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  overflow-wrap: anywhere;
}

.event-organizer-msg.theirs {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.event-organizer-msg.mine {
  align-self: flex-end;
  border-color: rgba(var(--room-accent-rgb, 57, 217, 138), 0.32);
  background: rgba(var(--room-accent-rgb, 57, 217, 138), 0.1);
  border-bottom-right-radius: 5px;
}

.event-organizer-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.event-organizer-msg.mine .event-organizer-msg-meta {
  justify-content: flex-end;
}

.event-organizer-msg-from {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--font-weight-heavy, 700);
  color: var(--accent);
}

.event-organizer-msg-from svg {
  width: 12px;
  height: 12px;
}

.event-organizer-msg-time {
  opacity: 0.85;
}

.event-organizer-msg-text {
  white-space: pre-wrap;
  line-height: 1.35;
}

.event-organizer-starter {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  padding: 8px 6px;
  text-align: center;
}

.event-organizer-starter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--accent);
  background: rgba(var(--room-accent-rgb, 57, 217, 138), 0.12);
}

.event-organizer-starter-icon svg {
  width: 28px;
  height: 28px;
}

.event-organizer-starter-title {
  font-weight: var(--font-weight-heavy, 700);
  font-size: 15px;
}

.event-organizer-starter-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.event-organizer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.event-organizer-chip {
  padding: 7px 12px;
  border: 1px solid rgba(213, 236, 224, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.event-organizer-chip:hover,
.event-organizer-chip:focus-visible {
  border-color: rgba(var(--room-accent-rgb, 57, 217, 138), 0.5);
  background: rgba(var(--room-accent-rgb, 57, 217, 138), 0.1);
}

.event-organizer-msg-image {
  align-self: flex-start;
  margin: 2px 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: zoom-in;
  line-height: 0;
  max-width: 100%;
}

.event-organizer-msg-image img {
  display: block;
  max-width: min(240px, 100%);
  max-height: 280px;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(213, 236, 224, 0.12);
}

#eventOrganizerForm {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.event-organizer-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.event-organizer-attach svg {
  width: 20px;
  height: 20px;
}

.event-organizer-attach:hover,
.event-organizer-attach:focus-visible {
  color: var(--accent);
  border-color: rgba(var(--room-accent-rgb, 57, 217, 138), 0.5);
}

.event-question-score {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 34px;
  margin-top: 4px;
}

.event-question-score button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(213, 236, 224, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
  cursor: pointer;
}

@media (pointer: coarse) {
  .event-question-score button {
    width: 44px;
    height: 44px;
  }
}

.event-question-score button.active {
  border-color: rgba(57, 217, 138, 0.45);
  background: rgba(57, 217, 138, 0.18);
  color: var(--accent);
}

.event-question-score button:disabled {
  cursor: default;
  opacity: 0.58;
}

.event-question-score strong {
  min-width: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.11);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.event-common-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}

.event-common-chat-form textarea {
  width: 100%;
  min-height: 36px;
  max-height: 132px;
  resize: none;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1715;
  color: var(--text);
  padding: 7px 9px;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
}

.event-common-chat-form button,
.event-entry-submit {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #06100e;
  padding: 10px 14px;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-common-chat-form button.of-send-icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.event-common-chat-form .of-send-icon-button .of-send-arrow-icon {
  width: 20px;
  height: 20px;
}

.event-common-chat-form button:disabled {
  background: rgba(18, 38, 34, 0.86);
  color: rgba(213, 236, 224, 0.62);
  cursor: not-allowed;
}

.event-common-chat-status {
  min-height: 24px;
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 12px;
}

.event-photo-panel {
  position: relative;
  grid-template-rows: auto minmax(0, 1fr);
}

.event-networking-panel {
  grid-template-rows: minmax(0, 1fr);
}

.event-networking-root {
  min-height: 0;
  overflow: auto;
  background: #050c0b;
}

.event-networking-view {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.event-networking-section,
.event-networking-person,
.event-networking-request {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.event-networking-person.best {
  border-color: rgba(57, 217, 138, 0.3);
  background: linear-gradient(135deg, rgba(57, 217, 138, 0.1), rgba(242, 193, 78, 0.055));
}

.event-networking-head,
.event-networking-person-top {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.event-networking-person-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.event-networking-title,
.event-networking-name {
  color: var(--text);
  font-size: 16px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.event-networking-title {
  font-size: 18px;
}

.event-networking-note,
.event-networking-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-networking-form,
.event-networking-people,
.event-networking-requests,
.event-networking-meetings,
.event-networking-match-lines,
.event-networking-sendbox,
.event-networking-hints {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.event-networking-profile-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-networking-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.event-networking-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
}

.event-networking-field textarea,
.event-networking-field input,
.event-networking-people-tools input,
.event-networking-people-tools select,
.event-networking-compose textarea,
.event-networking-compose select,
.event-networking-compose input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1715;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}

.event-networking-field textarea,
.event-networking-compose textarea {
  min-height: 62px;
  resize: vertical;
}

.event-networking-chips {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.event-networking-chip,
.event-networking-section button,
.event-networking-request-actions button,
.event-networking-meeting-actions button,
.event-networking-safety-actions button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(213, 236, 224, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: #d5ece0;
  padding: 7px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-networking-chip {
  max-width: 100%;
  border-radius: 999px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.event-networking-chip.selected,
.event-networking-segment button.active {
  border-color: rgba(57, 217, 138, 0.42);
  background: rgba(57, 217, 138, 0.16);
  color: #dfffee;
}

.event-networking-section button.primary,
.event-networking-request-actions button.primary,
.event-networking-meeting-actions button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #06100e;
}

.event-networking-section button:disabled,
.event-networking-request-actions button:disabled,
.event-networking-meeting-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.event-networking-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.35;
}

.event-networking-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--accent);
}

.event-networking-actions,
.event-networking-request-actions,
.event-networking-meeting-actions,
.event-networking-safety-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.event-networking-actions {
  justify-content: space-between;
}

.event-networking-safety-actions button.selected {
  border-color: rgba(57, 217, 138, 0.34);
  background: rgba(57, 217, 138, 0.13);
  color: #dcfce7;
}

.event-networking-report-form {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.event-networking-report-field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #bbf7d0;
}

.event-networking-report-field select,
.event-networking-report-field textarea {
  width: 100%;
  box-sizing: border-box;
}

.event-networking-report-field textarea {
  min-height: 58px;
  resize: vertical;
}

.event-networking-report-error {
  color: #fca5a5;
  font-size: 12px;
}

.event-networking-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

html[data-theme="light"] .event-networking-report-form {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .event-networking-report-field {
  color: #334155;
}

.event-networking-status {
  min-height: 18px;
  color: #bbf7d0;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.35;
}

.event-networking-status.error {
  color: #fecaca;
}

.event-networking-empty,
.event-networking-moderation-notice,
.event-networking-hint,
.event-networking-match-line,
.event-networking-textbox,
.event-networking-contact,
.event-networking-meeting-card,
.event-networking-schedule-warning {
  min-width: 0;
  border-radius: 8px;
  padding: 9px 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-networking-empty {
  border: 1px dashed rgba(213, 236, 224, 0.16);
  color: var(--muted);
  text-align: center;
}

.event-networking-moderation-notice,
.event-networking-hint,
.event-networking-schedule-warning {
  border: 1px solid rgba(242, 193, 78, 0.22);
  background: rgba(242, 193, 78, 0.1);
  color: #fef3c7;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
}

.event-networking-match-line,
.event-networking-textbox {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.045);
  color: #d5ece0;
  font-size: 13px;
}

.event-networking-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-networking-textbox strong {
  display: block;
  margin-bottom: 4px;
  color: #d5ece0;
}

.event-networking-contact {
  border: 1px solid rgba(57, 217, 138, 0.2);
  background: rgba(57, 217, 138, 0.11);
  color: #dcfce7;
  font-size: 13px;
}

.event-networking-contact.muted {
  border-color: rgba(213, 236, 224, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.event-networking-match-summary {
  border-color: rgba(57, 217, 138, 0.24);
  background: rgba(57, 217, 138, 0.1);
}

.event-networking-people-tools {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.42fr);
  gap: 8px;
}

.event-networking-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  font-size: 22px;
}

.event-networking-avatar img,
.event-networking-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-networking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 150px;
  border: 1px solid rgba(57, 217, 138, 0.24);
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.13);
  color: #bbf7d0;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.1;
  text-align: center;
}

.event-networking-segment {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.event-networking-segment button {
  flex: 1 1 0;
}

.event-networking-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.44fr);
  gap: 8px;
  align-items: start;
}

.event-networking-meeting-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(57, 217, 138, 0.2);
  background: rgba(57, 217, 138, 0.08);
}

.event-networking-meeting-card.attention {
  border-color: rgba(242, 193, 78, 0.34);
  background: rgba(242, 193, 78, 0.08);
}

.event-networking-meeting-card.done {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
}

.event-networking-meeting-card.is-cancelled {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.08);
  opacity: 0.72;
}

.event-networking-photo-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.event-networking-photo-preview {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  color: #d5ece0;
  font-size: 30px;
}

.event-networking-photo-pending-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 0;
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.62);
  color: #ffd98a;
}

.event-networking-photo-body,
.event-networking-photo-actions {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.event-networking-photo-actions {
  display: flex;
  flex-wrap: wrap;
}

.event-networking-photo-title {
  color: #d5ece0;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
}

.event-photo-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  min-height: 46px;
  border-bottom: 1px solid var(--border);
}

.event-photo-count {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  color: var(--muted);
}

.event-photo-sort {
  flex: none;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.event-photo-sort[hidden] {
  display: none;
}

.event-photo-sort button {
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.event-photo-sort button.is-active {
  color: #06100e;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.event-photo-new-pill {
  position: absolute;
  top: 58px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  color: #06100e;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.event-photo-new-pill.hidden {
  display: none;
}

.event-photo-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  align-content: start;
  gap: 6px;
  overflow: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.event-photo-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #050c0b;
}

.event-photo-card.is-pending {
  outline: 1px dashed rgba(240, 200, 120, 0.6);
  outline-offset: -1px;
}

.event-photo-card-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.event-photo-card-open img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050c0b;
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .event-photo-card-open:hover img {
    transform: scale(1.05);
  }
}

.event-photo-card-open:focus-visible {
  outline: 2px solid rgba(57, 217, 138, 0.85);
  outline-offset: -2px;
}

.event-photo-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 16px 8px 6px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.event-photo-card-author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  color: #fff;
}

.event-photo-card-time {
  flex: none;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.event-photo-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--font-weight-display, 700);
  color: #1c1205;
  background: linear-gradient(135deg, #ffd98a, #f0b74a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-photo-like {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 9px 4px 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
  color: #fff;
  background: rgba(6, 12, 11, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.event-photo-like:disabled {
  cursor: default;
}

.event-photo-like.is-busy {
  opacity: 0.6;
  cursor: progress;
}

.event-photo-like-heart::before {
  content: '\2661';
  font-size: 15px;
}

.event-photo-like.is-liked {
  color: #ff6b81;
  background: rgba(6, 12, 11, 0.72);
}

.event-photo-like.is-liked .event-photo-like-heart::before {
  content: '\2665';
}

.event-photo-like-count:empty {
  display: none;
}

@media (hover: hover) {
  .event-photo-like:not(:disabled):hover {
    background: rgba(6, 12, 11, 0.8);
  }
}

.event-photo-like:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 1px;
}

.event-photo-add {
  background: rgba(57, 217, 138, 0.08);
}

.event-photo-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 8px;
  border: 1px dashed rgba(57, 217, 138, 0.5);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-photo-add-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(57, 217, 138, 0.16);
}

.event-photo-add-icon::before {
  content: '+';
  font-size: 26px;
  line-height: 1;
}

.event-photo-add-label {
  text-align: center;
}

@media (hover: hover) {
  .event-photo-add-btn:hover {
    background: rgba(57, 217, 138, 0.12);
  }
}

.event-photo-add-btn:focus-visible {
  outline: 2px solid rgba(57, 217, 138, 0.85);
  outline-offset: -2px;
}

.event-photo-empty-hint {
  grid-column: 1 / -1;
  align-self: center;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 13px;
}

.event-participant-status {
  grid-row: 4;
  min-height: 24px;
  padding: 6px 14px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(5, 12, 11, 0.95);
}

.event-participant-status:empty {
  display: none;
}

.event-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #050c0b;
  color: var(--text);
}

body.event-info-overlay-open {
  overflow: hidden;
}

.event-info-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 23, 19, 0.98);
}

.event-info-overlay-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.event-info-overlay-head button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.event-info-overlay-body {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.event-info-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #050c0b;
  color: var(--text);
}

body.event-info-image-lightbox-open {
  overflow: hidden;
}

.event-info-image-lightbox-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 23, 19, 0.98);
}

.event-info-image-lightbox-head > div:first-child {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-info-image-lightbox-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.event-info-image-lightbox-actions button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
  cursor: pointer;
}

.event-info-image-lightbox-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

.event-info-image-lightbox-stage {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 14px;
  background: #020706;
}

.event-info-image-lightbox-stage img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #020807;
}

.event-theme-overlay,
.event-day-overlay {
  position: fixed;
  inset: 0;
  z-index: 66;
  display: grid;
  place-items: start end;
  padding: calc(68px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(5, 12, 11, 0.34);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.event-theme-overlay-open,
body.event-day-overlay-open {
  overflow: hidden;
}

.event-theme-backdrop,
.event-day-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.event-theme-sheet,
.event-day-sheet {
  position: relative;
  z-index: 1;
  width: min(calc(100dvw - 28px), 420px);
  max-height: calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong, var(--panel));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.event-day-sheet {
  width: min(calc(100dvw - 28px), 340px);
}

.event-theme-head,
.event-day-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.event-theme-head h2,
.event-day-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.15;
}

.event-theme-head button,
.event-day-head button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.event-theme-options,
.event-day-options {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 12px;
}

.event-theme-option,
.event-day-option {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.event-day-option {
  grid-template-columns: minmax(58px, auto) minmax(0, 1fr) auto;
}

.event-theme-option.active,
.event-day-option.active {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.48);
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.13);
}

.event-theme-option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.event-theme-option-copy b,
.event-theme-option-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-theme-option-copy b {
  font-size: 14px;
  line-height: 1.15;
}

.event-theme-option-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-heavy, 700);
}

.event-day-option-date {
  color: var(--text);
  font-size: 16px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
}

.event-day-option-title {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-day-option-today {
  border: 1px solid rgba(var(--room-warm-rgb, 242,193,78), 0.42);
  border-radius: 999px;
  background: rgba(var(--room-warm-rgb, 242,193,78), 0.13);
  color: #fef3c7;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
}

.event-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  background: rgba(5, 12, 11, 0.98);
  color: var(--text);
}

body.event-photo-lightbox-open {
  overflow: hidden;
}

.event-photo-lightbox-head {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-photo-lightbox-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  overflow-wrap: anywhere;
}

.event-photo-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-photo-lightbox-download {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(57, 217, 138, 0.32);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.14);
  color: #dfffee;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  text-decoration: none;
}

.event-photo-lightbox-head button,
.event-photo-lightbox-nav {
  border: 1px solid rgba(213, 236, 224, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-photo-lightbox-head button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.event-photo-lightbox-nav {
  align-self: center;
  width: 54px;
  height: 84px;
  justify-self: center;
  font-size: 48px;
  line-height: 1;
}

.event-photo-lightbox-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}

.event-photo-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  background: #020706;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  transform-origin: center center;
  touch-action: none;
  will-change: transform;
}

.event-photo-lightbox.is-zoomed .event-photo-lightbox-stage img {
  cursor: grab;
  border-radius: 4px;
}

.event-photo-lightbox-thumbs {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 2px;
}

.event-photo-lightbox-thumb {
  width: 78px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  cursor: pointer;
}

.event-photo-lightbox-thumb.active {
  border-color: var(--gold);
}

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

.event-info-launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
  align-content: start;
}

.event-info-launcher-tile {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-rows: 44px calc(1.15em * 2);
  justify-items: center;
  align-content: center;
  gap: 9px;
  border: 1px solid rgba(213, 236, 224, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

@media (hover: hover) {
  .event-info-launcher-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(213, 236, 224, 0.24);
    background: rgba(255, 255, 255, 0.075);
  }
}

.event-info-launcher-tile span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(57, 217, 138, 0.14);
  color: #dfffee;
  font-size: 20px;
}

.event-info-launcher-tile span svg {
  width: 22px;
  height: 22px;
  display: block;
}

.event-info-launcher-tile b {
  max-width: 100%;
  min-height: calc(1.15em * 2);
  max-height: calc(1.15em * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.15;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}

.event-info-launcher-tile[data-info-kind="program"] span,
.event-info-detail-icon[data-info-kind="program"] {
  background: rgba(57, 217, 138, 0.16);
  color: #bbf7d0;
}

.event-info-launcher-tile[data-info-kind="speakers"] span,
.event-info-detail-icon[data-info-kind="speakers"] {
  background: rgba(196, 181, 253, 0.16);
  color: #ddd6fe;
}

.event-info-launcher-tile[data-info-kind="faq"] span,
.event-info-detail-icon[data-info-kind="faq"] {
  background: rgba(242, 193, 78, 0.18);
  color: #fef3c7;
}

.event-info-launcher-tile[data-info-kind="files"] span,
.event-info-detail-icon[data-info-kind="files"] {
  background: rgba(147, 197, 253, 0.16);
  color: #bfdbfe;
}

.event-info-launcher-tile[data-info-kind="image"] span,
.event-info-detail-icon[data-info-kind="image"] {
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}

.event-info-launcher-tile[data-info-kind="links"] span,
.event-info-detail-icon[data-info-kind="links"] {
  background: rgba(125, 211, 252, 0.14);
  color: #bae6fd;
}

.event-info-launcher-tile[data-info-kind="table"] span,
.event-info-detail-icon[data-info-kind="table"] {
  background: rgba(203, 213, 225, 0.14);
  color: #e2e8f0;
}

.event-info-launcher-tile[data-info-kind="feedback"] span,
.event-info-detail-icon[data-info-kind="feedback"] {
  background: rgba(45, 212, 191, 0.16);
  color: #ccfbf1;
}

.event-info-detail {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 760px;
  margin: 0 auto;
}

.event-info-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-info-detail-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-info-detail-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.14);
  color: #dfffee;
  font-size: 16px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
}

.event-info-detail-head h3 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.event-info-back {
  width: auto;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
}

.event-info-room-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.event-info-room-filter button {
  width: auto;
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-info-room-filter button[data-today] {
  border-color: rgba(57, 217, 138, 0.32);
  color: var(--text);
}

.event-info-select-filter option[data-today] {
  color: var(--text);
  font-weight: var(--font-weight-display, 700);
}

.event-info-room-filter button.active {
  border-color: rgba(57, 217, 138, 0.42);
  background: rgba(57, 217, 138, 0.16);
  color: #dfffee;
}

.event-info-select-filter {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.event-info-select-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
}

.event-info-select-filter select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
}

.event-info-program-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.event-info-program-search label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.event-info-program-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
}

.event-info-program-search input,
.event-info-program-search button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
}

.event-info-program-search button {
  width: auto;
  cursor: pointer;
}

.event-info-program-search button:disabled {
  opacity: 0.45;
  cursor: default;
}

.event-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.event-info-cards.has-featured-first .event-info-card.is-featured {
  grid-column: 1 / -1;
  max-width: min(100%, 360px);
  justify-self: center;
}

.event-info-cards .event-info-card {
  grid-template-rows: auto calc(1.25em * 2);
  align-content: start;
}

.event-info-card,
.event-info-link,
.event-info-detail details {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.event-info-card img,
.event-info-card-image-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 8px;
  background: rgba(5, 12, 11, 0.72);
  object-fit: contain;
}

.event-info-card.is-featured img,
.event-info-card.is-featured .event-info-card-image-empty {
  aspect-ratio: 16 / 9;
}

.event-info-cards .event-info-card > b {
  min-width: 0;
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfffee;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.event-info-cards .event-info-card > b > a,
.event-info-cards .event-info-card > b > span {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: inherit;
  font: inherit;
  overflow: hidden;
}

.event-info-cards .event-info-card > b a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(57, 217, 138, 0.45);
  text-underline-offset: 3px;
}

.event-info-card.is-current {
  border-color: rgba(var(--room-accent-rgb, 57,217,138), 0.42);
  background: linear-gradient(135deg, rgba(var(--room-accent-rgb, 57,217,138), 0.16), rgba(var(--room-warm-rgb, 242,193,78), 0.08));
  box-shadow: inset 0 0 0 1px rgba(var(--room-accent-rgb, 57,217,138), 0.14);
}

.event-info-card.is-highlighted {
  border-color: rgba(242, 193, 78, 0.52);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.14), rgba(57, 217, 138, 0.08));
  box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.16);
}

.event-info-card b,
.event-info-card em,
.event-info-card span,
.event-info-detail summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  font-style: normal;
}

.event-info-card.is-current b em {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.18);
  color: var(--text);
  font-size: 10px;
  text-transform: uppercase;
}

.event-info-card strong {
  overflow-wrap: anywhere;
}

.event-info-program-title-link {
  width: auto;
  min-width: 0;
  min-height: 0;
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dfffee;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(57, 217, 138, 0.45);
  text-underline-offset: 3px;
  box-shadow: none;
}

.event-info-program-title-link:hover,
.event-info-program-title-link:focus-visible {
  color: #bbf7d0;
  transform: none;
}

.event-info-card p,
.event-info-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.event-info-speaker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-info-speaker-link {
  width: auto;
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid rgba(57, 217, 138, 0.28);
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.1);
  color: #dfffee;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  box-shadow: none;
}

.event-info-speaker {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.event-info-speaker img,
.event-info-avatar {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(57, 217, 138, 0.14);
}

.event-info-avatar {
  display: grid;
  place-items: center;
  color: #dfffee;
  font-weight: var(--font-weight-display, 700);
}

.event-info-speaker > strong,
.event-info-speaker > b,
.event-info-speaker > em,
.event-info-speaker > span:not(.event-info-avatar),
.event-info-speaker > a,
.event-info-speaker > p {
  grid-column: 2;
}

.event-info-speaker em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: var(--font-weight-display, 700);
}

.event-info-link {
  color: #dfffee;
  text-decoration: none;
}

.event-info-link span {
  color: var(--muted);
  font-size: 12px;
}

.event-info-contact-list {
  display: grid;
  gap: 8px;
}

.event-info-contact-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.event-info-contact-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.event-info-contact-copy strong {
  color: #dfffee;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.event-info-contact-copy b,
.event-info-contact-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.event-info-contact-link {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 217, 138, 0.28);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.1);
  color: #dfffee;
  text-decoration: none;
}

.event-info-contact-link.telegram {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

.event-info-contact-link.max {
  border-color: rgba(129, 140, 248, 0.38);
  background: rgba(129, 140, 248, 0.14);
  color: #e0e7ff;
}

.event-info-contact-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-info-contact-link.telegram svg {
  fill: currentColor;
  stroke-width: 1.2;
}

.event-info-contact-link .contact-link-wordmark {
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0;
}

.event-info-image {
  width: 100%;
  max-height: min(70dvh, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));
  object-fit: contain;
  border-radius: 8px;
  background: #020807;
  cursor: zoom-in;
}

.event-info-table {
  overflow-x: auto;
}

.event-info-table table {
  width: 100%;
  min-width: 360px;
  border-collapse: separate;
  border-spacing: 0;
}

.event-info-table th,
.event-info-table td {
  min-width: 110px;
  padding: 10px 11px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-left-width: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.event-info-table th:first-child,
.event-info-table td:first-child {
  border-left-width: 1px;
}

.event-info-table th:first-child {
  border-top-left-radius: 8px;
}

.event-info-table th:last-child {
  border-top-right-radius: 8px;
}

.event-info-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.event-info-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.event-info-table th {
  background: rgba(var(--room-accent-rgb, 57,217,138), 0.12);
  color: #dfffee;
  font-weight: var(--font-weight-display, 700);
}

.event-info-empty {
  padding: 18px;
  border: 1px dashed rgba(213, 236, 224, 0.16);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.event-info-feedback-form,
.event-info-feedback-questions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.event-info-feedback-question {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.event-info-feedback-question legend {
  padding: 0;
  color: #dfffee;
  font-size: 14px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.event-info-feedback-required {
  margin-left: 4px;
  color: #fca5a5;
}

.event-info-feedback-stars,
.event-info-feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.event-info-feedback-star,
.event-info-feedback-option {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(213, 236, 224, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfffee;
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
}

.event-info-feedback-star input,
.event-info-feedback-option input {
  margin: 0;
  accent-color: #39d98a;
}

.event-info-feedback-star span {
  color: #fef3c7;
  font-size: 18px;
  line-height: 1;
}

.event-info-feedback-star em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.event-info-feedback-question textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(213, 236, 224, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfffee;
  padding: 8px 9px;
  font: inherit;
  font-size: 14px;
}

.event-info-feedback-submit {
  justify-self: start;
  width: auto;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
}

.event-info-feedback-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.35;
}

.event-info-feedback-status[data-status="success"] {
  color: #bbf7d0;
}

.event-info-feedback-status[data-status="error"] {
  color: #fecaca;
}

.event-entry-modal {
  position: fixed;
  inset: 0;
  z-index: var(--event-participant-modal-z-index, 2400);
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 12, 11, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  isolation: isolate;
  overscroll-behavior: contain;
}

.event-entry-card {
  position: relative;
  width: min(calc(100dvw - 32px), 520px);
  max-height: min(92dvh, calc(100dvh - env(safe-area-inset-bottom) - 16px));
  overflow: auto;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(213, 236, 224, 0.18);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.event-entry-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.event-entry-card h2 {
  margin: 4px 46px 0 0;
  font-size: 24px;
}

.event-entry-fields {
  display: grid;
  gap: 12px;
}

.event-entry-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 8px;
  background: rgba(242, 193, 78, 0.1);
  color: #fef3c7;
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.45;
}

.event-entry-custom-text {
  white-space: pre-wrap;
}

.event-entry-divider {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
}

.event-entry-account-note {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(57, 217, 138, 0.28);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.08);
  color: var(--text);
  font-size: 14px;
}

.event-entry-account-note div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-entry-account-note a {
  color: #9df2c5;
  font-weight: var(--font-weight-heavy, 700);
  text-decoration: none;
}

.event-entry-field {
  display: grid;
  gap: 7px;
}

.event-entry-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
}

.event-entry-field input,
.event-entry-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1715;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

.event-entry-multiselect {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-entry-multiselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.event-entry-multiselect-option:has(input:checked) {
  border-color: rgba(57, 217, 138, 0.4);
  background: rgba(57, 217, 138, 0.06);
}

.event-entry-multiselect-option input[type="checkbox"] {
  width: auto;
  min-height: auto;
  flex-shrink: 0;
  accent-color: #39d98a;
}

.event-entry-multiselect-option span {
  color: var(--text);
  font-size: 14px;
}

.event-avatar-picker {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-avatar-picker-summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b1715;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.event-avatar-picker-summary::-webkit-details-marker {
  display: none;
}

.event-avatar-picker-summary::marker {
  content: "";
}

.event-avatar-picker-current {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 217, 138, 0.24);
  border-radius: 8px;
  background: rgba(57, 217, 138, 0.14);
  font-size: 24px;
  line-height: 1;
}

.event-avatar-picker-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.event-avatar-picker-label {
  font-weight: var(--font-weight-display, 700);
  overflow-wrap: anywhere;
}

.event-avatar-picker-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-heavy, 700);
}

.event-avatar-picker-chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.event-avatar-picker[open] .event-avatar-picker-chevron {
  transform: rotate(180deg);
}

.event-avatar-picker-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(213, 236, 224, 0.14);
  border-radius: 8px;
  background: rgba(7, 23, 19, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.event-avatar-picker-tools {
  display: flex;
  justify-content: flex-end;
}

.event-avatar-random {
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 193, 78, 0.3);
  border-radius: 8px;
  background: rgba(242, 193, 78, 0.12);
  color: #fef3c7;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: 224px;
  overflow: auto;
  padding-right: 2px;
}

.event-avatar-grid[aria-invalid="true"] {
  padding: 6px;
  border: 1px solid var(--danger);
  border-radius: 8px;
}

.event-avatar-grid button {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.event-avatar-grid button.active {
  border-color: rgba(57, 217, 138, 0.5);
  background: rgba(57, 217, 138, 0.16);
}

.event-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.45;
}

.event-policy input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--accent);
}

.event-policy-body {
  display: inline;
}

.event-policy-link {
  appearance: none;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: var(--font-weight-heavy, 700);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.event-policy-link:hover,
.event-policy-link:focus-visible {
  text-decoration: none;
}

.event-legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #050c0b;
  color: var(--text);
}

body.event-legal-overlay-open {
  overflow: hidden;
}

.event-legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 23, 19, 0.98);
}

.event-legal-head h2 {
  margin: 0;
  font-size: 20px;
}

.event-legal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.event-legal-frame {
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050c0b;
}

.event-entry-field-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.event-entry-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: var(--font-weight-heavy, 700);
}

.event-entry-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.event-entry-secondary {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 9px 12px;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

@media (hover: hover) {
  .event-entry-secondary:hover {
    border-color: rgba(213, 236, 224, 0.32);
    background: rgba(255, 255, 255, 0.08);
  }
}

html[data-room-theme="light"] {
  --event-light-accent-rgb: 37, 99, 235;
  --event-light-border-rgb: 24, 39, 75;
  --event-light-card-bg: rgba(255, 255, 255, 0.9);
  --event-light-card-bg-strong: #fff;
  --event-light-border: rgba(var(--event-light-border-rgb), 0.14);
  --event-light-border-strong: rgba(var(--event-light-border-rgb), 0.22);
  --event-light-accent: #1d4ed8;
  --event-light-accent-bg: rgba(var(--event-light-accent-rgb), 0.12);
  --event-light-accent-border: rgba(var(--event-light-accent-rgb), 0.28);
  --event-light-green: #166534;
  --event-light-green-bg: rgba(22, 101, 52, 0.12);
  --event-light-warm: #92400e;
  --event-light-warm-bg: rgba(217, 119, 6, 0.12);
  --event-light-red: #b42318;
  --event-light-red-bg: rgba(220, 38, 38, 0.1);
  --event-light-cyan: #0e7490;
  --event-light-purple: #6d28d9;
  --event-light-teal: #0f766e;
  --event-light-slate: #475569;
}

html[data-room-theme="paper"] {
  --event-light-accent-rgb: 194, 65, 12;
  --event-light-border-rgb: 60, 50, 35;
  --event-light-card-bg: rgba(255, 253, 248, 0.92);
  --event-light-card-bg-strong: #fffdf8;
  --event-light-border: rgba(var(--event-light-border-rgb), 0.14);
  --event-light-border-strong: rgba(var(--event-light-border-rgb), 0.22);
  --event-light-accent: #9a3412;
  --event-light-accent-bg: rgba(var(--event-light-accent-rgb), 0.12);
  --event-light-accent-border: rgba(var(--event-light-accent-rgb), 0.28);
  --event-light-green: #166534;
  --event-light-green-bg: rgba(22, 101, 52, 0.12);
  --event-light-warm: #92400e;
  --event-light-warm-bg: rgba(217, 119, 6, 0.12);
  --event-light-red: #b42318;
  --event-light-red-bg: rgba(220, 38, 38, 0.1);
  --event-light-cyan: #0e7490;
  --event-light-purple: #6d28d9;
  --event-light-teal: #0f766e;
  --event-light-slate: #475569;
}

html[data-room-theme="slate"] {
  --event-light-accent-rgb: 79, 70, 229;
  --event-light-border-rgb: 30, 41, 59;
  --event-light-card-bg: rgba(255, 255, 255, 0.92);
  --event-light-card-bg-strong: #fff;
  --event-light-border: rgba(var(--event-light-border-rgb), 0.14);
  --event-light-border-strong: rgba(var(--event-light-border-rgb), 0.22);
  --event-light-accent: #4338ca;
  --event-light-accent-bg: rgba(var(--event-light-accent-rgb), 0.12);
  --event-light-accent-border: rgba(var(--event-light-accent-rgb), 0.28);
  --event-light-green: #166534;
  --event-light-green-bg: rgba(22, 101, 52, 0.12);
  --event-light-warm: #92400e;
  --event-light-warm-bg: rgba(217, 119, 6, 0.12);
  --event-light-red: #b42318;
  --event-light-red-bg: rgba(220, 38, 38, 0.1);
  --event-light-cyan: #0e7490;
  --event-light-purple: #6d28d9;
  --event-light-teal: #0f766e;
  --event-light-slate: #475569;
}

html[data-theme="light"] .event-participant-tabs,
html[data-theme="light"] .event-interactive-hall-switcher,
html[data-theme="light"] .event-question-target,
html[data-theme="light"] .event-photo-tools {
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .event-broadcast-mode-toggle,
html[data-theme="light"] .event-broadcast-picker-toggle,
html[data-theme="light"] .event-chat-tabs button.active,
html[data-theme="light"] .event-participant-tab-row > button.active,
html[data-theme="light"] .event-hall-compact-current {
  border-color: var(--event-light-accent-border);
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-phase-gate-preview,
html[data-theme="light"] .event-participant-tab-row > button[data-hall-state="stream"]::after,
html[data-theme="light"] .event-day-option-today {
  border-color: rgba(217, 119, 6, 0.28);
  background: var(--event-light-warm-bg);
  color: var(--event-light-warm);
}

html[data-theme="light"] .event-push-toggle,
html[data-theme="light"] .event-broadcast-mode-toggle[aria-pressed="true"],
html[data-theme="light"] .event-broadcast-picker-toggle[aria-expanded="true"] {
  border-color: rgba(var(--event-light-accent-rgb), 0.24);
  background: rgba(var(--event-light-accent-rgb), 0.1);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-push-toggle.active,
html[data-theme="light"] .event-push-toggle[data-state="subscribed"],
html[data-theme="light"] .event-connection-status[data-state="online"] {
  border-color: rgba(22, 101, 52, 0.28);
  background: var(--event-light-green-bg);
  color: var(--event-light-green);
}

html[data-theme="light"] .event-connection-status,
html[data-theme="light"] .event-announcement-card,
html[data-theme="light"] .event-networking-moderation-notice,
html[data-theme="light"] .event-networking-hint,
html[data-theme="light"] .event-networking-schedule-warning,
html[data-theme="light"] .event-entry-note {
  border-color: rgba(217, 119, 6, 0.28);
  background: var(--event-light-warm-bg);
  color: var(--event-light-warm);
}

html[data-theme="light"] .event-connection-status[data-state="error"] {
  border-color: rgba(180, 35, 24, 0.3);
  background: var(--event-light-red-bg);
  color: var(--event-light-red);
}

html[data-theme="light"] .event-connection-status[data-state="reconnecting"] {
  border-color: rgba(71, 85, 105, 0.22);
  background: rgba(71, 85, 105, 0.08);
  color: var(--event-light-slate, #475569);
}

html[data-theme="light"] .event-hall-compact-index,
html[data-theme="light"] .event-hall-menu-item-icon,
html[data-theme="light"] .event-chat-tab-icon,
html[data-theme="light"] .event-chat-tabs button.active .event-chat-tab-icon {
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-chat-tabs button.is-interactive-attention,
html[data-theme="light"] .event-chat-label-toggle.has-update,
html[data-theme="light"] .event-chat-tabs button.is-interactive-attention .event-chat-tab-icon {
  border-color: rgba(217, 119, 6, 0.32);
  background: var(--event-light-warm-bg);
  color: var(--event-light-warm);
}

html[data-theme="light"] .event-announcement-card p,
html[data-theme="light"] .event-networking-section button,
html[data-theme="light"] .event-networking-request-actions button,
html[data-theme="light"] .event-networking-meeting-actions button,
html[data-theme="light"] .event-networking-safety-actions button,
html[data-theme="light"] .event-networking-chip,
html[data-theme="light"] .event-networking-match-line,
html[data-theme="light"] .event-networking-textbox,
html[data-theme="light"] .event-networking-textbox strong,
html[data-theme="light"] .event-networking-photo-title,
html[data-theme="light"] .event-networking-photo-preview,
html[data-theme="light"] .event-entry-secondary {
  color: var(--text);
}

html[data-theme="light"] .event-announcement-meta,
html[data-theme="light"] .event-announcement-card a {
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-common-chat-form button,
html[data-theme="light"] .event-entry-submit,
html[data-theme="light"] .event-networking-section button.primary,
html[data-theme="light"] .event-networking-request-actions button.primary,
html[data-theme="light"] .event-networking-meeting-actions button.primary,
html[data-theme="light"] .event-photo-sort {
  background: rgba(24, 39, 75, 0.08);
}

html[data-theme="light"] .event-photo-sort button {
  color: var(--event-light-slate);
}

html[data-theme="light"] .event-announcement-card.is-acknowledged,
html[data-theme="light"] .event-networking-section,
html[data-theme="light"] .event-networking-person,
html[data-theme="light"] .event-networking-request,
html[data-theme="light"] .event-networking-match-line,
html[data-theme="light"] .event-networking-textbox,
html[data-theme="light"] .event-networking-photo-card,
html[data-theme="light"] .event-photo-card,
html[data-theme="light"] .event-entry-multiselect-option,
html[data-theme="light"] .event-policy {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg);
}

html[data-theme="light"] .event-networking-root {
  background: var(--bg);
}

html[data-theme="light"] .event-networking-person.best,
html[data-theme="light"] .event-networking-match-summary,
html[data-theme="light"] .event-networking-contact,
html[data-theme="light"] .event-networking-meeting-card {
  border-color: rgba(22, 101, 52, 0.24);
  background: var(--event-light-green-bg);
  color: var(--event-light-green);
}

html[data-theme="light"] .event-networking-chip.selected,
html[data-theme="light"] .event-networking-segment button.active,
html[data-theme="light"] .event-networking-safety-actions button.selected,
html[data-theme="light"] .event-entry-multiselect-option:has(input:checked),
html[data-theme="light"] .event-avatar-grid button.active {
  border-color: rgba(var(--event-light-accent-rgb), 0.3);
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-networking-status,
html[data-theme="light"] .event-networking-badge {
  color: var(--event-light-green);
}

html[data-theme="light"] .event-networking-status.error {
  color: var(--event-light-red);
}

html[data-theme="light"] .event-networking-segment,
html[data-theme="light"] .event-avatar-picker-summary,
html[data-theme="light"] .event-avatar-picker-popover,
html[data-theme="light"] .event-avatar-grid button {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-avatar-random {
  border-color: rgba(217, 119, 6, 0.3);
  background: var(--event-light-warm-bg);
  color: var(--event-light-warm);
}

html[data-theme="light"] .event-entry-account-note a {
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-info-launcher-tile,
html[data-theme="light"] .event-info-card,
html[data-theme="light"] .event-info-link,
html[data-theme="light"] .event-info-detail details,
html[data-theme="light"] .event-info-contact-row,
html[data-theme="light"] .event-info-feedback-question,
html[data-theme="light"] .event-info-feedback-star,
html[data-theme="light"] .event-info-feedback-option {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-chat-bubble {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-chat-row.mine .event-chat-bubble {
  border-color: rgba(22, 101, 52, 0.24);
  background: var(--event-light-green-bg);
}

html[data-theme="light"] .event-chat-row.pending .event-chat-bubble {
  border-color: rgba(217, 119, 6, 0.34);
  background: var(--event-light-warm-bg);
}

html[data-theme="light"] .event-chat-author,
html[data-theme="light"] .event-chat-text .event-chat-link {
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-chat-pending-tag {
  color: var(--event-light-warm);
}

html[data-theme="light"] .event-chat-reaction-chip {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-chat-reaction-chip.is-mine {
  border-color: rgba(22, 101, 52, 0.32);
  background: var(--event-light-green-bg);
  color: var(--event-light-green);
}

html[data-theme="light"] .event-chat-reaction-add {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg);
  color: var(--event-light-slate);
}

html[data-theme="light"] .event-chat-reaction-picker {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .event-chat-reaction-option:hover,
html[data-theme="light"] .event-chat-reaction-option:focus-visible {
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .event-chat-day,
html[data-theme="light"] .event-chat-jump {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
  color: var(--event-light-slate);
}

html[data-theme="light"] .event-chat-jump {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .event-info-launcher-tile:hover,
html[data-theme="light"] .event-info-card.is-current,
html[data-theme="light"] .event-info-card.is-highlighted,
html[data-theme="light"] .event-info-feedback-option:has(input:checked),
html[data-theme="light"] .event-info-feedback-star:has(input:checked) {
  border-color: rgba(var(--event-light-accent-rgb), 0.3);
  background: var(--event-light-accent-bg);
}

html[data-theme="light"] .event-info-launcher-tile span,
html[data-theme="light"] .event-info-detail-icon,
html[data-theme="light"] .event-info-avatar {
  border: 1px solid rgba(var(--event-light-accent-rgb), 0.16);
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="program"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="program"] {
  border-color: rgba(22, 101, 52, 0.18);
  background: var(--event-light-green-bg);
  color: var(--event-light-green);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="speakers"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="speakers"] {
  border-color: rgba(109, 40, 217, 0.18);
  background: rgba(109, 40, 217, 0.11);
  color: var(--event-light-purple);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="faq"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="faq"] {
  border-color: rgba(217, 119, 6, 0.2);
  background: var(--event-light-warm-bg);
  color: var(--event-light-warm);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="files"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="files"] {
  border-color: rgba(var(--event-light-accent-rgb), 0.18);
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="image"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="image"] {
  border-color: rgba(180, 35, 24, 0.18);
  background: var(--event-light-red-bg);
  color: var(--event-light-red);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="links"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="links"] {
  border-color: rgba(14, 116, 144, 0.18);
  background: rgba(14, 116, 144, 0.1);
  color: var(--event-light-cyan);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="table"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="table"] {
  border-color: rgba(71, 85, 105, 0.18);
  background: rgba(71, 85, 105, 0.1);
  color: var(--event-light-slate);
}

html[data-theme="light"] .event-info-launcher-tile[data-info-kind="feedback"] span,
html[data-theme="light"] .event-info-detail-icon[data-info-kind="feedback"] {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.1);
  color: var(--event-light-teal);
}

html[data-theme="light"] .event-info-cards .event-info-card > b,
html[data-theme="light"] .event-info-program-title-link,
html[data-theme="light"] .event-info-link,
html[data-theme="light"] .event-info-contact-copy strong,
html[data-theme="light"] .event-info-feedback-question legend,
html[data-theme="light"] .event-info-feedback-option,
html[data-theme="light"] .event-info-feedback-question textarea,
html[data-theme="light"] .event-info-speaker-link,
html[data-theme="light"] .event-info-contact-link {
  color: var(--text);
}

html[data-theme="light"] .event-info-program-title-link,
html[data-theme="light"] .event-info-cards .event-info-card > b a {
  text-decoration-color: rgba(var(--event-light-accent-rgb), 0.45);
}

html[data-theme="light"] .event-info-program-title-link:hover,
html[data-theme="light"] .event-info-program-title-link:focus-visible {
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-info-speaker-link,
html[data-theme="light"] .event-info-contact-link {
  border-color: rgba(var(--event-light-accent-rgb), 0.22);
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-info-contact-link.telegram {
  border-color: rgba(14, 116, 144, 0.26);
  background: rgba(14, 116, 144, 0.11);
  color: var(--event-light-cyan);
}

html[data-theme="light"] .event-info-contact-link.max {
  border-color: rgba(109, 40, 217, 0.24);
  background: rgba(109, 40, 217, 0.11);
  color: var(--event-light-purple);
}

html[data-theme="light"] .event-info-table th,
html[data-theme="light"] .event-info-table td {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
  color: var(--text);
}

html[data-theme="light"] .event-info-table th {
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}

html[data-theme="light"] .event-info-feedback-star,
html[data-theme="light"] .event-info-feedback-star em {
  color: var(--text);
}

html[data-theme="light"] .event-info-feedback-star span {
  color: var(--event-light-warm);
}

html[data-theme="light"] .event-info-feedback-required,
html[data-theme="light"] .event-info-feedback-status[data-status="error"] {
  color: var(--event-light-red);
}

html[data-theme="light"] .event-info-feedback-status[data-status="success"] {
  color: var(--event-light-green);
}

html[data-theme="light"] .event-info-feedback-question textarea {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-info-empty,
html[data-theme="light"] .event-networking-empty {
  border-color: rgba(var(--event-light-border-rgb), 0.18);
  background: rgba(255, 255, 255, 0.64);
}

html[data-theme="light"] .event-participant-status {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 860px) {
  body {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .event-participant-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title theme"
      "actions actions";
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  body.event-participant-has-logo .event-participant-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo title theme"
      "actions actions actions";
  }

  /* Когда глобус активен — вставляем колонку lang сразу перед «Стиль» (theme).
     Через :has() → на событиях без модуля (глобус .hidden) сетка не меняется. */
  .event-participant-head:has(.event-lang-switch:not(.hidden)) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "title lang theme"
      "actions actions actions";
  }

  body.event-participant-has-logo .event-participant-head:has(.event-lang-switch:not(.hidden)) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "logo title lang theme"
      "actions actions actions actions";
  }

  .event-lang-switch {
    grid-area: lang;
    align-self: center;
    margin-top: 0;
  }

  .event-participant-head-left {
    grid-area: title;
    min-width: 0;
  }

  .event-participant-code {
    max-width: 100%;
    font-size: 16px;
  }

  .event-participant-actions {
    grid-area: actions;
    width: 100%;
    min-width: 0;
    display: flex;
    flex: none;
    /* wrap вместо nowrap: при достатке места ряд тот же, но на узких экранах
       второстепенные кнопки переносятся, а не обрезаются. */
    flex-wrap: wrap;
    gap: 6px;
  }

  .event-participant-logo {
    grid-area: logo;
    --event-participant-logo-height: 34px;
    --event-participant-logo-max-width: min(120px, 32vw);
  }

  .event-broadcast-mode-toggle,
  .event-broadcast-picker-toggle,
  .event-theme-toggle,
  .event-lang-toggle,
  .event-push-toggle {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .event-theme-toggle {
    grid-area: theme;
    width: auto;
    min-width: 0;
    margin-top: 0;
  }

  .event-theme-toggle-copy {
    display: inline-flex;
  }

  .event-participant-actions > button {
    min-width: 0;
    justify-content: center;
  }

  .event-broadcast-mode-toggle {
    flex: 1 1 auto;
    font-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .event-broadcast-mode-toggle::before {
    content: "Показать эфир";
    font-size: 12px;
  }

  body[data-event-participant-layout="stream"] .event-broadcast-mode-toggle::before {
    content: "Скрыть эфир";
  }

  .event-broadcast-picker-toggle {
    flex: 0 0 auto;
    min-width: 84px;
  }

  .event-participant-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-participant-shell[data-layout="workspace"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-participant-shell[data-layout="workspace"] .event-broadcast-stage {
    display: none;
  }

  .event-participant-shell[data-layout="stream"] {
    grid-template-rows: auto minmax(0, 1fr);
    overflow: auto;
  }

  .event-participant-shell[data-layout="stream"] .event-broadcast-stage {
    grid-column: 1;
    grid-row: 1;
    align-content: start;
  }

  .event-participant-shell[data-layout="stream"] .event-broadcast-panel {
    width: 100%;
    grid-template-rows: minmax(0, 1fr);
  }

  .event-participant-shell[data-layout="stream"] .event-broadcast-body {
    display: grid;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }

  .event-participant-shell[data-layout="stream"] .event-broadcast-body iframe,
  .event-participant-shell[data-layout="stream"] .event-broadcast-body video.event-broadcast-video {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .event-participant-shell[data-layout="stream"] .event-reaction-panel {
    gap: 5px;
    padding: 6px 8px;
  }

  .event-participant-context {
    display: none;
  }

  /* Селект залов на мобильном не нужен — залы переключаются в «Интерактиве»/табах.
     Но чип дня живёт ТОЛЬКО в шапке, поэтому его оставляем доступным. */
  #eventHallField {
    display: none;
  }

  body:not([data-event-hall-nav-mode="compact"]) .event-participant-context.event-participant-context-has-day {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, auto);
    justify-content: start;
  }

  body[data-event-hall-nav-mode="compact"] #eventHallField {
    display: grid;
  }

  body[data-event-hall-nav-mode="compact"] .event-participant-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .event-context-field select {
    min-width: 0;
    width: 100%;
    min-height: 44px;
  }

  .event-day-chip {
    min-width: 0;
  }

  .event-day-button {
    min-width: 0;
    width: auto;
    min-width: 88px;
    min-height: 44px;
  }

  .event-photo-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 6px;
    padding: 10px;
  }

  .event-photo-lightbox-nav {
    width: 44px;
    height: 68px;
    font-size: 38px;
  }

  .event-photo-lightbox-thumb {
    width: 64px;
    height: 48px;
  }

  .event-workspace,
  .event-participant-shell[data-layout="workspace"] .event-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .event-participant-shell[data-layout="workspace"] [data-event-workspace-column="left"] {
    display: none !important;
  }

  .event-participant-shell[data-layout="phase"][data-side-panel="after"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(320px, 0.82fr) minmax(360px, 1fr);
    overflow: auto;
  }

  .event-participant-shell[data-layout="phase"][data-side-panel="after"] .event-workspace {
    grid-column: 1;
    grid-row: 2;
    min-height: 360px;
  }

  .event-participant-shell[data-layout="stream"] .event-workspace {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
  }

  .event-participant-shell[data-layout="stream"] [data-event-workspace-column="left"] {
    display: none !important;
  }

  .event-before-info-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .event-common-chat {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    height: min(84dvh, 700px);
    max-height: calc(100dvh - 74px);
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    transform: translateY(calc(100% - 62px));
    transition: transform 0.2s ease;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
  }

  .event-participant-shell[data-layout="stream"] .event-common-chat,
  .event-participant-shell[data-layout="workspace"] .event-common-chat,
  .event-participant-shell[data-layout="phase"] .event-common-chat {
    position: relative;
    inset: auto;
    z-index: auto;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border-top: 0;
    transform: none;
    transition: none;
    box-shadow: none;
  }

  .event-common-chat.event-module-column {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .event-common-chat-head.event-module-column-head {
    display: none;
  }

  .event-participant-shell[data-layout="stream"] .event-common-chat-head.event-module-column-head,
  .event-participant-shell[data-layout="workspace"] .event-common-chat-head.event-module-column-head,
  .event-participant-shell[data-layout="phase"] .event-common-chat-head.event-module-column-head {
    display: none;
  }

  .event-chat-nav {
    padding: 8px 10px;
    position: relative;
  }

  .event-chat-tabs {
    display: flex;
    gap: 6px;
    /* No scroll on mobile either — overflow tabs collapse into «Ещё». */
    overflow: visible;
    padding: 2px;
  }

  .event-chat-nav[data-labels="expanded"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-chat-nav[data-labels="expanded"] .event-chat-label-toggle {
    justify-self: start;
  }

  .event-chat-tabs button {
    flex: 0 0 48px;
    min-height: 44px;
  }

  /* Expanded = full labelled menu as a 2-column grid, no scroll. */
  .event-chat-nav[data-labels="expanded"] .event-chat-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .event-chat-nav[data-labels="expanded"] .event-chat-tabs button {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 7px 10px;
  }

  .event-chat-nav[data-labels="expanded"] .event-chat-tab-label {
    display: block;
  }

  .event-chat-label-toggle {
    width: 44px;
    min-height: 44px;
  }

  .event-networking-text-grid,
  .event-networking-profile-grid,
  .event-networking-people-tools,
  .event-networking-compose {
    grid-template-columns: 1fr;
  }

  .event-entry-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-networking-person-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .event-networking-person-top .event-networking-badge {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  /* iOS Safari масштабирует страницу при фокусе на поле с font-size < 16px.
     Поднимаем шрифт реальных полей ввода до 16px (чекбоксы/радио не трогаем). */
  .event-participant input:not([type="checkbox"]):not([type="radio"]),
  .event-participant textarea,
  .event-participant select,
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    font-size: 16px;
  }

  .event-participant-code {
    max-width: min(62vw, 360px);
  }

  .event-participant-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title theme"
      "actions actions";
    align-items: flex-start;
  }

  body.event-participant-has-logo .event-participant-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo title theme"
      "actions actions actions";
  }

  body.event-participant-has-logo .event-participant-code {
    max-width: 100%;
  }

  .event-participant-head-left,
  .event-participant-actions {
    width: 100%;
  }

  .event-participant-head h1 {
    font-size: 18px;
  }

  .event-phase-gate h2 {
    font-size: 26px;
  }

  .event-phase-gate-card.is-before .event-phase-gate-event-title {
    padding: 11px 12px;
    font-size: 32px;
  }

  .event-phase-gate-card.is-before h2 {
    padding: 9px 11px;
    font-size: 17px;
  }

  .event-before-countdown b {
    font-size: 28px;
  }

  .event-theme-toggle {
    width: auto;
    min-width: 0;
  }

  .event-participant-actions {
    display: flex;
    justify-content: flex-start;
  }

  .event-participant-actions > button {
    width: auto;
    min-width: 0;
    justify-content: center;
  }

  .event-broadcast-mode-toggle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-event-hall-nav-mode="compact"] .event-participant-context {
    order: 2;
  }

  .event-theme-overlay,
  .event-day-overlay {
    place-items: end stretch;
    padding: 10px;
  }

  .event-theme-sheet,
  .event-day-sheet {
    width: min(calc(100dvw - 20px), 420px);
    max-height: min(78dvh, calc(100dvh - env(safe-area-inset-bottom) - 20px), 560px);
  }

  .event-day-sheet {
    width: min(calc(100dvw - 20px), 340px);
  }

  .event-participant-tabs {
    padding: 8px;
  }

  .event-avatar-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .event-common-chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .event-before-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-networking-view {
    padding: 10px;
  }

  .event-networking-head,
  .event-networking-actions {
    grid-template-columns: 1fr;
  }

  .event-networking-head > button,
  .event-networking-actions > button,
  .event-networking-request-actions button,
  .event-networking-meeting-actions button,
  .event-networking-safety-actions button {
    width: 100%;
  }

  .event-networking-photo-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .event-participant-head {
    gap: 6px;
    padding: 6px 8px;
  }

  .event-participant-code {
    max-width: 100%;
    font-size: 15px;
  }

  .event-participant-actions {
    gap: 5px;
  }

  .event-broadcast-mode-toggle,
  .event-broadcast-picker-toggle,
  .event-theme-toggle,
  .event-push-toggle,
  .event-day-button {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .event-theme-toggle {
    width: auto;
    min-width: 0;
  }

  .event-participant-tabs[data-hall-nav-mode="compact"] {
    padding: 6px 8px;
  }

  .event-hall-compact-bar {
    gap: 6px;
  }

  .event-hall-compact-current,
  .event-hall-menu-toggle {
    min-height: 44px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .event-info-detail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .event-info-detail-title {
    display: contents;
  }

  .event-info-detail-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .event-info-detail-head h3 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 6px;
    font-size: 22px;
    line-height: 1.12;
  }

  .event-info-back {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 360px) {
  .event-participant-logo {
    --event-participant-logo-height: 30px;
    --event-participant-logo-max-width: 90px;
  }

  .event-participant-code {
    font-size: 14px;
  }

  .event-theme-toggle {
    width: auto;
    min-width: 0;
  }

  .event-broadcast-mode-toggle::before {
    content: "Эфир";
  }

  .event-broadcast-picker-toggle {
    min-width: 68px;
    padding-inline: 8px;
  }

  .event-reaction-panel {
    gap: 5px;
    padding: 6px 8px;
  }

  .event-reaction-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 20px;
  }
}

/* ── Boot overlay: branded skeleton + retryable error state ───────────────── */
.event-boot {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: var(--page-background, var(--bg));
  background-image: var(--brand-page-watermark, none);
  background-size: cover;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.event-boot.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.event-boot-inner {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.event-boot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-boot-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: event-boot-spin 0.85s linear infinite;
}

@keyframes event-boot-spin {
  to { transform: rotate(360deg); }
}

.event-boot-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px;
}

.event-boot-sk-line,
.event-boot-sk-card,
.event-boot-sk-tabs span {
  border-radius: 10px;
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
  background-size: 220% 100%;
  animation: event-boot-shimmer 1.4s ease-in-out infinite;
}

.event-boot-sk-line { height: 14px; }
.event-boot-sk-title { width: 62%; height: 20px; }
.event-boot-sk-wide { width: 88%; }

.event-boot-sk-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0;
}

.event-boot-sk-tabs span {
  flex: 1;
  height: 34px;
  border-radius: 12px;
}

.event-boot-sk-card {
  height: 72px;
  border-radius: 16px;
}

@keyframes event-boot-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .event-boot-spinner,
  .event-boot-sk-line,
  .event-boot-sk-card,
  .event-boot-sk-tabs span {
    animation: none;
  }
}

.event-boot-copy {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.event-boot-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 8px;
}

.event-boot-error-icon {
  font-size: 40px;
  line-height: 1;
}

.event-boot-error-title {
  font-size: 19px;
  font-weight: 650;
  color: var(--text);
}

.event-boot-error-text {
  font-size: 15px;
  color: var(--muted);
  max-width: 320px;
}

.event-boot-retry {
  margin-top: 6px;
  min-height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #04140d;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.event-boot-retry:hover { filter: brightness(1.05); }
.event-boot-retry:active { transform: scale(0.97); }

/* iOS Safari auto-zooms the whole page when focusing any input under 16px.
   On touch devices lift every participant-facing text control to 16px so a tap
   into the chat/question/organizer composer, the entry form or a networking
   field never zooms-and-crops the layout. */
@media (pointer: coarse) {
  .event-common-chat-form textarea,
  .event-entry-field input,
  .event-entry-field select,
  .event-networking-field textarea,
  .event-networking-field input,
  .event-networking-people-tools input,
  .event-networking-compose textarea,
  .event-networking-compose input,
  .event-networking-report-field textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Floating «идёт голосование» cross-tab pill ──────────────────────────── */
.event-voting-pill {
  position: fixed;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
  transform: translateX(-50%);
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 28px);
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #04140d;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: event-voting-pill-in 0.3s ease;
}

.event-voting-pill.hidden { display: none; }

.event-voting-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d21f3c;
  box-shadow: 0 0 0 0 rgba(210, 31, 60, 0.6);
  animation: event-voting-pill-blink 1.1s ease-in-out infinite;
}

.event-voting-pill-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes event-voting-pill-in {
  from { transform: translate(-50%, 14px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes event-voting-pill-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(210, 31, 60, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(210, 31, 60, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .event-voting-pill { animation: none; }
  .event-voting-pill-dot { animation: none; }
}

/* ── Own-question status tracker (Отправлен → На модерации → Одобрен) ─────── */
.event-question-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.event-question-status-step {
  color: var(--muted);
  opacity: 0.7;
}

.event-question-status-step.done { opacity: 1; }

.event-question-status-step.active {
  padding: 2px 9px;
  border-radius: 999px;
  color: #04140d;
}

.event-question-status.is-pending .event-question-status-step.active { background: var(--gold); }
.event-question-status.is-approved .event-question-status-step.active { background: var(--accent); }

.event-question-status-sep {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}

/* ── «Моя программа»: per-row star + filter toggle ───────────────────────── */
.event-program-mine-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.event-program-mine-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.event-program-mine-toggle.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100a;
}

.event-info-card.has-program-star { position: relative; padding-right: 44px; }

.info-program-star {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, color 0.15s ease;
}

.info-program-star:hover { color: var(--gold); }
.info-program-star:active { transform: scale(0.85); }
.info-program-star.is-starred { color: var(--gold); }

/* ============================================================
   INFO-DIGEST-PARTICIPANT: «Инфо» как дайджест-поток (участник).
   Верхний уровень вкладки — вертикальный поток карточек в порядке
   организатора. Лёгкие разделы раскрыты инлайн (заголовок-кнопка +
   контент под ним), тяжёлые (программа/спикеры/отзыв/таблица) —
   компактные карточки-входы с превью-подписью. У каждой карточки
   есть data-info-item-id, поэтому drill в детальную вьюху работает
   тем же делегированным обработчиком, что и раньше.
   ============================================================ */
.event-info-digest {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 760px;
}

.event-info-digest-ic {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(57, 217, 138, 0.14);
  color: #dfffee;
  font-size: 20px;
}

.event-info-digest-ic svg {
  width: 22px;
  height: 22px;
  display: block;
}

.event-info-digest [data-info-kind="program"] .event-info-digest-ic {
  background: rgba(57, 217, 138, 0.16);
  color: #bbf7d0;
}
.event-info-digest [data-info-kind="speakers"] .event-info-digest-ic {
  background: rgba(196, 181, 253, 0.16);
  color: #ddd6fe;
}
.event-info-digest [data-info-kind="faq"] .event-info-digest-ic {
  background: rgba(242, 193, 78, 0.18);
  color: #fef3c7;
}
.event-info-digest [data-info-kind="files"] .event-info-digest-ic {
  background: rgba(147, 197, 253, 0.16);
  color: #bfdbfe;
}
.event-info-digest [data-info-kind="image"] .event-info-digest-ic {
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}
.event-info-digest [data-info-kind="links"] .event-info-digest-ic {
  background: rgba(125, 211, 252, 0.14);
  color: #bae6fd;
}
.event-info-digest [data-info-kind="table"] .event-info-digest-ic {
  background: rgba(203, 213, 225, 0.14);
  color: #e2e8f0;
}
.event-info-digest [data-info-kind="feedback"] .event-info-digest-ic {
  background: rgba(45, 212, 191, 0.16);
  color: #ccfbf1;
}

/* Инлайновая карточка лёгкого раздела */
.event-info-digest-card {
  position: relative;
  border: 1px solid rgba(213, 236, 224, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.event-info-digest-card-open {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  padding: 8px 8px 6px;
  font: inherit;
  cursor: pointer;
}

.event-info-digest-card-open b {
  min-width: 0;
  font-weight: var(--font-weight-display, 700);
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  .event-info-digest-card-open:hover b {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(213, 236, 224, 0.4);
  }
}

.event-info-digest-card-inner {
  position: relative;
  padding: 2px 10px 6px;
}

.event-info-digest-card.is-clampable .event-info-digest-card-inner {
  max-height: 240px;
  overflow: hidden;
}

.event-info-digest-card.is-expanded .event-info-digest-card-inner {
  max-height: none;
  overflow: visible;
}

.event-info-digest-card.has-overflow:not(.is-expanded) .event-info-digest-card-inner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 23, 19, 0), var(--panel));
}

.event-info-digest-more {
  display: none;
  margin: 2px 8px 8px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 7px 14px;
  font: inherit;
  font-weight: var(--font-weight-display, 700);
  font-size: 13px;
  cursor: pointer;
}

.event-info-digest-card.has-overflow .event-info-digest-more,
.event-info-digest-card.is-expanded .event-info-digest-more {
  display: inline-flex;
  align-items: center;
}

@media (hover: hover) {
  .event-info-digest-more:hover {
    border-color: rgba(213, 236, 224, 0.28);
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Карточка-вход (программа/спикеры/отзыв/таблица) */
.event-info-digest-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(213, 236, 224, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}

@media (hover: hover) {
  .event-info-digest-entry:hover {
    transform: translateY(-1px);
    border-color: rgba(213, 236, 224, 0.24);
    background: rgba(255, 255, 255, 0.075);
  }
}

.event-info-digest-entry-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.event-info-digest-entry-body b {
  font-weight: var(--font-weight-display, 700);
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-info-digest-entry-body small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-info-digest-entry-chevron {
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  padding-right: 2px;
}

.event-info-digest-card-open:focus-visible,
.event-info-digest-entry:focus-visible,
.event-info-digest-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Светлая тема */
html[data-theme="light"] .event-info-digest-card,
html[data-theme="light"] .event-info-digest-entry {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-info-digest-entry:hover {
  border-color: rgba(var(--event-light-accent-rgb), 0.3);
  background: var(--event-light-accent-bg);
}

html[data-theme="light"] .event-info-digest-card-open:hover b {
  text-decoration-color: rgba(var(--event-light-accent-rgb), 0.5);
}

html[data-theme="light"] .event-info-digest-more {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
  color: var(--event-light-slate);
}

html[data-theme="light"] .event-info-digest-card.has-overflow:not(.is-expanded) .event-info-digest-card-inner::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--event-light-card-bg-strong));
}

html[data-theme="light"] .event-info-digest-ic {
  border: 1px solid rgba(var(--event-light-accent-rgb), 0.16);
  background: var(--event-light-accent-bg);
  color: var(--event-light-accent);
}
html[data-theme="light"] .event-info-digest [data-info-kind="program"] .event-info-digest-ic {
  border-color: rgba(22, 101, 52, 0.18);
  background: var(--event-light-green-bg);
  color: var(--event-light-green);
}
html[data-theme="light"] .event-info-digest [data-info-kind="speakers"] .event-info-digest-ic {
  border-color: rgba(109, 40, 217, 0.18);
  background: rgba(109, 40, 217, 0.11);
  color: var(--event-light-purple);
}
html[data-theme="light"] .event-info-digest [data-info-kind="faq"] .event-info-digest-ic {
  border-color: rgba(180, 83, 9, 0.18);
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}
html[data-theme="light"] .event-info-digest [data-info-kind="files"] .event-info-digest-ic {
  border-color: rgba(30, 64, 175, 0.18);
  background: rgba(30, 64, 175, 0.1);
  color: #1e40af;
}
html[data-theme="light"] .event-info-digest [data-info-kind="image"] .event-info-digest-ic {
  border-color: rgba(190, 24, 93, 0.18);
  background: rgba(190, 24, 93, 0.1);
  color: #be185d;
}
html[data-theme="light"] .event-info-digest [data-info-kind="links"] .event-info-digest-ic {
  border-color: rgba(2, 132, 199, 0.18);
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}
html[data-theme="light"] .event-info-digest [data-info-kind="table"] .event-info-digest-ic {
  border-color: rgba(71, 85, 105, 0.18);
  background: rgba(71, 85, 105, 0.1);
  color: var(--event-light-slate);
}
html[data-theme="light"] .event-info-digest [data-info-kind="feedback"] .event-info-digest-ic {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.1);
  color: var(--event-light-teal);
}

html[data-theme="light"] .event-info-digest-entry-body small,
html[data-theme="light"] .event-info-digest-entry-chevron {
  color: var(--event-light-slate);
}

/* ==========================================================================
   «Вопросы спикеру» — redesigned audience Q&A board (2026-07-09)
   Slido-style: vote-ranked list, speaker avatar chips, «Отвечено» state.
   ========================================================================== */
.event-question-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

/* --- Speaker picker: avatar chips replace the <select> --- */
.event-question-speaker-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.event-question-speaker-hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(57, 217, 138, 0.9);
}
.event-question-speaker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.event-question-speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.event-question-speaker-chip:hover { border-color: rgba(57, 217, 138, 0.4); }
.event-question-speaker-chip:active { transform: scale(0.97); }
.event-question-speaker-chip.active {
  border-color: rgba(57, 217, 138, 0.6);
  background: rgba(57, 217, 138, 0.14);
}
.event-question-speaker-ava {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: visible;
  display: grid;
  place-items: center;
  background: rgba(57, 217, 138, 0.16);
  color: var(--accent);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
}
.event-question-speaker-ava img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.event-question-speaker-live {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(12, 22, 20, 0.92);
  animation: eventQuestionLivePulse 2s ease-in-out infinite;
}
@keyframes eventQuestionLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}
.event-question-speaker-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-question-speaker-initial { line-height: 1; }

/* --- Toolbar: question count + sort segmented control --- */
.event-question-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.event-question-toolbar:empty {
  display: none;
}
.event-question-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
}
.event-question-sort {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.event-question-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.event-question-sort-btn:hover { color: var(--text); }
.event-question-sort-btn.active {
  background: var(--accent);
  color: #04140d;
}
.event-question-sort-badge {
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.event-question-sort-btn.active .event-question-sort-badge {
  background: rgba(4, 20, 13, 0.22);
}
/* Тумблер «Перевести» на доске вопросов (в шапке рядом с сортировкой) */
.event-question-translate-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.event-question-translate-toggle:hover { color: var(--text); }
.event-question-translate-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #04140d;
}
html[data-theme="light"] .event-question-translate-toggle { background: rgba(0, 0, 0, 0.03); }

/* --- Board list + cards --- */
.event-question-list {
  padding: 14px;
  gap: 10px;
}
.event-question-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(213, 236, 224, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 0.15s, background 0.15s;
}
.event-question-card.mine {
  border-color: rgba(57, 217, 138, 0.32);
  background: rgba(57, 217, 138, 0.08);
}
.event-question-card.pending {
  border-color: rgba(242, 193, 78, 0.36);
}
.event-question-card.answered {
  opacity: 0.72;
}
.event-question-card.mine.answered {
  opacity: 0.92;
}
.event-question-card-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.event-question-card-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.event-question-card-lead {
  grid-column: 2;
  align-self: center;
}

/* --- Rank medals for the top-voted questions (popular sort) --- */
.event-question-rank {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: var(--font-weight-display, 800);
  color: #04140d;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.event-question-rank--1 { background: linear-gradient(135deg, #ffd76a, #f2b33a); }
.event-question-rank--2 { background: linear-gradient(135deg, #e6edf2, #b9c6d2); }
.event-question-rank--3 { background: linear-gradient(135deg, #e6b487, #c8895a); }

/* --- Upvote pill --- */
.event-question-vote {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.event-question-vote-up,
.event-question-vote-down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 52px;
  padding: 6px 8px;
  border: 1px solid rgba(213, 236, 224, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.event-question-vote-up { min-height: 52px; }
.event-question-vote-up:hover,
.event-question-vote-down:hover { border-color: rgba(57, 217, 138, 0.45); }
.event-question-vote-up:active,
.event-question-vote-down:active { transform: scale(0.94); }
.event-question-vote-up.active {
  border-color: rgba(57, 217, 138, 0.55);
  background: rgba(57, 217, 138, 0.2);
  color: var(--accent);
}
.event-question-vote-down {
  min-height: 34px;
  padding: 4px 8px;
  opacity: 0.85;
}
.event-question-vote-down.active {
  border-color: rgba(242, 120, 120, 0.5);
  background: rgba(242, 120, 120, 0.16);
  color: #f28a8a;
}
.event-question-vote-icon { width: 18px; height: 18px; display: block; }
.event-question-vote-count {
  font-size: 14px;
  font-weight: var(--font-weight-display, 800);
  line-height: 1;
}
.event-question-vote-up:disabled,
.event-question-vote-down:disabled { cursor: default; opacity: 0.5; }
@media (pointer: coarse) {
  .event-question-vote-up { min-width: 56px; min-height: 56px; }
}

/* --- «Отвечено» tag + status step --- */
.event-question-answered-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.16);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: var(--font-weight-display, 700);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.event-question-status.is-answered .event-question-status-step.active {
  background: var(--accent);
}

/* --- Answered collapsible section --- */
.event-question-answered-section {
  margin-top: 2px;
  border-top: 1px dashed rgba(213, 236, 224, 0.16);
  padding-top: 6px;
}
.event-question-answered-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}
.event-question-answered-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.event-question-answered-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.2s;
}
.event-question-answered-section.is-open .event-question-answered-chevron {
  transform: rotate(180deg);
}
.event-question-answered-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* --- Richer empty state --- */
.event-question-empty {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.event-question-empty-icon {
  font-size: 30px;
  opacity: 0.8;
}

/* --- Character counter --- */
.event-question-input-wrap {
  position: relative;
  min-width: 0;
  display: flex;
}
.event-question-input-wrap textarea {
  width: 100%;
}
.event-question-counter {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  pointer-events: none;
}
.event-question-counter.is-low { color: var(--gold); }
.event-question-counter.is-hidden { display: none; }

/* --- Light theme overrides --- */
html[data-theme="light"] .event-question-toolbar { background: rgba(0, 0, 0, 0.015); }
html[data-theme="light"] .event-question-sort { background: rgba(0, 0, 0, 0.05); }
html[data-theme="light"] .event-question-sort-badge { background: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .event-question-speaker-chip { background: rgba(0, 0, 0, 0.03); }
html[data-theme="light"] .event-question-speaker-live { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .event-question-card { background: rgba(0, 0, 0, 0.025); border-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .event-question-card.mine { background: rgba(57, 217, 138, 0.1); }
html[data-theme="light"] .event-question-vote-up,
html[data-theme="light"] .event-question-vote-down { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); }
html[data-theme="light"] .event-question-answered-count { background: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .event-question-counter { background: rgba(255, 255, 255, 0.72); }

/* ============================================================================
   Networking redesign (2026-07-09): sub-navigation (Люди/Встречи/Анкета),
   top attention strip, collapsed «Моя карточка», progressive-disclosure
   composer, «Показать ещё» pagination. Participant tab only.
   ============================================================================ */

/* Hide the global status line when there is nothing to say. */
.event-networking-status:empty { display: none; }

/* Sticky sub-navigation between the three networking views. */
.event-networking-subnav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(9, 20, 18, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.event-networking-subnav-tab {
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
}

.event-networking-subnav-tab.active {
  border-color: rgba(57, 217, 138, 0.42);
  background: rgba(57, 217, 138, 0.16);
  color: #dfffee;
}

.event-networking-subnav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 11px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1;
}

.event-networking-subnav-badge.attention {
  background: var(--gold, #f2c14e);
  color: #06100e;
}

/* Top attention strip — waiting answers, meetings starting soon, other arrived. */
.event-networking-attention {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(242, 193, 78, 0.4);
  border-radius: 10px;
  background: rgba(242, 193, 78, 0.12);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.event-networking-attention-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold, #f2c14e);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.2);
}

.event-networking-attention-items {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.event-networking-attention-item {
  font-size: 13px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.event-networking-attention-item.soon { color: var(--muted); }

.event-networking-attention-go {
  flex: 0 0 auto;
  color: var(--gold, #f2c14e);
  font-size: 18px;
  font-weight: 700;
}

/* Compact «your card» that leads the People view instead of the full form. */
.event-networking-mycard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px 12px;
}

button.event-networking-mycard { cursor: pointer; font: inherit; }

.event-networking-mycard.is-empty {
  border-style: dashed;
  border-color: rgba(57, 217, 138, 0.4);
  background: rgba(57, 217, 138, 0.08);
}

.event-networking-mycard.is-flagged {
  border-color: rgba(242, 193, 78, 0.4);
  background: rgba(242, 193, 78, 0.1);
}

.event-networking-mycard-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.event-networking-mycard-avatar img { width: 100%; height: 100%; object-fit: cover; }

.event-networking-mycard-body {
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.event-networking-mycard-name {
  color: var(--text);
  font-size: 15px;
  font-weight: var(--font-weight-display, 700);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.event-networking-mycard-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-heavy, 700);
  line-height: 1.3;
}

.event-networking-mycard.is-hidden .event-networking-mycard-meta,
.event-networking-mycard.is-flagged .event-networking-mycard-meta {
  color: var(--gold, #f2c14e);
}

.event-networking-mycard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.event-networking-mycard-tag {
  border: 1px solid rgba(57, 217, 138, 0.24);
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.12);
  color: #bbf7d0;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.event-networking-mycard-edit {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(213, 236, 224, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #d5ece0;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-display, 700);
  cursor: pointer;
  white-space: nowrap;
}

/* «Показать ещё» — inherits the section button look, just spans full width. */
.event-networking-showmore {
  width: 100%;
  margin-top: 2px;
}

/* Progressive composer: collapsed button → open composer for one person. */
.event-networking-compose-collapsed { display: flex; }
.event-networking-compose-collapsed button { flex: 1 1 auto; }

.event-networking-compose.is-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.event-networking-compose.is-open .event-networking-sendbox {
  display: grid;
  gap: 8px;
}

.event-networking-compose-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.event-networking-compose-buttons button { flex: 0 0 auto; }

/* --- Light theme overrides for the redesign --- */
html[data-theme="light"] .event-networking-subnav {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-networking-subnav-badge {
  background: rgba(var(--event-light-border-rgb), 0.12);
  color: var(--text);
}

html[data-theme="light"] .event-networking-mycard {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
}

html[data-theme="light"] .event-networking-mycard-avatar {
  background: rgba(var(--event-light-border-rgb), 0.08);
}

html[data-theme="light"] .event-networking-mycard-tag {
  border-color: rgba(22, 101, 52, 0.24);
  background: var(--event-light-green-bg);
  color: var(--event-light-green);
}

html[data-theme="light"] .event-networking-mycard-edit {
  border-color: var(--event-light-border);
  background: var(--event-light-card-bg-strong);
  color: var(--event-light-green);
}

/* ===== Синхронный перевод (вкладка участника) ===== */
.event-translation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.event-translation-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--event-border, rgba(255,255,255,.14));
  font-size: 14px;
  color: var(--event-dim, #9aa6bd);
}
.event-translation-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .5; }
.event-translation[data-state="live"] .event-translation-status,
.event-translation[data-state="playing"] .event-translation-status { color: var(--event-green, #39d98a); }
.event-translation[data-state="live"] .event-translation-dot,
.event-translation[data-state="playing"] .event-translation-dot {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(57,217,138,.18);
  animation: eventTranslationPulse 1.5s infinite;
}
@keyframes eventTranslationPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.event-translation-langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.event-translation-lang {
  appearance: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--event-border, rgba(255,255,255,.14));
  background: transparent; color: inherit; font-size: 14px; font-weight: 600;
}
.event-translation-lang.is-active { background: var(--event-green, #39d98a); color: #05221a; border-color: transparent; }
.event-translation-lang.is-offline { opacity: .5; }
.event-translation-lang.is-active.is-offline { opacity: .78; }

.event-translation-listen {
  appearance: none; border: none; cursor: pointer;
  width: 100%; padding: 22px; border-radius: 18px;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #05221a; background: var(--event-green, #39d98a);
  box-shadow: 0 10px 28px rgba(57,217,138,.22);
  transition: transform .06s ease, opacity .2s ease;
}
.event-translation-listen:active { transform: scale(.98); }
.event-translation-listen:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.event-translation[data-state="playing"] .event-translation-listen {
  background: transparent; color: inherit;
  border: 1px solid var(--event-border, rgba(255,255,255,.2)); box-shadow: none;
}
.event-translation-listen-icon {
  width: 22px; height: 22px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 14v-2a8 8 0 0 1 16 0v2' fill='none' stroke='black' stroke-width='2'/><rect x='2.5' y='13.5' width='4' height='6.5' rx='1.6' fill='black'/><rect x='17.5' y='13.5' width='4' height='6.5' rx='1.6' fill='black'/></svg>");
  mask: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 14v-2a8 8 0 0 1 16 0v2' fill='none' stroke='black' stroke-width='2'/><rect x='2.5' y='13.5' width='4' height='6.5' rx='1.6' fill='black'/><rect x='17.5' y='13.5' width='4' height='6.5' rx='1.6' fill='black'/></svg>");
}

.event-translation-volume { display: flex; flex-direction: column; gap: 8px; }
.event-translation-volume-label { font-size: 13px; color: var(--event-dim, #9aa6bd); }
.event-translation-volume input[type="range"] { width: 100%; }
.event-translation-hint { font-size: 13px; line-height: 1.5; color: var(--event-dim, #9aa6bd); text-align: center; margin: 0; }

.event-translation-badge {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--event-green, #39d98a);
  box-shadow: 0 0 0 3px rgba(57,217,138,.2);
  display: inline-block; margin-left: 4px;
}
