:root {
  --bg: #de9e39;
  --ink: #13222b;
  --muted: #52656b;
  --line: #ded8c9;
  --panel: #de9e39;
  --panel-strong: #f7f4ec;
  --primary: #014b62;
  --primary-dark: #13222b;
  --secondary: #017287;
  --accent: #f06b18;
  --event-frame: #014b62;
  --button-bg: #014b62;
  --button-text: #ffffff;
  --selected-button-bg: #f06b18;
  --selected-button-text: #000000;
  --gold: #de9e39;
  --brown: #a75730;
  --blue: #014b62;
  --good: #277a4b;
  --danger: #a73333;
  --shadow: 0 18px 48px rgba(39, 43, 39, 0.14);
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--bg) 94%, #ffffff 6%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.65rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions,
.brand-lockup,
.event-identity,
.segmented,
.button-row,
.filter-row,
.inline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topbar-actions {
  justify-self: end;
  justify-content: flex-end;
}

.brand-lockup {
  justify-self: center;
  flex-direction: column;
  text-align: center;
  min-width: 0;
  gap: 0.35rem;
}

.topbar-navigation {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 0.55rem;
}

.topbar-nav-button svg,
.event-nav-home-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.topbar-eventanix-logo {
  display: block;
  width: clamp(5.25rem, 6vw, 6.75rem);
  height: clamp(5.25rem, 6vw, 6.75rem);
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 2px;
  background: #030404;
  filter: drop-shadow(0 8px 16px rgba(19, 34, 43, 0.18));
}

.topbar-nav-button.active {
  color: var(--button-text);
  background: var(--button-bg);
  border-color: var(--button-bg);
}

.topbar-nav-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.topbar-nav-button:disabled:hover {
  border-color: var(--line);
}

.app-brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 8px;
}

.app-brand-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.app-brand-logo {
  width: clamp(4.8rem, 8vw, 7.1rem);
  height: clamp(2rem, 3.7vw, 2.75rem);
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
  filter: drop-shadow(0 10px 18px rgba(19, 34, 43, 0.16));
}

.mode-button,
.secondary-button,
.primary-button,
.text-button,
.icon-button,
.admin-nav-button,
.chip,
.pill-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  background: transparent;
}

.mode-button,
.secondary-button,
.pill-button {
  border-color: var(--line);
  background: var(--panel-strong);
}

.primary-button {
  color: var(--button-text);
  background: var(--button-bg);
  border-color: var(--button-bg);
}

.mode-button.active,
.admin-nav-button.active,
.nav-button.active {
  color: var(--selected-button-text);
  background: var(--selected-button-bg);
  border-color: var(--selected-button-bg);
}

.secondary-button:hover,
.mode-button:hover,
.pill-button:hover,
.admin-nav-button:hover,
.nav-button:hover,
.icon-button:hover {
  border-color: var(--primary);
}

.primary-button {
  font-weight: 700;
}

.text-button {
  min-height: auto;
  padding: 0.35rem 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

.icon-button {
  width: 2.5rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: var(--line);
  background: var(--panel-strong);
  font-weight: 800;
}

.profile-top-button {
  color: var(--selected-button-text);
  background: var(--selected-button-bg);
  border-color: var(--selected-button-bg);
  font-weight: 800;
}

.install-app-button {
  color: #f7d375;
  background: #111111;
  border-color: #c8922d;
  font-weight: 800;
  white-space: nowrap;
}

.install-app-button:hover {
  border-color: #f0c35a;
}

.workspace {
  width: min(1180px, calc(100vw - 2rem));
  margin: 1.25rem auto 2rem;
}

.site-footer {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto 1.5rem;
}

.site-footer-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.site-footer-block {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-height: 5.5rem;
  padding: 0.75rem 1rem;
}

.site-footer-block + .site-footer-block {
  border-left: 1px solid var(--line);
}

.site-footer-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.site-footer-logo {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-footer-link {
  color: var(--primary);
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.visitor-workspace {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.visitor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  color: #fff;
  background: var(--event-frame);
}

.event-identity {
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.85rem;
}

.event-logo {
  width: clamp(3.5rem, 10vw, 5.5rem);
  height: clamp(3.5rem, 10vw, 5.5rem);
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgba(19, 34, 43, 0.22));
}

.visitor-header .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.event-organizer {
  margin: 0.2rem 0 0;
  color: #fff;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 850;
  line-height: 1.15;
}

.event-sponsor {
  flex: 0 1 17rem;
  min-width: 12rem;
  margin-left: auto;
  text-align: right;
}

.event-sponsor-label {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-sponsor-card {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  max-width: 100%;
  min-height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  color: #fff;
  background: rgba(247, 244, 236, 0.1);
  text-decoration: none;
}

.event-sponsor-card[href]:hover {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(247, 244, 236, 0.16);
}

.event-sponsor-logo {
  width: 4.2rem;
  max-height: 2.45rem;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 4px 8px rgba(19, 34, 43, 0.18));
}

.event-sponsor-name {
  min-width: 0;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.event-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  overflow-x: visible;
  padding: 0.6rem clamp(0.7rem, 1.8vw, 1.1rem);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.event-nav-button {
  flex: 0 0 auto;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  background: var(--panel-strong);
  font-size: 0.95rem;
  font-weight: 800;
}

.event-nav-home-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  padding: 0;
  color: var(--primary);
}

.event-nav-home-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.event-nav-button.active {
  color: var(--selected-button-text);
  background: var(--selected-button-bg);
  border-color: var(--selected-button-bg);
  box-shadow: 0 8px 18px rgba(240, 107, 24, 0.18);
}

.event-nav-button:hover {
  border-color: var(--primary);
}

.content-panel {
  min-height: 620px;
  padding: clamp(0.85rem, 2.5vw, 1.5rem);
  padding-bottom: 5.75rem;
}

.eventanix-share-view {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(0.6rem, 2vw, 1.25rem) 0;
  text-align: center;
}

.eventanix-share-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.eventanix-share-heading img {
  width: clamp(3.5rem, 10vw, 5rem);
  height: clamp(3.5rem, 10vw, 5rem);
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.eventanix-share-heading .eyebrow,
.eventanix-share-heading h2,
.eventanix-share-instruction,
.eventanix-share-note {
  margin-bottom: 0;
}

.eventanix-share-heading div {
  text-align: left;
}

.eventanix-share-instruction,
.eventanix-share-note {
  max-width: 36rem;
}

.eventanix-qr-card {
  width: min(100%, 27rem);
  margin: 0;
  padding: clamp(0.8rem, 2.5vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.eventanix-qr-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  image-rendering: pixelated;
}

.eventanix-qr-card figcaption {
  margin-top: 0.75rem;
}

.eventanix-qr-card a {
  color: #13222b;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.eventanix-share-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.event-snapshot,
.map-preview,
.panel,
.admin-card,
.session-card,
.person-card,
.exhibitor-card,
.food-card,
.activity-card,
.notification-settings-panel,
.notification-card,
.gallery-upload-panel,
.gallery-card,
.ticket-product-card,
.shop-product-card,
.ticket-cart-panel,
.ticket-pass,
.info-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.event-snapshot {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background:
    linear-gradient(135deg, rgba(247, 244, 236, 0.93), rgba(247, 244, 236, 0.84)),
    var(--panel-strong);
}

.home-event-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.42fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  min-height: clamp(18rem, 38vw, 28rem);
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 3rem);
  color: #fff;
  background-color: #014b62;
  background-image:
    linear-gradient(100deg, rgba(1, 75, 98, 0.98) 0%, rgba(1, 75, 98, 0.9) 44%, rgba(19, 34, 43, 0.86) 100%),
    var(--home-hero-image, none),
    radial-gradient(circle at 78% 40%, rgba(222, 158, 57, 0.24), transparent 32rem),
    linear-gradient(100deg, rgba(1, 75, 98, 0.98) 0%, rgba(1, 75, 98, 0.92) 45%, rgba(19, 34, 43, 0.96) 100%);
  background-position: center;
  background-size: auto, cover, auto, auto;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.home-event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(19, 34, 43, 0.82), rgba(19, 34, 43, 0.38)),
    var(--home-hero-logo, none) right clamp(1rem, 5vw, 3rem) center / min(35rem, 48vw) auto no-repeat;
  opacity: 0.42;
}

.home-event-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(19, 34, 43, 0.68)),
    repeating-linear-gradient(90deg, rgba(222, 158, 57, 0.22) 0 0.12rem, transparent 0.12rem 5rem);
}

.home-event-hero-copy {
  max-width: 42rem;
}

.home-event-hero .eyebrow {
  color: #de9e39;
}

.home-event-hero h2 {
  max-width: 15ch;
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  line-height: 0.98;
}

.home-event-hero p:not(.eyebrow) {
  max-width: 40rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-event-hero-logo {
  display: grid;
  justify-items: center;
  align-self: stretch;
  min-height: 12rem;
}

.home-event-hero-logo img {
  width: min(100%, 17rem);
  max-height: 100%;
  align-self: center;
  object-fit: contain;
  filter: drop-shadow(0 1.2rem 1.8rem rgba(0, 0, 0, 0.28));
}

.home-sponsors {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(0.9rem, 2.2vw, 1.25rem);
  background: color-mix(in srgb, var(--panel-strong) 88%, #ffffff 12%);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.sponsor-tier {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.18fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.sponsor-tier h3 {
  margin: 0.4rem 0 0;
  color: var(--primary);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.sponsor-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.sponsor-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 5.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--panel-strong);
  text-decoration: none;
}

.sponsor-card[href]:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 26px rgba(19, 34, 43, 0.12);
}

.sponsor-card img,
.sponsor-initials {
  flex: 0 0 auto;
  width: 4.6rem;
  height: 3.3rem;
  border-radius: 6px;
}

.sponsor-card img {
  object-fit: contain;
}

.sponsor-initials {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.sponsor-card strong,
.sponsor-card small {
  display: block;
}

.sponsor-card small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.notification-settings-panel,
.notification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

.notification-settings-panel {
  margin-bottom: 1rem;
}

.notification-card.is-unread {
  border-left: 5px solid var(--accent);
}

.important-notification-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  border: 2px solid var(--selected-button-bg);
  border-radius: 8px;
  padding: 1rem;
  background: color-mix(in srgb, var(--panel-strong) 72%, var(--selected-button-bg) 28%);
  box-shadow: 0 12px 28px rgba(19, 34, 43, 0.12);
}

.important-notification-banner h3,
.important-notification-banner p {
  margin-bottom: 0.35rem;
}

.important-notification-banner .button-row {
  justify-content: flex-end;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  font-weight: 700;
}

.stat-grid,
.quick-grid,
.card-grid,
.admin-grid,
.form-grid {
  display: grid;
  gap: 0.85rem;
}

.quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 1rem 0;
}

.quick-tile {
  display: flex;
  min-height: 7.5rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem;
  color: var(--ink);
  background: var(--panel-strong);
  text-align: left;
}

.quick-tile strong {
  font-size: 1rem;
}

.tile-icon,
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.nav-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  color: currentColor;
  background: transparent;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon .fill-icon {
  fill: currentColor;
  stroke: none;
}

.map-preview {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #e9efe9;
}

.map-preview.fallback-map,
.map-preview.compact-map.image-map {
  aspect-ratio: 16 / 9;
}

.map-preview.full-map.image-map {
  min-height: 0;
  overflow: visible;
}

.full-map {
  min-width: min(960px, 100%);
}

.venue-art {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: #edf2ed;
}

.compact-map.image-map .map-image {
  height: 100%;
}

.map-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.35rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 8px 18px rgba(176, 71, 47, 0.3);
  font-size: 0.82rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border-radius: inherit;
}

.map-grid-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 1.65rem;
  height: 1.65rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95) 0 14%, transparent 15%),
    linear-gradient(145deg, #ff5a55, #c41116);
  box-shadow: 0 0 0 0.35rem rgba(196, 17, 22, 0.16), 0 12px 22px rgba(19, 34, 43, 0.32);
  transform: translate(-50%, -92%);
  pointer-events: none;
}

.map-grid-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 0.2rem);
  width: 0.42rem;
  height: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(#f7f4ec, #8b8b8b);
  box-shadow: 2px 3px 4px rgba(19, 34, 43, 0.28);
  transform: translateX(-50%) rotate(18deg);
  transform-origin: top center;
}

.map-grid-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 1rem);
  width: 1rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(19, 34, 43, 0.22);
  filter: blur(1px);
  transform: translateX(-50%);
}

.map-booth-area {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid rgba(240, 107, 24, 0.84);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(240, 107, 24, 0.12);
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  font-weight: 900;
  cursor: pointer;
}

.map-booth-area span {
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(176, 71, 47, 0.24);
}

.map-booth-area.active,
.map-booth-area:focus-visible {
  outline: 3px solid rgba(240, 107, 24, 0.42);
  outline-offset: 3px;
  background: rgba(240, 107, 24, 0.22);
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  z-index: 1;
  pointer-events: none;
}

.map-grid-cell {
  pointer-events: auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(19, 34, 43, 0.2);
  color: rgba(19, 34, 43, 0.52);
  background: transparent;
  font-size: clamp(0.58rem, 0.8vw, 0.78rem);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
}

.map-grid-cell span {
  display: inline-block;
  margin: 0.12rem;
  padding: 0.05rem 0.18rem;
  border-radius: 4px;
  background: rgba(247, 244, 236, 0.62);
}

.map-grid-cell.occupied span {
  color: #fff;
  background: var(--secondary);
}

.map-grid-cell.active {
  border: 3px solid var(--accent);
  background: rgba(240, 107, 24, 0.14);
}

.map-grid-cell.active span {
  color: #fff;
  background: var(--accent);
}

.map-grid-overlay:not(.show-grid) .map-grid-cell {
  border-color: transparent;
  color: transparent;
  background: transparent;
}

.map-grid-overlay:not(.show-grid) .map-grid-cell span {
  display: none;
}

.map-grid-overlay:not(.show-grid) .map-grid-cell.active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.map-grid-overlay:not(.show-grid) .map-grid-cell:hover {
  background: rgba(1, 75, 98, 0.08);
}

.admin-map-preview {
  min-height: 0;
}

.admin-map-preview:empty {
  display: none;
}

.admin-grid-preview-panel {
  margin-top: 0;
  padding: 1rem;
}

.admin-preview-stage {
  max-height: 560px;
}

.map-pin.location {
  background: var(--primary);
}

.map-pin.exhibitor {
  background: var(--accent);
}

.map-pin.food,
.map-pin.cafe {
  background: #a75730;
}

.map-pin.entrance {
  background: #017287;
}

.map-pin.wc,
.map-pin.info {
  background: #13222b;
}

.map-pin.active,
.map-pin:focus-visible {
  outline: 3px solid rgba(240, 107, 24, 0.38);
  outline-offset: 3px;
}

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

.session-card,
.person-card,
.exhibitor-card,
.food-card,
.activity-card,
.info-card,
.news-card,
.panel,
.admin-card {
  padding: 1rem;
}

.person-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.speaker-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #edf2ed;
}

.speaker-photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(1, 75, 98, 0.94), rgba(240, 107, 24, 0.78)),
    var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.speaker-session-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0;
}

.speaker-session-link {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  border: 1px solid rgba(1, 75, 98, 0.18);
  border-radius: 8px;
  padding: 0.7rem;
  color: var(--ink);
  background: rgba(1, 114, 135, 0.06);
  text-align: left;
}

.speaker-session-link strong {
  color: var(--primary);
}

.speaker-session-link span {
  color: var(--muted);
  font-size: 0.88rem;
}

.session-card {
  display: grid;
  grid-template-columns: minmax(8rem, 0.24fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.session-media {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.session-time {
  color: var(--primary);
  font-weight: 800;
}

.session-speaker-photo {
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #edf2ed;
}

.session-speaker-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(1, 75, 98, 0.94), rgba(240, 107, 24, 0.78)),
    var(--primary);
  font-weight: 800;
}

.activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  gap: 1rem;
  align-items: start;
}

.activity-card.is-booked {
  border-left: 0.35rem solid var(--secondary);
}

.activity-card-main {
  min-width: 0;
}

.activity-card-side {
  display: grid;
  gap: 0.55rem;
  justify-items: stretch;
  text-align: center;
}

.activity-card-side strong {
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.activity-card-side span {
  color: var(--muted);
  font-size: 0.88rem;
}

.payment-note,
.activity-bookers {
  margin-top: 0.75rem;
  border: 1px solid rgba(1, 114, 135, 0.14);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(1, 114, 135, 0.05);
}

.competition-entry-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.competition-entry-form textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
}

.gallery-view {
  display: grid;
  gap: 1rem;
}

.gallery-upload-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.gallery-upload-panel p {
  margin-bottom: 0;
}

.gallery-upload-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.gallery-upload-form input[type="file"],
.gallery-upload-form input[type="text"],
.gallery-upload-form input:not([type]) {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--panel-strong);
}

.gallery-grid,
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--panel-strong);
}

.gallery-card-body {
  padding: 0.85rem;
}

.gallery-card-body h3 {
  margin-bottom: 0.3rem;
  overflow-wrap: anywhere;
}

.admin-gallery-card.is-archived {
  opacity: 0.64;
}

.tickets-view {
  display: grid;
  gap: 1rem;
}

.ticket-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: color-mix(in srgb, var(--panel-strong) 82%, #ffffff 18%);
}

.ticket-shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: start;
}

.ticket-product-grid,
.ticket-pass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.ticket-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  padding: 0;
}

.ticket-product-card.is-selected {
  border-color: var(--selected-button-bg);
  box-shadow: 0 10px 24px rgba(240, 107, 24, 0.14);
}

.ticket-art {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-height: 5.25rem;
  border: 0;
  border-bottom: 1px solid rgba(1, 75, 98, 0.16);
  padding: 0.95rem 1rem;
  color: #111;
  background:
    linear-gradient(135deg, var(--gold), var(--selected-button-bg)),
    var(--selected-button-bg);
  font-family: var(--font-heading);
  font-weight: 900;
}

.ticket-art span {
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-art strong {
  font-size: 1.45rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.ticket-product-body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.95rem;
}

.ticket-product-body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.ticket-product-body p {
  margin: 0;
}

.ticket-product-body > p:not(.eyebrow) {
  color: var(--ink);
  line-height: 1.45;
}

.shop-view {
  display: grid;
  gap: 1rem;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.shop-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.shop-product-image,
.shop-product-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(19, 34, 43, 0.08);
}

.shop-product-image {
  display: block;
  object-fit: contain;
  background: var(--panel-strong);
}

.shop-product-placeholder {
  display: grid;
  place-items: center;
  color: #111;
  background:
    linear-gradient(135deg, var(--gold), var(--selected-button-bg)),
    var(--selected-button-bg);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
}

.shop-product-body {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
}

.shop-product-body h3,
.shop-product-body p {
  margin: 0;
}

.shop-product-body h3 {
  font-size: 1.18rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.shop-price-row {
  margin: 0.3rem 0 0;
}

.admin-table-thumb {
  display: block;
  width: 4.5rem;
  height: 3.25rem;
  border-radius: 6px;
  object-fit: contain;
  background: var(--panel-strong);
}

.ticket-meta-row,
.ticket-price-row,
.ticket-cart-line,
.ticket-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ticket-meta-row {
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.3rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.ticket-price-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.ticket-price-row strong {
  color: var(--primary);
  font-size: 1.35rem;
}

.ticket-price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 2.6rem 2.6rem 2.6rem;
  gap: 0.4rem;
  align-items: center;
  justify-content: start;
}

.quantity-stepper strong {
  text-align: center;
}

.ticket-cart-panel {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
}

.ticket-cart-lines {
  display: grid;
  gap: 0.55rem;
}

.ticket-cart-total {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  font-size: 1.1rem;
}

.ticket-cart-line {
  align-items: flex-start;
}

.ticket-cart-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ticket-payment-methods {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.ticket-payment-methods legend {
  padding: 0 0.25rem;
  color: var(--muted);
  font-weight: 800;
}

.ticket-payment-methods label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 1180px) {
  .ticket-shop-layout {
    grid-template-columns: 1fr;
  }

  .ticket-cart-panel {
    position: static;
  }
}

.my-tickets-section {
  display: grid;
  gap: 0.85rem;
}

.ticket-pass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(1, 75, 98, 0.08), transparent 58%),
    var(--panel-strong);
}

.ticket-pass.is-used {
  opacity: 0.68;
}

.ticket-code {
  margin: 0.75rem 0 0;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ticket-qr {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.16rem;
  align-self: start;
  aspect-ratio: 1;
  border: 0.45rem solid #fff;
  border-radius: 8px;
  padding: 0.25rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ticket-qr span {
  border-radius: 2px;
  background: transparent;
}

.ticket-qr span.is-filled {
  background: #13222b;
}

.meta-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.chip {
  min-height: auto;
  padding: 0.22rem 0.5rem;
  border-color: var(--line);
  color: var(--muted);
  background: var(--panel-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-chip {
  border-color: rgba(36, 92, 84, 0.2);
  color: var(--primary);
  background: rgba(36, 92, 84, 0.08);
}

.status-draft {
  color: #7a4d1c;
  background: rgba(222, 158, 57, 0.18);
}

.status-archived {
  color: #6d6d6d;
  background: #ededed;
}

.favorite-button,
.schedule-action-button {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 800;
}

.favorite-button.active,
.schedule-action-button.active {
  color: #fff;
  background: var(--secondary);
  border-color: var(--secondary);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.schedule-tabs,
.schedule-day-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  margin-bottom: 0.85rem;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.schedule-tabs button,
.schedule-day-row button {
  flex: 0 0 auto;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  background: var(--panel-strong);
  font-weight: 800;
}

.schedule-tabs button.active,
.schedule-day-row button.active {
  color: var(--selected-button-text);
  background: var(--selected-button-bg);
  border-color: var(--selected-button-bg);
}

.schedule-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 2rem;
  color: var(--muted);
  background: rgba(247, 244, 236, 0.62);
  text-align: center;
}

.schedule-empty h3 {
  color: var(--ink);
  font-size: 1.6rem;
}

.schedule-day {
  margin-top: 1rem;
}

.schedule-timeline {
  display: grid;
  gap: 0.75rem;
}

.schedule-timeline-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
}

.schedule-timeline-time {
  padding-top: 0.35rem;
  color: var(--primary);
  font-weight: 800;
}

.schedule-timeline-card,
.schedule-free-gap {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--panel-strong);
}

.schedule-timeline-card {
  border-left: 0.35rem solid var(--secondary);
}

.schedule-timeline-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.schedule-timeline-content .session-speaker-photo {
  width: 3.75rem;
  height: 3.75rem;
}

.schedule-timeline-details {
  min-width: 0;
}

.schedule-free-gap {
  border-style: dashed;
  color: var(--muted);
  background: rgba(247, 244, 236, 0.62);
  text-align: center;
}

.schedule-free-gap strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--ink);
}

.info-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.info-overview-card {
  background: var(--panel-strong);
}

.info-hours-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.info-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.info-hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.45rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, #ffffff 6%);
  backdrop-filter: blur(12px);
}

.nav-button {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-height: 3.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
}

.filter-row {
  margin: 0 0 1rem;
  align-items: stretch;
}

.filter-row input,
.filter-row select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--panel-strong);
}

.filter-row input {
  flex: 1 1 240px;
}

.filter-row select {
  flex: 0 1 180px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1rem;
}

.admin-sidebar,
.admin-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  padding: 1rem;
}

.admin-session-panel {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.85rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.admin-session-panel strong {
  overflow-wrap: anywhere;
}

#admin-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.admin-nav-button {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  text-align: left;
}

.admin-content {
  min-height: 720px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

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

.admin-card strong {
  display: block;
  font-size: 1.8rem;
}

.event-day-editor {
  display: grid;
  gap: 0.75rem;
}

.event-day-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
  gap: 0.75rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.event-day-row label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.event-day-row label span {
  font-size: 0.82rem;
}

.admin-logo-preview {
  display: block;
  max-width: 180px;
  max-height: 70px;
  margin-top: 0.5rem;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  padding: 0.35rem;
}

.admin-hero-preview {
  max-width: min(100%, 28rem);
  max-height: 10rem;
}

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

.field.full {
  grid-column: 1 / -1;
}

.color-input-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.color-input-row input[type="color"] {
  min-height: 2.7rem;
  padding: 0.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.button-row.full {
  grid-column: 1 / -1;
}

.admin-checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.admin-checkbox-list label,
.admin-speaker-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-checkbox-list label {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: var(--panel-strong);
}

.admin-checkbox-list input {
  width: auto;
  min-height: auto;
}

.admin-thumb {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #edf2ed;
}

.admin-thumb-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(1, 75, 98, 0.94), rgba(240, 107, 24, 0.78)),
    var(--primary);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--panel-strong);
}

th,
td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.admin-log-filters {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 0.35fr) minmax(12rem, 0.35fr);
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0;
}

.audit-log-table td {
  max-width: 24rem;
}

.audit-field-tags {
  margin-top: 0.45rem;
}

.audit-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.audit-details pre {
  max-width: 32rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .admin-log-filters {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.5rem;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
}

.contact-list a {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.map-stage {
  overflow: auto;
  height: clamp(22rem, 68vh, 44rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2ed;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
}

.map-stage.is-grabbing {
  cursor: grabbing;
}

.map-stage.is-dragging,
.map-stage.is-dragging * {
  cursor: grabbing;
}

.map-stage img {
  -webkit-user-drag: none;
}

.map-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border-radius: 0;
}

.map-stage.admin-preview-stage {
  height: clamp(20rem, 56vh, 35rem);
  max-height: 560px;
}

.zoomable-map {
  width: max-content;
  min-width: 100%;
  transform-origin: top left;
  transition: transform 160ms ease;
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.map-tabs button,
.map-marker-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-strong);
}

.map-tabs button {
  padding: 0.55rem 0.8rem;
  font-weight: 800;
}

.map-tabs button.active,
.map-marker-list button.active {
  border-color: var(--primary);
  background: rgba(1, 75, 98, 0.08);
}

.map-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.map-marker-details h4 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.1rem;
}

.linked-exhibitor-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.linked-exhibitor-card {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.linked-exhibitor-card h5 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.map-marker-list {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.map-marker-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.map-marker-list span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
}

.notice {
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  background: rgba(222, 158, 57, 0.14);
}

.locked {
  display: grid;
  gap: 1rem;
  place-items: start;
  min-height: 260px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.my-page {
  display: grid;
  gap: 1.25rem;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar,
.participant-avatar {
  display: grid;
  width: 4.5rem;
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 1.4rem;
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar img,
.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-avatar.small {
  width: 3.2rem;
  font-size: 1rem;
}

.profile-image-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-image-picker input[type="file"] {
  max-width: 100%;
}

.profile-qr-card {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 9.5rem;
}

.profile-qr-card span {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
}

.qr-code {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 2px;
  width: 8.6rem;
  aspect-ratio: 1;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.qr-code span {
  border-radius: 1px;
  background: transparent;
}

.qr-code span.filled {
  background: #07141d;
}

.profile-tile {
  display: grid;
  gap: 0.35rem;
  min-height: 6.5rem;
  align-content: center;
  justify-items: start;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--panel-strong);
  text-align: left;
  cursor: pointer;
}

.profile-tile span {
  font-size: 1.6rem;
  font-weight: 900;
}

.profile-tile small {
  color: var(--muted);
  font-weight: 800;
}

.participant-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.participant-row,
.contact-request-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.participant-row:last-child,
.contact-request-card:last-child {
  border-bottom: 0;
}

.contact-request-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.compact-session {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

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

.switch-row input {
  width: 1.2rem;
  height: 1.2rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 33, 31, 0.48);
}

.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal header,
.modal footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.modal footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  padding: 1rem;
}

.install-instructions {
  display: grid;
  gap: 0.85rem;
  line-height: 1.55;
}

.install-instructions p,
.install-instructions ol {
  margin: 0;
}

.install-instructions ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.35rem;
}

.confirm-message {
  margin: 0;
  line-height: 1.55;
}

.danger-button {
  background: #b42318;
  color: #fff;
}

.danger-button:hover {
  background: #8f1d14;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 110;
  max-width: min(420px, calc(100vw - 2rem));
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--primary-dark);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .home-hero,
  .home-event-hero,
  .profile-grid,
  .map-detail-grid,
  .info-overview-grid,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .home-event-hero::before {
    background:
      linear-gradient(90deg, rgba(19, 34, 43, 0.84), rgba(19, 34, 43, 0.56)),
      var(--home-hero-logo, none) right 1rem bottom 1rem / min(18rem, 54vw) auto no-repeat;
  }

  .home-event-hero-logo {
    justify-items: start;
    min-height: 0;
  }

  .quick-grid,
  .card-grid,
  .gallery-grid,
  .admin-gallery-grid,
  .shop-product-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "nav actions"
      "brand brand";
    align-items: center;
    gap: 0.55rem;
    padding-inline: 0.75rem;
  }

  .topbar-navigation {
    grid-area: nav;
    gap: 0.35rem;
  }

  .topbar-eventanix-logo {
    width: 3.25rem;
    height: 3.25rem;
  }

  .brand-lockup {
    grid-area: brand;
  }

  .topbar-actions {
    grid-area: actions;
    gap: 0.35rem;
  }

  .topbar h1 {
    font-size: 1.12rem;
  }

  .app-brand-logo {
    width: 4.3rem;
    height: 1.9rem;
  }

  .workspace {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .visitor-workspace,
  .admin-sidebar,
  .admin-content {
    border-radius: 0;
  }

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

  .event-identity {
    align-items: flex-start;
  }

  .event-sponsor {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    text-align: left;
  }

  .event-sponsor-card {
    justify-content: flex-start;
    width: 100%;
  }

  .app-brand-logo {
    width: min(100%, 8.75rem);
  }

  .quick-grid,
  .card-grid,
  .gallery-grid,
  .admin-gallery-grid,
  .shop-product-grid,
  .gallery-upload-form,
  .form-grid,
  .admin-grid,
  .admin-checkbox-list,
  .event-day-row {
    grid-template-columns: 1fr;
  }

  .session-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .activity-card {
    grid-template-columns: 1fr;
  }

  .ticket-shop-layout,
  .ticket-product-card,
  .ticket-pass,
  .important-notification-banner,
  .notification-settings-panel,
  .notification-card {
    grid-template-columns: 1fr;
  }

  .ticket-cart-panel {
    position: static;
  }

  .ticket-qr {
    width: min(8rem, 100%);
  }

  .activity-card-side {
    justify-items: start;
    text-align: left;
  }

  .session-media {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
  }

  .home-event-hero {
    min-height: 0;
  }

  .home-event-hero h2 {
    max-width: 12ch;
  }

  .home-event-hero-logo img {
    width: min(10rem, 48vw);
  }

  .section-heading-row,
  .sponsor-tier {
    display: block;
  }

  .site-footer {
    width: 100%;
    margin-bottom: 0;
  }

  .site-footer-panel {
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-footer-block + .site-footer-block {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .sponsor-tier h3 {
    margin-bottom: 0.7rem;
  }

  .session-speaker-photo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .schedule-timeline-row {
    grid-template-columns: 1fr;
  }

  .schedule-timeline-time {
    padding-top: 0;
  }

  .session-time {
    grid-column: 1 / -1;
  }

  .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-button {
    min-height: 3.5rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "nav"
      "actions"
      "brand";
  }

  .topbar-navigation,
  .topbar-actions {
    justify-self: center;
    justify-content: center;
  }

  .topbar-eventanix-logo {
    width: 3.75rem;
    height: 3.75rem;
  }
}
