/* (c) SoftCream 2026 by Robert Śmietanka // Warunki uzywania - https://softcream.pl/platforma-creamcloud/ */

:root {
  /* Tokeny wizualne aplikacji: kolory, cienie i bazowy krój pisma. */
  --navy: #072764;
  --navy-2: #003f91;
  --ink: #071d4f;
  --muted: #66749a;
  --line: #e8edf6;
  --gold: #ffb51d;
  --gold-2: #f89d07;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --danger: #d83b4c;
  --ok: #0f8f62;
  --accent: #003f91;
  --shadow: 0 16px 50px rgba(7, 29, 79, .16);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 34px;
  --space-6: 48px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --transition-fast: 150ms ease;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 39, 100, .05), transparent 42%),
    linear-gradient(135deg, #eef4fb 0%, #f8fbff 55%, #ffffff 100%);
}

body.theme-alexa {
  --navy: #020710;
  --navy-2: #2d72ff;
  --ink: #f2f4f7;
  --muted: #a9b6c8;
  --line: rgba(80, 116, 168, .32);
  --gold: #12cdbd;
  --gold-2: #06c8e9;
  --paper: #07111e;
  --soft: #0a1624;
  --danger: #ff4f73;
  --ok: #18c777;
  --accent: #06c8e9;
  --alexa-purple: #8b2cf5;
  --alexa-blue: #2d72ff;
  --alexa-cyan: #06c8e9;
  --alexa-teal: #12cdbd;
  --alexa-green: #18bd69;
  --shadow: 0 20px 64px rgba(0, 0, 0, .42);
  color: var(--ink);
  background: #020710;
}

body.theme-alexa .app-shell,
body.theme-alexa .workspace {
  position: relative;
  z-index: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: wait;
  opacity: .68;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.app-shell {
  /* Układ desktopowy: stała szyna nawigacji i elastyczna część robocza. */
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  padding: 0;
}

body.work-mode-only .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.work-mode-only .side-rail,
body.work-mode-only .hero-header,
body.work-mode-only .app-footer,
body.work-mode-only .bottom-nav {
  display: none;
}

body.work-mode-only .workspace {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.side-rail {
  /* Lewa nawigacja jest przyklejona, aby aplikacja zachowywała się jak panel operacyjny. */
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid rgba(232, 237, 246, .95);
  background: rgba(255, 255, 255, .88);
  box-shadow: 12px 0 34px rgba(7, 29, 79, .06);
  backdrop-filter: blur(18px);
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 26px;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(7, 29, 79, .22);
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.nav-item svg,
.bottom-tab svg,
.tile-icon svg,
.row-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.nav-item.active,
.nav-item:hover {
  color: var(--navy);
  background: #edf4ff;
}

.desktop-main {
  min-width: 0;
}

.workspace {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: transparent;
}

.hero-header {
  /* Górny nagłówek przenosi branding wydarzenia i tytuł bieżącej podstrony. */
  position: relative;
  min-height: 230px;
  padding: 30px clamp(32px, 4vw, 64px) 44px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 22, 71, .98), rgba(0, 63, 145, .94)),
    var(--navy);
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(120deg, transparent 0 70%, rgba(255, 255, 255, .08) 70% 71%, transparent 71%),
    repeating-linear-gradient(168deg, transparent 0 18px, rgba(255, 255, 255, .08) 19px, transparent 20px);
  pointer-events: none;
}

.welcome-header::before {
  display: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.status-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.content-language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .12);
}

.content-language-switch button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .76);
  background: transparent;
  font-weight: 900;
}

.content-language-switch button.active {
  color: var(--navy);
  background: #fff;
}

.btn-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  max-width: min(320px, 46vw);
  padding: 6px 20px 6px 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-weight: 800;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.btn-user:hover {
  background: rgba(255, 255, 255, .22);
}

.btn-user--login {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn-user--logout {
  justify-content: flex-start;
}

.btn-user__icon,
.btn-user__avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  color: var(--navy);
  background: #fff;
}

.btn-user__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.btn-user__avatar {
  color: #fff;
  background: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0;
}

.btn-user__meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
  line-height: 1.05;
}

.btn-user__name {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 800;
}

.btn-user__action {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
}

.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.brand-row,
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-heading {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.page-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.section-title-row {
  display: grid;
  gap: 4px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo-switch {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.alexa-brand-logo,
.alexa-side-logo {
  display: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.logo-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #fff;
  flex: 0 0 auto;
}

.logo-emblem strong {
  position: absolute;
  z-index: 1;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.eu-stars {
  position: absolute;
  inset: 0;
}

.eu-stars span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 30deg))
    translateY(-33px)
    rotate(calc(var(--i) * -30deg));
  transform-origin: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.35vw, 34px);
  line-height: 1.08;
  font-weight: 700;
}

.brand-subtitle,
.section-kicker {
  color: var(--gold);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 760px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: .95;
  font-weight: 500;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
}

.header-title {
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.55vw, 36px);
  line-height: 1;
  font-weight: 500;
}

.header-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, .12);
}

.icon-button.dark {
  color: var(--navy);
  background: #edf4ff;
}

.badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.content {
  /* Wspólna szerokość robocza dla widoków, zgodna z szerokim ekranem desktopowym. */
  min-height: calc(100vh - 230px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.content.overlap {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.welcome-content {
  display: block;
  min-height: auto;
  padding-bottom: 96px;
  text-align: left;
}

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

.event-fact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.event-fact__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-control);
  color: var(--accent);
  background: rgba(6, 200, 233, .1);
  align-self: start;
  margin-top: 1px;
}

.event-fact__icon svg {
  width: 22px;
  height: 22px;
}

.event-fact h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.event-fact p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.public-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.public-action__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn-secondary .public-action__icon {
  filter: brightness(.42) saturate(1.25);
}

.public-video-section {
  margin-top: 24px;
}

.public-countdown {
  margin-top: 48px;
}

.countdown-card {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(7, 29, 79, .14);
  text-align: left;
}

.sponsors {
  position: relative;
  margin-top: 64px;
  padding-bottom: 24px;
  overflow: visible;
}

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

.sponsors__group {
  margin-bottom: 8px;
  overflow: visible;
}

.sponsors__heading {
  margin: 36px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.sponsors__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: visible;
}

.logo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 112px;
  flex: 0 0 auto;
  padding: 0 16px;
  overflow: visible;
  border: 1px solid rgba(67, 108, 167, .36);
  border-radius: var(--radius-control);
  background: #07111e;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.logo-card:hover,
.logo-card:focus-visible {
  border-color: rgba(6, 200, 233, .6);
  background: #0d1e30;
}

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

.logo-card__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 100;
  width: 100%;
  padding: 8px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(6, 200, 233, .32);
  border-radius: 6px;
  color: rgba(217, 225, 235, .9);
  background: #0d1e30;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.logo-card:hover .logo-card__tooltip,
.logo-card:focus .logo-card__tooltip,
.logo-card:focus-visible .logo-card__tooltip {
  opacity: 1;
  visibility: visible;
}

.logo-card__arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  display: block;
  transform: translateX(-50%);
  border-top: 6px solid rgba(6, 200, 233, .32);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}

.countdown-card > strong {
  font-size: 17px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-grid div {
  display: grid;
  place-items: center;
  min-height: 68px;
  border-radius: 8px;
  color: var(--navy);
  background: #edf4ff;
}

.countdown-grid strong {
  font-size: 23px;
  line-height: 1;
}

.countdown-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.app-version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 900;
}

.btn,
.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: var(--radius-control);
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.primary-button,
.btn-primary {
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  font-weight: 700;
}

.primary-button:hover,
.btn-primary:hover {
  opacity: .88;
}

.secondary-button,
.btn-secondary {
  border: 1px solid rgba(6, 200, 233, .32);
  background-color: #07111e;
}

.secondary-button:hover,
.btn-secondary:hover {
  border-color: rgba(6, 200, 233, .55);
  background-color: #0d1e30;
}

.danger-button {
  color: #fff;
  background: var(--danger);
}

.ghost-button {
  color: var(--navy);
  background: transparent;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card,
.tile,
.partner-card,
.agenda-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(7, 29, 79, .08);
}

.card {
  padding: 22px;
}

.dashboard-card {
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
}

.greeting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.greeting h2 {
  margin: 4px 0 4px;
  font-size: 25px;
}

.ticket {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.ticket svg {
  width: 42px;
  height: 42px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0;
}

.tile {
  min-height: 172px;
  padding: 20px;
  text-align: left;
  color: var(--ink);
}

.tile-icon,
.row-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: var(--navy);
  background: #edf4ff;
}

.tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.tile span,
.small-muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.event-video-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 0 14px;
  width: 100%;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: linear-gradient(135deg, var(--paper), color-mix(in srgb, var(--accent) 8%, var(--paper)));
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.event-video-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(7, 29, 79, .14);
}

.event-video-tile .tile-icon {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.event-video-tile__content {
  min-width: 0;
}

.event-video-mode {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #30577b;
  background: #e8f1fa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.event-video-mode--live {
  color: #9d1834;
  background: #ffe5ec;
}

.event-video-tile__action {
  grid-column: 2;
  align-self: end;
  width: fit-content;
  margin-top: 16px;
  color: var(--navy) !important;
  font-weight: 900;
}

.event-video-tile--public {
  min-height: 132px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 12px;
}

.section-head h2,
.section-head h3,
.card h2,
.card h3 {
  margin: 24px 0;
}

.ghost-button,
.tiny-button,
.link-button {
  border: 0;
  color: var(--gold-2);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.partner-section.full {
  margin-top: 0;
}

.partner-card {
  display: grid;
  place-items: center;
  padding: 16px;
  color: #d71920;
  font-weight: 900;
  text-align: center;
  background: #fff;
  overflow-wrap: anywhere;
}

.partner-card.platinum {
  grid-column: span 2;
  aspect-ratio: 3 / 1;
  font-size: clamp(18px, 2vw, 24px);
}

.partner-card.gold {
  aspect-ratio: 4 / 3;
  font-size: 15px;
}

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.file-upload {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.partner-image-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}

.partner-preview-logo {
  width: 88px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}

.date-tabs {
  /* Dni agendy są osobnymi przełącznikami, a na mobile zmieniają się w przewijalny pasek. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
  gap: 12px;
  margin-bottom: 22px;
}

.agenda-language-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agenda-language-switch button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
}

.agenda-language-switch button.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.agenda-admin-preview {
  margin-top: 18px;
}

.agenda-admin-preview .agenda-view {
  margin-top: 16px;
}

.date-tab {
  min-height: 78px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 29, 79, .12);
  font-weight: 900;
}

.date-tab.active {
  background: linear-gradient(180deg, #ffc439, var(--gold));
}

.date-tab strong {
  display: block;
  font-size: 26px;
}

.agenda-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.agenda-item {
  /* Desktopowa agenda ma układ osi czasu: godzina, linia i karta. */
  display: grid;
  grid-template-columns: 128px 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 84px;
}

.agenda-time {
  color: var(--gold-2);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  padding-top: 0;
}

.timeline {
  position: relative;
  width: 18px;
  height: 100%;
  min-height: 76px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: -8px;
  width: 1px;
  background: #f3cf8e;
}

.timeline::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
}

.agenda-card {
  padding: 18px 20px;
  border-width: 1px;
  box-shadow: 0 10px 26px rgba(7, 29, 79, .06);
  border-radius: 8px;
}

.agenda-card > .agenda-title {
  display: block;
  margin: 16px 0;
  line-height: 1.35;
}

.agenda-heading {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

.agenda-speaker {
  display: block;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
}

.agenda-presentation-title {
  display: block;
  color: var(--ink);
  font-size: calc(1rem + 4pt);
  font-weight: 400;
  line-height: 1.35;
}

.agenda-speaker-description {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.agenda-room {
  display: block;
}

.agenda-item.featured .agenda-time {
  color: var(--navy);
}

.agenda-item.featured .timeline::after {
  width: 11px;
  height: 11px;
  left: 3px;
  background: var(--navy);
  box-shadow: 0 0 0 5px rgba(255, 181, 29, .28);
}

.agenda-item.featured .agenda-card {
  /* Wyróżnione panele konferencji mają mocniejszą ramkę i jaśniejsze tło. */
  border-color: rgba(255, 181, 29, .55);
  background:
    linear-gradient(90deg, rgba(255, 181, 29, .13), rgba(255, 255, 255, .96) 38%),
    #fff;
  box-shadow: 0 16px 36px rgba(7, 29, 79, .12);
}

.moderator-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.moderator-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.moderator-card.pending {
  display: block;
}

.moderator-card strong,
.moderator-card span {
  display: block;
}

.moderator-card strong {
  margin: 0 0 16px;
  font-size: 18px;
}

.moderator-card span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.moderator-card p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.network-search {
  max-width: 760px;
}

.network-search__field {
  position: relative;
  display: block;
}

.network-search__field .input {
  padding-right: 52px;
}

.network-search__clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.network-search__clear:hover,
.network-search__clear:focus-visible {
  color: var(--ink);
  background: rgba(0, 63, 145, .08);
  outline: 0;
}

.networking-view .section-head {
  margin: 32px 0 24px;
}

.networking-empty {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.network-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.network-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.network-pagination__button,
.network-pagination__page {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

.network-pagination__page {
  min-width: 40px;
  padding-inline: 10px;
}

.network-pagination__page.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.network-pagination__button:disabled {
  cursor: default;
  opacity: .45;
}

.network-pagination__status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(0, 63, 145, .12);
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.agenda-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.agenda-admin-form > label,
.agenda-language-group label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agenda-language-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.agenda-language-group legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 900;
}

.event-info-language-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.event-info-language-group legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 900;
}

.event-info-language-group label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.agenda-wide {
  grid-column: 1 / -1;
}

.agenda-moderators {
  min-height: 130px;
}

.tiny-button:disabled {
  cursor: default;
  opacity: .35;
}

.work-mode-card {
  max-width: 560px;
  margin: 0 auto;
}

.work-mode-content {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 24px;
}

.work-mode-admin-card {
  display: grid;
  gap: 18px;
}

.work-mode-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--navy);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.work-mode-status.active {
  color: #fff;
  background: var(--danger);
}

.work-mode-toggle {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
}

.consent-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.user-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 146px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
  grid-row: span 3;
}

.user-card > .avatar {
  width: 60px;
  height: 60px;
  grid-row: auto;
  font-size: 13px;
}

.avatar.small {
  width: 60px;
  height: 60px;
  font-size: 13px;
}

.user-card__content {
  display: flex;
  min-width: 0;
  padding-right: 48px;
  flex-direction: column;
  align-items: flex-start;
}

.user-card__content strong {
  display: block;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.25;
}

.user-card .user-affiliation {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.user-bio {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.user-card .participant-role {
  display: block;
  margin-top: 12px;
  color: #12cdbd;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.linkedin-link {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  color: #fff;
  background: #0a66c2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(10, 102, 194, .18);
}

.linkedin-link:hover {
  background: #07569f;
}

.linkedin-link::before {
  content: "in";
  display: block;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.linkedin-link svg {
  display: none;
}

.user-card .tiny-button {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.list {
  display: grid;
  gap: 10px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 29, 79, .08);
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.list-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.profile-card {
  padding: 18px;
}

.profile-view > section {
  margin-bottom: 16px;
}

.profile-view > section:last-child {
  margin-bottom: 0;
}

.profile-email-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-contact-link {
  color: var(--navy);
  font-weight: 800;
  text-underline-offset: .18em;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 4px;
}

.admin-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
  font-weight: 800;
}

.admin-tab.active {
  color: var(--navy);
  background: #edf4ff;
}

.admin-video-card {
  display: grid;
  gap: 18px;
}

.admin-video-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.admin-video-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef1f5;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-video-status--enabled {
  color: #0b674e;
  background: #dcf8ed;
}

.admin-video-status--scheduled {
  color: #174f86;
  background: #dfedfb;
}

.admin-video-status--disabled {
  color: #8a5700;
  background: #fff0c7;
}

.admin-video-actions {
  flex-wrap: wrap;
}

.admin-video-preview {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #071735;
  overflow: hidden;
}

.admin-video-preview__placeholder {
  display: grid;
  gap: 12px;
  max-width: 420px;
  padding: 28px;
  color: #fff;
  text-align: center;
}

.admin-video-preview__placeholder .small-muted {
  color: #cbd5e6;
}

.admin-video-preview__placeholder a {
  color: var(--gold);
  font-weight: 900;
}

.admin-video-preview__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 970px) {
  .admin-video-layout {
    grid-template-columns: 1fr;
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.admin-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ddos-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}

.role-badge.user {
  color: var(--navy);
  background: #edf4ff;
}

.role-badge.admin {
  color: #fff;
  background: var(--navy);
}

.participant-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 181, 29, .24);
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

.admin-info-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-info-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 6px;
  color: var(--navy);
  background: #edf4ff;
}

.admin-info-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

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

.tiny-button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.tiny-button.warn {
  color: var(--danger);
  background: transparent;
}

.bottom-nav {
  /* Zachowane jako pomocniczy dolny pasek; główną mobilną nawigacją jest kompaktowa side-rail. */
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  min-height: 78px;
  padding: 9px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.app-footer {
  position: fixed;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 280px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(232, 237, 246, .8);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.app-footer a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--navy);
}

.footer-version {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.bottom-tab {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.bottom-tab.active {
  color: var(--gold-2);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: min(460px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 14px;
  color: #fff;
  border: 2px solid transparent;
  background: #17456f;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast[hidden] {
  display: none;
}

.notification--success {
  background: #17643a;
  border-color: #7ee2a8;
}

.notification--info {
  background: #17456f;
  border-color: #8cc8ff;
}

.notification--warning {
  color: #2d2100;
  background: #ffd66b;
  border-color: #8b5a00;
}

.notification--critical {
  background: #8f1d2c;
  border-color: #ffb4bd;
}

.notification__icon,
.notification-panel__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.notification__content {
  min-width: 0;
}

.notification__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.notification__actions .secondary-button {
  border-color: currentColor;
  color: inherit;
  background: rgba(255, 255, 255, .8);
}

.notification__title,
.notification__message,
.notification__countdown {
  display: block;
  margin: 0;
}

.notification__message {
  margin-top: 3px;
}

.notification__countdown {
  margin-top: 8px;
  font-weight: 800;
}

.notification__close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.notification__close:focus-visible,
.notification-panel button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.login-notification-region:empty {
  display: none;
}

.account-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.account-process__step {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.account-process__step.is-current {
  color: #123f68;
  border-color: #4d91cf;
  background: #eaf5ff;
}

.account-process__step.is-complete {
  color: #0d4b2a;
  border-color: #3c9d68;
  background: #e9f8ef;
}

.account-process__number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.notification-panel {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  border: 2px solid;
  border-radius: var(--radius-control);
}

.notification-panel--success {
  color: #0d4b2a;
  border-color: #3c9d68;
  background: #e9f8ef;
}

.notification-panel--info {
  color: #123f68;
  border-color: #4d91cf;
  background: #eaf5ff;
}

.notification-panel--warning {
  color: #634200;
  border-color: #bf7c00;
  background: #fff4d1;
}

.notification-panel--critical {
  color: #741525;
  border-color: #c43149;
  background: #fff0f2;
}

.notification-panel__body {
  min-width: 0;
}

.notification-panel__body h3,
.notification-panel__body p {
  margin-top: 0;
}

.notification-panel__body h3 {
  margin-bottom: 6px;
  color: inherit;
}

.notification-panel__meta,
.notification-panel__countdown {
  font-weight: 800;
}

.notification-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 620px) {
  .toast {
    right: 16px;
    bottom: 82px;
    left: 16px;
    width: auto;
  }

  .notification-panel {
    padding: 15px;
  }

  .notification-panel__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .notification__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-process {
    grid-template-columns: 1fr;
  }
}

.modal {
  width: min(560px, calc(100vw - 24px));
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(7, 29, 79, .44);
}

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

.admin-user-modal {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  max-height: min(90dvh, 920px);
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.admin-user-modal[open] {
  display: flex;
  flex-direction: column;
}

.admin-user-modal__header {
  flex: 0 0 auto;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.admin-user-modal__header h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
}

.admin-user-modal__content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.admin-user-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
}

.admin-user-edit-form__wide {
  grid-column: 1 / -1;
}

.admin-user-modal__actions {
  position: sticky;
  bottom: -22px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px -22px -22px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mail-content {
  display: grid;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
}

.mail {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.mail.unread {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--soft));
}

.mail.read {
  opacity: 0.86;
}

.mail .danger-button {
  margin-top: 8px;
}

.mail code {
  word-break: break-all;
}

.ticket-modal {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
}

.ticket-modal form {
  max-height: calc(100dvh - 48px);
  overflow: auto;
}

.ticket-content {
  display: grid;
  place-items: center;
}

.smtp-password-modal form {
  gap: 12px;
}

.event-video-modal {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 22px;
}

.event-video-content {
  margin-top: 14px;
}

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

.event-video-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #020710;
}

.event-video-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.event-video-external-link {
  justify-self: start;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.password-toggle {
  min-width: 92px;
}

.ticket-display {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: 100%;
  text-align: center;
}

.ticket-display h3 {
  margin: 6px 0;
  font-size: clamp(24px, 4vw, 36px);
}

.ticket-display canvas {
  width: min(58vh, 100%, 420px);
  max-width: 100%;
  aspect-ratio: 1;
  border: 12px solid #fff;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(7, 29, 79, .18);
  image-rendering: pixelated;
}

.ticket-display code {
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--navy);
  background: #edf4ff;
  word-break: break-all;
}

.scanner-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
}

.scanner-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.scanner-video {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071d4f;
  object-fit: cover;
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ticket-scan-result {
  display: grid;
  gap: 10px;
}

.ticket-result {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ticket-result.valid {
  border-color: rgba(15, 143, 98, .35);
  background: rgba(15, 143, 98, .08);
}

.ticket-result.invalid {
  border-color: rgba(216, 59, 76, .3);
  background: rgba(216, 59, 76, .08);
}

.ticket-result span {
  color: var(--muted);
  font-size: 13px;
}

.process-intro {
  margin-bottom: 16px;
}

.process-intro h2 {
  margin: 6px 0;
  font-size: 28px;
}

.process-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.process-summary span {
  color: var(--muted);
  font-size: 12px;
}

.process-summary strong {
  margin-right: 4px;
  color: var(--navy);
  font-size: 15px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.process-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(7, 29, 79, .08);
}

.process-head {
  display: grid;
  gap: 6px;
}

.process-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.process-number,
.process-role,
.process-scope {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.process-number {
  color: var(--navy);
  background: rgba(255, 181, 29, .2);
}

.process-role {
  color: #075b43;
  background: rgba(15, 143, 98, .12);
}

.process-scope {
  color: var(--muted);
  background: #edf2f9;
}

.process-head h3 {
  margin: 0;
  font-size: 18px;
}

.process-head p,
.flow-result span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.flowchart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 14px;
  align-items: stretch;
}

.flow-step,
.flow-decision,
.flow-result {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.flow-step::after,
.flow-decision::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 14px;
  border-top: 2px solid rgba(0, 63, 145, .22);
}

.flow-step:nth-last-of-type(1)::after {
  display: none;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 181, 29, .28);
  font-size: 11px;
  font-weight: 900;
}

.flow-step strong,
.flow-decision strong,
.flow-result strong {
  font-size: 13px;
  line-height: 1.3;
}

.flow-step.start {
  border-color: rgba(15, 143, 98, .28);
  background: rgba(15, 143, 98, .07);
}

.flow-step.end {
  border-color: rgba(0, 63, 145, .24);
  background: #edf4ff;
}

.flow-decision {
  place-items: center;
  text-align: center;
  border-color: rgba(255, 181, 29, .45);
  background: rgba(255, 181, 29, .11);
}

.flow-decision span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
}

.flow-result {
  border-color: rgba(0, 63, 145, .22);
  background: linear-gradient(135deg, #fff, #edf4ff);
}

.hidden {
  display: none !important;
}

.log-viewer {
  width: 100%;
  max-height: 560px;
  margin: 18px 0 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dcecff;
  background: #06101f;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.smtp-test-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 63, 145, .06);
}

.smtp-test-status.success {
  color: var(--ok);
  border-color: rgba(15, 143, 98, .28);
  background: rgba(15, 143, 98, .08);
}

.smtp-test-status.error {
  color: var(--danger);
  border-color: rgba(216, 59, 76, .28);
  background: rgba(216, 59, 76, .08);
}

body.theme-alexa .side-rail {
  border-right-color: rgba(45, 114, 255, .28);
  background: rgba(2, 7, 16, .96);
  box-shadow: 18px 0 42px rgba(0, 0, 0, .32);
}

body.theme-alexa .brand-mini {
  width: 100%;
}

body.theme-alexa .brand-mark,
body.theme-alexa .brand-mini-copy,
body.theme-alexa .logo-emblem,
body.theme-alexa .legacy-brand-copy {
  display: none;
}

body.theme-alexa .alexa-brand-logo {
  display: none;
}

body.theme-alexa .alexa-side-logo {
  display: block;
}

body.theme-alexa .alexa-side-logo {
  width: min(220px, 100%);
}

body.theme-alexa .welcome-header .alexa-brand-logo {
  width: min(720px, 78vw);
  max-height: 132px;
}

body.theme-alexa .logo-lockup .alexa-brand-logo {
  width: min(520px, 54vw);
  max-height: 96px;
}

body.theme-alexa .nav-item {
  color: rgba(242, 244, 247, .86);
}

body.theme-alexa .nav-item.active,
body.theme-alexa .nav-item:hover {
  color: #fff;
  background: rgba(6, 200, 233, .1);
  box-shadow: inset 3px 0 0 var(--alexa-cyan);
}

body.theme-alexa .hero-header {
  min-height: 250px;
  border-bottom: 1px solid rgba(45, 114, 255, .22);
  background: #020710;
}

body.theme-alexa .hero-header::before {
  display: block;
  opacity: .72;
  background-image: url("assets/linie-tla-background.svg");
  background-position: right 30% center;
  background-repeat: no-repeat;
  background-size: min(980px, 74vw) auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%);
  mask-image: linear-gradient(90deg, transparent, #000 48%);
}

body.theme-alexa .workspace::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 96px;
  left: 280px;
  z-index: 0;
  pointer-events: none;
  opacity: .58;
  background-image: url("assets/linie-tla-background.svg");
  background-position: right top;
  background-repeat: repeat-y;
  background-size: min(1180px, 100%) auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

body.work-mode-only.theme-alexa .workspace::after {
  left: 0;
}

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

  .agenda-wide {
    grid-column: auto;
  }
  body.theme-alexa .workspace::after {
    left: 0;
  }
}

body.theme-alexa .hero-header,
body.theme-alexa .content,
body.theme-alexa .app-footer {
  position: relative;
  z-index: 1;
}

body.theme-alexa .brand-title,
body.theme-alexa .header-title {
  color: #f4f5f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

body.theme-alexa .section-kicker {
  color: var(--alexa-teal);
  letter-spacing: .18em;
}

body.theme-alexa .hero-copy,
body.theme-alexa .header-subtitle,
body.theme-alexa .small-muted,
body.theme-alexa .label,
body.theme-alexa .consent-check,
body.theme-alexa .info-card p,
body.theme-alexa .user-card span,
body.theme-alexa .moderator-card span,
body.theme-alexa .moderator-card p,
body.theme-alexa .user-bio {
  color: rgba(217, 225, 235, .72);
}

body.theme-alexa .user-card .participant-role {
  color: #12cdbd;
}

body.theme-alexa .card,
body.theme-alexa .tile,
body.theme-alexa .partner-card,
body.theme-alexa .agenda-card,
body.theme-alexa .profile-card,
body.theme-alexa .countdown-card,
body.theme-alexa .date-tab,
body.theme-alexa .moderator-card,
body.theme-alexa .info-card,
body.theme-alexa .scanner-panel,
body.theme-alexa .user-card,
body.theme-alexa .admin-row,
body.theme-alexa .process-card,
body.theme-alexa .flow-step,
body.theme-alexa .flow-decision,
body.theme-alexa .flow-result,
body.theme-alexa .modal,
body.theme-alexa .mail {
  color: rgba(242, 244, 247, .94);
  border-color: rgba(67, 108, 167, .36);
  background: #07111e;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .3);
}

body.theme-alexa .content .card {
  background: rgba(7, 17, 30, .84);
}

body.theme-alexa .networking-empty {
  color: rgba(217, 225, 235, .72);
  border-color: rgba(67, 108, 167, .36);
  background: #07111e;
}

body.theme-alexa .network-pagination__button,
body.theme-alexa .network-pagination__page {
  color: rgba(242, 244, 247, .94);
  border-color: rgba(67, 108, 167, .48);
  background: #07111e;
}

body.theme-alexa .network-pagination__page.active {
  color: #020710;
  border-color: var(--alexa-cyan);
  background: var(--alexa-cyan);
}

body.theme-alexa .network-pagination__status {
  color: rgba(217, 225, 235, .72);
}

body.theme-alexa .network-search__clear:hover,
body.theme-alexa .network-search__clear:focus-visible {
  color: #fff;
  background: rgba(6, 200, 233, .12);
}

body.theme-alexa .profile-email-note {
  color: rgba(217, 225, 235, .72);
}

body.theme-alexa .profile-contact-link {
  color: var(--alexa-cyan);
}

body.theme-alexa .tile:hover,
body.theme-alexa .date-tab.active,
body.theme-alexa .admin-tab.active {
  border-color: rgba(6, 200, 233, .58);
  background: #0a1927;
  box-shadow: inset 0 3px 0 var(--alexa-cyan), 0 16px 42px rgba(0, 0, 0, .28);
}

body.theme-alexa .agenda-item.featured .agenda-card {
  border-color: rgba(18, 205, 189, .62);
  background: linear-gradient(90deg, rgba(18, 205, 189, .12), #07111e 42%);
}

body.theme-alexa .agenda-item.featured .agenda-time {
  color: var(--alexa-cyan);
}

body.theme-alexa .agenda-language-switch button {
  color: rgba(242, 244, 247, .94);
  border-color: rgba(67, 108, 167, .48);
  background: #07111e;
}

body.theme-alexa .agenda-language-switch button.active {
  color: #020710;
  border-color: var(--alexa-cyan);
  background: var(--alexa-cyan);
}

body.theme-alexa .countdown-grid div,
body.theme-alexa .tile-icon,
body.theme-alexa .row-icon,
body.theme-alexa .work-mode-status,
body.theme-alexa .app-version-pill,
body.theme-alexa .ticket-display code,
body.theme-alexa .process-number,
body.theme-alexa .process-scope {
  color: #dce7f1;
  border-color: rgba(45, 114, 255, .3);
  background: #0b1a2a;
}

body.theme-alexa .process-role,
body.theme-alexa .participant-badge,
body.theme-alexa .work-mode-status.active,
body.theme-alexa .role-badge.admin {
  color: #021018;
  background: var(--alexa-teal);
}

body.theme-alexa .ticket,
body.theme-alexa .avatar {
  color: #fff;
  background: #0b1a2a;
  box-shadow: inset 0 0 0 1px rgba(6, 200, 233, .36);
}

body.theme-alexa .input,
body.theme-alexa select,
body.theme-alexa textarea,
body.theme-alexa .work-mode-toggle,
body.theme-alexa .admin-tab {
  color: #f2f4f7;
  border-color: rgba(67, 108, 167, .44);
  background: #040c17;
}

body.theme-alexa .input:focus,
body.theme-alexa select:focus,
body.theme-alexa textarea:focus {
  border-color: var(--alexa-cyan);
  box-shadow: 0 0 0 3px rgba(6, 200, 233, .13);
}

body.theme-alexa .input::placeholder,
body.theme-alexa textarea::placeholder {
  color: rgba(217, 225, 235, .42);
}

body.theme-alexa .primary-button,
body.theme-alexa .btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--alexa-purple), var(--alexa-blue) 42%, var(--alexa-cyan) 72%, var(--alexa-teal));
  box-shadow: 0 14px 34px rgba(45, 114, 255, .25);
}

body.theme-alexa .secondary-button,
body.theme-alexa .btn-secondary {
  color: #dce7f1;
  border: 1px solid rgba(6, 200, 233, .32);
  background: #0a1624;
}

body.theme-alexa .ghost-button,
body.theme-alexa .tiny-button,
body.theme-alexa .link-button {
  color: #dce7f1;
  border: 0;
  background: transparent;
}

body.theme-alexa .danger-button {
  color: #fff;
  border-color: rgba(255, 79, 115, .58);
  background: #9e2948;
}

body.theme-alexa .tiny-button.warn {
  color: var(--danger);
  border-color: transparent;
  background: transparent;
}

body.theme-alexa .icon-button,
body.theme-alexa .btn-user {
  color: #fff;
  border: 1px solid rgba(6, 200, 233, .18);
  background: rgba(10, 22, 36, .9);
}

body.theme-alexa .btn-user__icon,
body.theme-alexa .btn-user__avatar,
body.theme-alexa .badge {
  color: #fff;
  background: linear-gradient(135deg, var(--alexa-purple), var(--alexa-blue) 52%, var(--alexa-cyan));
}

body.theme-alexa .timeline::before {
  background: rgba(45, 114, 255, .5);
}

body.theme-alexa .timeline::after,
body.theme-alexa .agenda-item.featured .timeline::after {
  background: var(--alexa-cyan);
  box-shadow: 0 0 0 5px rgba(6, 200, 233, .12);
}

body.theme-alexa .scanner-video,
body.theme-alexa .log-viewer {
  border-color: rgba(45, 114, 255, .36);
  background: #01050c;
}

body.theme-alexa .toast {
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46);
}

body.theme-alexa .notification-panel--success {
  color: #9df2bf;
  background: rgba(23, 100, 58, .24);
}

body.theme-alexa .account-process__step.is-current {
  color: #a9d8ff;
  background: rgba(23, 69, 111, .34);
}

body.theme-alexa .account-process__step.is-complete {
  color: #9df2bf;
  background: rgba(23, 100, 58, .24);
}

body.theme-alexa .notification-panel--info {
  color: #a9d8ff;
  background: rgba(23, 69, 111, .34);
}

body.theme-alexa .notification-panel--warning {
  color: #ffe29a;
  background: rgba(139, 90, 0, .26);
}

body.theme-alexa .notification-panel--critical {
  color: #ffc2ca;
  background: rgba(143, 29, 44, .25);
}

body.theme-alexa .modal::backdrop {
  background: rgba(0, 3, 9, .78);
}

body.theme-alexa .side-rail,
body.theme-alexa .app-footer,
body.theme-alexa .bottom-nav {
  color: rgba(217, 225, 235, .7);
  border-color: rgba(45, 114, 255, .24);
  background-color: rgba(2, 7, 16, .96);
}

body.theme-alexa .app-footer a {
  color: rgba(242, 244, 247, .82);
}

@media (max-width: 760px) {
  /* Mobile: nawigacja zmienia się w pasek ikon, a treść ma pełną szerokość viewportu. */
  body {
    background: #fff;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    padding: 0;
  }

  .side-rail {
    position: sticky;
    top: 0;
    z-index: 7;
    min-height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(7, 29, 79, .08);
  }

  .brand-mini {
    justify-content: center;
    margin-bottom: 8px;
  }

  .brand-mini > span:not(.brand-mark) {
    display: none;
  }

  body.theme-alexa .brand-mini {
    margin-bottom: 6px;
  }

  body.theme-alexa .alexa-side-logo {
    width: min(300px, 82vw);
    max-height: 56px;
    margin: 0 auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .rail-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 46px;
    justify-content: center;
    width: 46px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
  }

  .nav-item span {
    display: none;
  }

  .nav-item svg {
    width: 23px;
    height: 23px;
  }

  .desktop-main {
    width: 100%;
  }

  .workspace {
    min-height: 100vh;
  }

  .statusbar {
    margin-bottom: 18px;
  }

  .status-right {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .content-language-switch button {
    min-width: 34px;
    min-height: 30px;
    padding: 0 7px;
  }

  .event-info-language-group {
    grid-template-columns: 1fr;
  }

  .btn-user {
    max-width: min(210px, 58vw);
    min-height: 34px;
    padding: 4px 8px 4px 5px;
    font-size: 12px;
  }

  .btn-user__icon,
  .btn-user__avatar {
    width: 25px;
    height: 25px;
  }

  .btn-user__name {
    max-width: 138px;
    font-size: 12px;
  }

  .btn-user__action {
    display: none;
  }

  .content {
    min-height: calc(100vh - 222px);
    width: 100%;
    max-width: 100vw;
    padding-left: 18px;
    padding-right: 18px;
    overflow-x: hidden;
  }

  .event-facts,
  .public-actions {
    grid-template-columns: 1fr;
  }

  .user-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-card {
    width: calc(50% - 4px);
    height: 96px;
    flex: 0 1 calc(50% - 4px);
  }

  .logo-card__tooltip {
    width: min(220px, 90vw);
  }

  .header-top,
  .brand-row {
    align-items: flex-start;
  }

  .page-brand-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo-lockup {
    gap: 10px;
  }

  .logo-emblem {
    width: 58px;
    height: 58px;
  }

  .logo-emblem strong {
    font-size: 36px;
  }

  body.theme-alexa .welcome-header .alexa-brand-logo {
    width: min(100%, 620px);
    max-height: 104px;
  }

  body.theme-alexa .logo-lockup .alexa-brand-logo {
    width: min(270px, calc(100vw - 118px));
    max-height: 64px;
  }

  .eu-stars span {
    font-size: 9px;
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--i) * 30deg))
      translateY(-25px)
      rotate(calc(var(--i) * -30deg));
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .section-title-row {
    gap: 2px;
  }

  .header-title {
    margin-top: 0;
    font-size: 20px;
  }

  .header-subtitle {
    font-size: 13px;
  }

  .date-tabs {
    display: flex;
    gap: 10px;
    margin: 0 -18px 12px;
    padding: 0 18px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .date-tabs::-webkit-scrollbar {
    display: none;
  }

  .date-tab {
    flex: 0 0 min(168px, 62vw);
    min-height: 68px;
  }

  .date-tab strong {
    font-size: 22px;
  }

  .agenda-list {
    gap: 7px;
    width: 100%;
  }

  .agenda-item {
    /* Na telefonie agenda przechodzi w jedną kolumnę bez osi czasu. */
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 0;
    width: 100%;
  }

  .agenda-time {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--navy);
    background: rgba(255, 181, 29, .22);
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  body.theme-alexa .agenda-time,
  body.theme-alexa .agenda-item.featured .agenda-time {
    padding: 0;
    color: var(--alexa-cyan);
    background: transparent;
  }

  .timeline {
    display: none;
  }

  .agenda-card {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .agenda-card strong,
  .agenda-card span,
  .agenda-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .partners {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .partner-card.platinum {
    grid-column: auto;
  }

  .app-footer {
    position: static;
    width: auto;
  }

  .scanner-grid {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .flowchart {
    grid-template-columns: 1fr;
  }

  .flow-step::after,
  .flow-decision::after {
    right: 50%;
    top: auto;
    bottom: -22px;
    height: 22px;
    width: 0;
    border-top: 0;
    border-left: 2px solid rgba(0, 63, 145, .22);
  }

  .ticket-modal {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .ticket-display canvas {
    width: min(96vw, 78vh);
  }
}

@media (max-width: 390px) {
  .hero-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tile-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }

  .partners {
    grid-template-columns: 1fr;
  }

  .logo-card {
    width: 100%;
    height: 88px;
    flex-basis: 100%;
  }

  .logo-card__tooltip {
    width: 90vw;
  }

  .partner-card.platinum {
    grid-column: auto;
  }

  .date-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-title {
    font-size: 25px;
  }

  .header-title {
    font-size: 19px;
  }

  .agenda-card {
    padding: 10px;
  }
}

.event-fact__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.organizer-contact {
  margin-top: 32px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.organizer-contact h2,
.organizer-contact p {
  margin-top: 0;
}

.public-information-card > .section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.4;
}

.organizer-contact p:last-child {
  margin-bottom: 0;
}

.organizer-contact a,
.event-document a {
  color: var(--accent);
  font-weight: 700;
}

.event-documents {
  margin-top: 32px;
}

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

.event-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.event-document:first-child {
  border-top: 0;
}

.event-document > div {
  display: grid;
  gap: 4px;
}

.agenda-pdf-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.agenda-pdf-inline .agenda-pdf-document {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.agenda-pdf-document .btn:disabled {
  cursor: wait;
  opacity: .65;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.file-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sponsors__heading {
  text-align: left;
}

.sponsors__row {
  justify-content: flex-start;
}

.logo-card__img {
  transform: scale(1.1);
}

.primary-button,
.btn-primary,
body.theme-alexa .primary-button,
body.theme-alexa .btn-primary {
  background: var(--navy-2);
  box-shadow: none;
}

.network-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.network-summary span,
.participation-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
}

.participation-status--approved {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 36%, var(--line));
}

.participation-status--pending,
.participation-pending {
  color: #8b5a00;
  border-color: rgba(255, 181, 29, .5);
  background: rgba(255, 181, 29, .1);
}

.participation-pending {
  margin-bottom: 20px;
  padding: 18px;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius-control);
}

.admin-user-filters {
  margin-bottom: 18px;
}

.admin-users-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.registration-options {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.registration-options[hidden] {
  display: none;
}

.registration-options legend {
  padding: 0 8px;
  font-weight: 800;
}

.profile-registration-data {
  align-self: start;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  background: var(--line);
}

.profile-data-grid > div {
  min-width: 0;
  padding: 14px;
  background: var(--paper);
}

.profile-data-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-data-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

body.theme-alexa .organizer-contact,
body.theme-alexa .event-document,
body.theme-alexa .network-summary span,
body.theme-alexa .participation-status,
body.theme-alexa .profile-data-grid > div {
  color: rgba(242, 244, 247, .9);
  background: #07111e;
}

body.theme-alexa .agenda-pdf-inline .agenda-pdf-document {
  border-color: rgba(67, 108, 167, .36);
  background: #07111e;
}

body.theme-alexa .participation-pending {
  color: #f3d48c;
  background: rgba(255, 181, 29, .08);
}

@media (max-width: 900px) {
  .admin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .agenda-pdf-inline {
    grid-template-columns: 1fr;
  }

  .event-document {
    grid-template-columns: 1fr;
  }

  .event-document .btn,
  .event-document .file-upload {
    width: 100%;
  }

  .admin-filter-grid,
  .profile-data-grid {
    grid-template-columns: 1fr;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .event-video-modal {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .admin-user-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .admin-user-edit-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .admin-user-edit-form__wide {
    grid-column: 1;
  }

  .admin-user-modal__actions {
    bottom: -16px;
    margin: 8px -16px -16px;
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  }

  .admin-user-modal__actions > button {
    flex: 1 1 140px;
  }
}
