:root {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1a2a42;
  --muted: #63738a;
  --border: rgba(20, 40, 72, 0.14);
  --primary: #1f4b99;
  --accent: #2b6fd3;
  --tertiary: #8bc53f;
  --shadow: 0 10px 28px rgba(19, 38, 70, 0.08);
  --font-body: "Segoe UI", Arial, sans-serif;
  --font-ui: Montserrat, "Segoe UI", Arial, sans-serif;
  --font-doc: Calibri, Arial, "Segoe UI", sans-serif;
  --font-display: Montserrat, "Segoe UI", Arial, sans-serif;
  --font-condensed: "Bebas Neue", Montserrat, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.55 var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(31, 75, 153, 0.08), transparent 42%),
    radial-gradient(circle at top left, rgba(43, 111, 211, 0.06), transparent 44%),
    var(--bg);
}

body.zentry-booting {
  overflow: hidden;
}

body.zentry-booting main.page {
  opacity: 0;
  transform: translateY(8px) scale(0.995);
}

body.zentry-ready main.page {
  animation: zentryPageSettle 360ms ease-out both;
}

#zentry-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 18%, rgba(12, 108, 242, 0.26), transparent 38%),
    radial-gradient(circle at 80% 82%, rgba(14, 165, 164, 0.22), transparent 35%),
    #f4f7ff;
  opacity: 1;
  transition: opacity 320ms ease;
}

#zentry-splash.is-done {
  opacity: 0;
  pointer-events: none;
}

#zentry-welcome {
  position: fixed;
  inset: 0;
  z-index: 1995;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(9, 25, 49, 0.36);
  backdrop-filter: blur(3px);
}

#zentry-welcome.is-done {
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.zentry-welcome-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid rgba(16, 33, 60, 0.15);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(10, 30, 58, 0.26);
  padding: 1.3rem 1.1rem 1.15rem;
  text-align: center;
}

.zentry-welcome-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.45rem;
}

.zentry-welcome-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #54709b;
}

.zentry-welcome-card h2 {
  margin: 0.2rem 0 0.48rem;
  font-size: 1.5rem;
  color: #173f79;
}

.zentry-welcome-card p {
  margin: 0 0 0.9rem;
  color: #4f6484;
}

.zentry-splash-shell {
  position: relative;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.zentry-splash-rings {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  border: 1px solid rgba(15, 49, 111, 0.18);
  animation: zentryPulse 1.6s ease-out infinite;
}

.zentry-splash-logo {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 33, 60, 0.14);
  padding: 0.75rem;
  box-shadow: 0 14px 34px rgba(11, 62, 148, 0.24);
  animation: zentryLogoIn 1s ease-out both, zentryFloat 2.6s ease-in-out 1s infinite;
  position: relative;
  z-index: 1;
}

.zentry-splash-title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #1240a3;
  letter-spacing: 0.01em;
}

.zentry-splash-sub {
  margin: 0;
  font-family: var(--font-ui);
  color: #4b5f86;
  font-size: 0.9rem;
}

@keyframes zentryLogoIn {
  0% {
    transform: scale(0.7) rotate(-7deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.07) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes zentryPulse {
  0% {
    transform: scale(0.84);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes zentryFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes zentryPageSettle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

input,
textarea,
select,
table,
th,
td {
  font-family: var(--font-doc);
}

img {
  max-width: 100%;
  display: block;
}

.page {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 5rem;
}

.page-home {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f2457;
  color: #dbe7ff;
  padding: 1rem 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.admin-brand h1 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}

.admin-brand p {
  margin: 0.2rem 0;
}

.admin-nav-group {
  margin-top: 1rem;
}

.admin-nav-group h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fbbef;
}

.admin-nav-links {
  display: grid;
  gap: 0.35rem;
}

.admin-nav-link {
  display: block;
  padding: 0.52rem 0.7rem;
  border-radius: 10px;
  color: #dbe7ff;
  border: 1px solid transparent;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-link.active {
  background: rgba(84, 140, 242, 0.22);
  border-color: rgba(130, 176, 255, 0.5);
  color: #fff;
}

.admin-sidebar-actions {
  margin-top: 1rem;
}

.admin-main {
  padding: 1rem;
  background: #f4f7fc;
}

.admin-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.admin-main-head h2 {
  margin: 0;
}

.admin-content {
  display: grid;
  gap: 1rem;
}

#zentry-install-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 1rem));
  z-index: 1000;
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #0f2457;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(6, 15, 40, 0.4);
}

#zentry-install-banner[hidden] {
  display: none;
}

#zentry-install-banner .install-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

#zentry-install-banner .install-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

#zentry-install-banner .button {
  min-height: 40px;
  padding: 0.55rem 1rem;
}

#zentry-install-banner .button.ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

#zentry-permissions-banner {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 1rem));
  z-index: 1001;
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(20, 40, 72, 0.18);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(12, 29, 57, 0.2);
}

#zentry-permissions-banner[hidden] {
  display: none;
}

#zentry-permissions-banner .perm-title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 800;
  color: #183463;
}

#zentry-permissions-banner .perm-text {
  margin: 0;
  color: #4f6280;
  font-size: 0.92rem;
}

#zentry-permissions-banner .perm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#zentry-permissions-banner .perm-actions.secondary {
  justify-content: flex-end;
}

#zentry-permissions-banner .perm-status {
  margin: 0;
  color: #35527d;
  font-size: 0.86rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.hero {
  max-width: 720px;
  padding: 2rem;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.home-logo {
  width: 88px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.35rem;
}

.home-conference-name {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

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

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.1rem;
  font-family: var(--font-doc);
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.button.ghost {
  background: #f4f7fb;
  border-color: var(--border);
  color: #2a3f61;
}

.button.small {
  min-height: 36px;
  padding: 0.55rem 0.9rem;
  margin-top: 0.6rem;
}

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

.actions .grow,
.grow {
  flex: 1 1 240px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.top-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(12, 108, 242, 0.08);
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-ui);
}

.hero-grid,
.stats-grid,
.grid-two,
.gallery-grid,
.module-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid,
.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

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

.page-event-home {
  min-height: 100vh;
  padding: 1rem 0;
}

.home-shell {
  height: calc(100vh - 2rem);
  padding: 1rem;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.75rem;
  overflow: hidden;
}

.home-shell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-shell-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.35rem;
}

.home-shell-header .actions {
  margin-top: 0;
}

.compact-stats {
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.compact-stats .stat {
  padding: 0.8rem 0.9rem;
}

.compact-stats .stat h3 {
  font-size: 1.5rem;
}

.page-event-home .module-grid {
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-content: start;
}

.stat {
  padding: 1.2rem;
}

.stat h3 {
  margin-bottom: 0;
  font-size: 2rem;
  font-family: var(--font-display);
}

.event-hero,
.rich-text,
.session-block,
.speaker-card,
.sponsor-card,
.gallery-item,
.module-card,
.list-card,
.feed-card {
  padding: 1.25rem;
}

.module-card {
  display: grid;
  gap: 0.4rem;
  min-height: 120px;
  align-content: end;
  background: #f8fbff;
}

.page-event-home .module-card {
  min-height: 88px;
  padding: 0.8rem;
}

.module-card strong {
  font-size: 1rem;
  font-family: var(--font-ui);
  font-weight: 700;
}

.page-event-home .module-card strong {
  font-size: 0.92rem;
}

.module-card span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-ui);
}

.list-card,
.feed-card {
  display: grid;
  gap: 0.35rem;
}

.list-card span {
  color: var(--muted);
}

.hero-poster,
.wide-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.program-day {
  margin-top: 1.25rem;
}

.day-pill,
.time-pill {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(12, 108, 242, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-ui);
}

.slot-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.slot-row:first-child {
  border-top: 0;
}

.speaker-card,
.sponsor-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  overflow: hidden;
}

.partner-card-link {
  display: block;
  color: inherit;
}

.partner-card-link .sponsor-card {
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.partner-card-link:hover .sponsor-card,
.partner-card-link:focus-visible .sponsor-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 42, 66, 0.08);
}

.partner-meta {
  margin: 0.45rem 0;
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.5rem;
  align-items: center;
}

.partner-meta-icon {
  width: 1rem;
  height: 1rem;
  color: #1f4b99;
  display: grid;
  place-items: center;
}

.partner-meta-icon svg {
  width: 1rem;
  height: 1rem;
}

.speaker-card img,
.sponsor-card img {
  width: min(100%, 140px);
  height: 140px;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dbe7f6;
  padding: 0.5rem;
  justify-self: center;
}

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

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
}

.stack {
  display: grid;
  gap: 1rem;
}

.center {
  text-align: center;
}

.badge-qr {
  width: min(100%, 320px);
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 22px;
  background: #fff;
}

.chat-box {
  display: grid;
  gap: 0.75rem;
  max-height: 420px;
  overflow: auto;
  padding: 1rem 0;
}

.chat-message {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.chat-message p,
.chat-message strong,
.chat-message span {
  margin: 0;
}

.chat-message span {
  color: var(--muted);
  font-size: 0.8rem;
}

.alert-card {
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.14), rgba(255, 255, 255, 0.92));
}

.ad-ticker {
  display: flex;
  gap: 1rem;
  overflow: auto;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.ad-ticker a {
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-ui);
}

.pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 108, 242, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.module-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.code-block {
  overflow: auto;
  padding: 1rem;
  border-radius: 18px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 0.82rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-ui);
}

.page-home .hero h1,
.event-hero h1 {
  font-family: var(--font-condensed);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.rich-text,
.list-card,
.feed-card,
.chat-message,
.module-toggle,
.code-block {
  font-family: var(--font-doc);
}

@media print {
  body {
    background: #fff;
    color: #111827;
    font: 12pt/1.45 var(--font-doc);
  }

  h1,
  h2,
  h3 {
    color: #0f172a;
    font-family: var(--font-doc);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .page-home .hero h1,
  .event-hero h1,
  .eyebrow,
  .top-nav,
  .actions {
    font-family: var(--font-doc);
  }

  .panel {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: none;
    backdrop-filter: none;
  }

  th,
  .button,
  .pill,
  .day-pill,
  .time-pill {
    font-family: var(--font-doc);
    letter-spacing: 0.02em;
  }
}

@media (max-width: 760px) {
  .slot-row,
  .speaker-card,
  .sponsor-card {
    grid-template-columns: 1fr;
  }

  .speaker-card img,
  .sponsor-card img {
    width: min(100%, 220px);
    height: 130px;
    margin-inline: auto;
  }

  .actions.between {
    justify-content: flex-start;
  }
}

@media (max-width: 1020px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 1100px) {
  .page.page-event-home {
    width: calc(100% - 0.25rem);
  }

  .page-event-home {
    height: 100dvh;
    padding: 0.15rem 0;
    overflow: hidden;
  }

  .page-event-home .panel.home-shell {
    height: calc(100dvh - 0.3rem);
    padding: 0.4rem;
    gap: 0.35rem;
    grid-template-rows: auto 1fr;
    overflow: hidden;
  }

  .home-shell-header {
    gap: 0.35rem;
  }

  .home-shell-header .eyebrow,
  .home-shell-header .actions,
  .compact-stats {
    display: none;
  }

  .home-shell-header h1 {
    font-size: clamp(0.95rem, 2.3vh, 1.25rem);
    margin: 0;
    line-height: 1.1;
  }

  .home-shell-header .muted {
    margin: 0.08rem 0 0;
    font-size: clamp(0.64rem, 1.55vh, 0.76rem);
    line-height: 1.15;
  }

  .page-event-home .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.28rem;
    height: 100%;
    align-content: stretch;
  }

  .page-event-home .module-card {
    min-height: 0;
    padding: 0.34rem 0.2rem;
    border-radius: 11px;
    gap: 0.12rem;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .page-event-home .module-card span {
    display: none;
  }

  .page-event-home .module-card strong {
    font-size: clamp(0.56rem, 1.4vh, 0.72rem);
    line-height: 1.12;
    letter-spacing: 0;
  }
}

/* Clean delegate dashboard layout */
.page-event-home {
  width: min(980px, calc(100% - 1rem));
}

.page-event-home .home-shell {
  border-radius: 20px;
  border: 1px solid rgba(16, 33, 60, 0.08);
  box-shadow: 0 12px 28px rgba(10, 30, 70, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.page-event-home .home-shell-header {
  align-items: center;
}

.page-event-home .home-shell-header h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
}

.page-event-home .home-shell-header .muted {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
}

.page-event-home .compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.page-event-home .compact-stats .stat {
  border-radius: 14px;
  border: 1px solid rgba(16, 33, 60, 0.08);
  background: #f7faff;
  box-shadow: none;
}

.page-event-home .compact-stats .stat p {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-event-home .compact-stats .stat h3 {
  font-size: 1.25rem;
  line-height: 1.1;
}

.page-event-home .module-grid {
  gap: 0.55rem;
  align-content: start;
}

.page-event-home .module-card {
  min-height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(16, 33, 60, 0.08);
  background: #f8fbff;
  box-shadow: none;
  transition: transform 120ms ease, border-color 120ms ease;
}

.page-event-home .module-card:hover,
.page-event-home .module-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(12, 108, 242, 0.3);
}

.page-event-home .module-card strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .page-event-home {
    width: calc(100% - 0.5rem);
  }

  .page-event-home .home-shell {
    border-radius: 14px;
    box-shadow: none;
  }

  .page-event-home .home-shell-header h1 {
    font-size: clamp(1rem, 2.6vh, 1.2rem);
  }

  .page-event-home .home-shell-header .muted {
    font-size: 0.72rem;
  }

  .page-event-home .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .page-event-home .module-card {
    min-height: 86px;
    padding: 0.55rem 0.45rem;
    border-radius: 12px;
  }

  .page-event-home .module-card strong {
    font-size: 0.78rem;
  }
}

/* Benchmark-style mobile module shell */
.mobile-module-page {
  width: min(520px, calc(100% - 0.9rem));
  padding: 0.55rem 0 4.4rem;
}

.mobile-module-header {
  margin-bottom: 0.55rem;
}

.mobile-module-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-module-brand h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
}

.mobile-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #334761;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

.mobile-mark.alt {
  background: #1f4b99;
}

.mobile-avatar {
  float: right;
  margin-top: -1.35rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #1f4b99;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-subtitle {
  margin: 0.35rem 0 0;
  color: #566a8f;
  font-size: 0.88rem;
}

.mobile-overview,
.mobile-module-card,
.app-mobile-panel {
  border-radius: 14px;
  box-shadow: none;
  border: 1px solid #d9e3f2;
  background: #f7fbff;
}

.mobile-overview {
  margin-bottom: 0.5rem;
  padding: 0.7rem 0.82rem;
}

.mobile-overview h2,
.mobile-module-card h2,
.app-mobile-panel h2 {
  margin: 0 0 0.28rem;
  font-size: 1.03rem;
}

.mobile-overview p {
  margin: 0;
  color: #596d90;
}

.mobile-module-card {
  padding: 0.75rem;
}

.mobile-chip-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 0.55rem;
}

.mobile-chip {
  flex: 0 0 auto;
  border: 1px solid #d1ddef;
  border-radius: 999px;
  background: #eaf1ff;
  color: #415f8f;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.56rem;
}

.mobile-list {
  display: grid;
  gap: 0.5rem;
}

.mobile-list-card {
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.62rem;
}

.mobile-list-card h3 {
  margin: 0;
  font-size: 0.97rem;
}

.mobile-list-card p {
  margin: 0.2rem 0 0;
}

.agenda-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.agenda-time {
  color: #1e4a97;
}

.agenda-room {
  color: #5f7295;
  font-size: 0.77rem;
}

.mobile-actions-inline {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.48rem;
  flex-wrap: wrap;
}

.speaker-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.58rem;
  align-items: start;
}

.speaker-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  background: #1f4b99;
}

.mobile-chat-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.62rem;
  align-items: center;
  border: 1px solid #d8e2f2;
  border-radius: 12px;
  background: #f9fbff;
  padding: 0.52rem;
}

.mobile-chat-form {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.42rem;
}

.mobile-chat-form input {
  border-radius: 10px;
  border: 1px solid #d2deef;
  background: #fff;
  padding: 0.5rem 0.62rem;
}

.map-demo-canvas {
  position: relative;
  min-height: 210px;
  border-radius: 12px;
  border: 1px solid #d7e3f4;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  margin-bottom: 0.58rem;
  overflow: hidden;
}

.map-pin-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid #cbdaf2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #3f5d89;
  font-size: 0.67rem;
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
}

.app-section-title {
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #30496f;
}

.services-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.service-tile {
  border: 1px solid #d6e2f3;
  border-radius: 12px;
  background: #f8fbff;
  min-height: 72px;
  padding: 0.4rem 0.25rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  text-align: center;
}

.service-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 8px;
  background: #1f4b99;
  color: #fff;
  display: grid;
  place-items: center;
  line-height: 1;
}

.service-icon svg {
  width: 0.92rem;
  height: 0.92rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-name {
  font-size: 0.66rem;
  line-height: 1.15;
  color: #344f78;
  font-weight: 700;
}

/* Home screen (benchmark shell) */
.app-mobile-page {
  width: min(520px, calc(100% - 0.9rem));
  padding: 0.5rem 0 4.4rem;
}

.app-mobile-header {
  border-radius: 16px;
  border: 1px solid #d5e1f2;
  background: #ffffff;
  box-shadow: none;
  padding: 0.7rem 0.75rem;
}

.app-mobile-header .conf-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-mobile-header .conf-mark {
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: #3b4d67;
}

.app-mobile-header h1 {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.08;
}

.app-mobile-header p {
  margin: 0.35rem 0 0;
  color: #596d90;
  font-size: 0.9rem;
}

.app-mobile-panel {
  margin-top: 0.5rem;
  padding: 0.72rem;
}

.upcoming-list {
  display: grid;
  gap: 0.5rem;
}

.upcoming-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid #d6e2f3;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.46rem 0.5rem;
}

.upcoming-time {
  border-radius: 999px;
  background: #1f4b99;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.52rem;
}

.upcoming-title {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.2;
  color: #1f365e;
}

.upcoming-meta {
  margin: 0.1rem 0 0;
  color: #5d7398;
  font-size: 0.74rem;
}

.upcoming-rank {
  border-radius: 999px;
  border: 1px solid #cad9f2;
  background: #edf4ff;
  color: #3f5f8f;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
}

.see-more-btn {
  margin-top: 0.55rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.stats .stat {
  border: 1px solid #d8e3f4;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: none;
  padding: 0.55rem;
}

.stats .stat b {
  font-size: 1rem;
  color: #1f4fa3;
}

.stats .stat span {
  display: block;
  margin-top: 0.08rem;
  color: #5c7296;
  font-size: 0.75rem;
}

/* iSoP-like mobile app theme override */
.mobile-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f3f5f9;
}

.mobile-appbar {
  height: 52px;
  background: #173f79;
  color: #fff;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  position: sticky;
  top: 0;
  z-index: 30;
}

.mobile-appbar h1 {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.mobile-appbar-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.mobile-appbar-spacer {
  width: 42px;
  height: 42px;
}

.mobile-quick-nav {
  position: sticky;
  top: 52px;
  z-index: 29;
  display: flex;
  gap: 0.34rem;
  overflow-x: auto;
  padding: 0.45rem 0.55rem;
  background: #183f79;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-quick-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  padding: 0.32rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-chip.active {
  background: var(--tertiary);
  color: #173f79;
  border-color: var(--tertiary);
}

.dashboard-page {
  width: min(560px, 100%);
  padding: 0 0 5.2rem;
  background: #173f79;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
}

.dashboard-banner {
  min-height: 104px;
  padding: 0.85rem 0.8rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-bottom: 1px solid #d9e3f5;
}

.dashboard-banner h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #233f68;
}

.dashboard-banner p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #607797;
}

.dashboard-page .services-tiles-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.85rem 0.7rem;
}

.dashboard-page .service-tile {
  background: transparent;
  border: 0;
  min-height: 78px;
  padding: 0.25rem 0.15rem;
}

.dashboard-page .service-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  line-height: 1;
}

.dashboard-page .service-icon svg {
  width: 1.04rem;
  height: 1.04rem;
  stroke: currentColor;
  fill: none;
}

.dashboard-page .service-name {
  color: #fff;
  font-size: 0.73rem;
  font-weight: 500;
}

.dashboard-brand-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  background: #ffffff;
  color: #1c3f76;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-top: 2px solid #16a08f;
}

.mobile-module-page {
  width: min(560px, 100%);
  padding: 0.7rem 0.6rem 5.2rem;
}

.mobile-module-head h2 {
  margin: 0;
  font-size: 1.08rem;
  color: #243f68;
}

.mobile-module-head p {
  margin: 0.22rem 0 0.5rem;
  color: #5f789b;
  font-size: 0.83rem;
}

.mobile-overview,
.mobile-module-card {
  border: 1px solid #d7e1f1;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.65rem;
}

.mobile-overview {
  margin-bottom: 0.52rem;
}

.mobile-overview h3,
.mobile-module-card h3 {
  margin: 0 0 0.24rem;
  font-size: 0.98rem;
  color: #243f68;
}

.mobile-overview p {
  margin: 0;
  color: #657f9f;
}

.module-search {
  width: 100%;
  border: 1px solid #d8e2f1;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.5rem;
}

.mobile-list {
  gap: 0.45rem;
}

.mobile-list-card {
  border: 1px solid #d9e3f1;
  background: #f8fbff;
  border-radius: 11px;
  padding: 0.55rem;
}

.mobile-list-card h3 {
  font-size: 0.96rem;
}

.mobile-chip {
  background: #edf3fd;
  border-color: #d4dfef;
  color: #4d6c96;
}

.mobile-chat-item {
  background: #fff;
}

.mobile-sponsor-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 36px;
  background: #ffffff;
  border-top: 1px solid #d5e0ef;
  display: flex;
  align-items: center;
  z-index: 25;
}

.mobile-sponsor-track {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.5rem;
  overflow-x: auto;
  width: 100%;
}

.mobile-sponsor-track::-webkit-scrollbar {
  display: none;
}

.mobile-sponsor-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 26px;
}

.mobile-sponsor-item img {
  max-width: 64px;
  max-height: 22px;
  object-fit: contain;
}

.mobile-sponsor-text {
  font-size: 0.75rem;
  color: #3f587e;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-bottom-thin {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  background: #173f79;
  color: #d5e4fb;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  z-index: 26;
}

.mobile-wall-widget {
  position: fixed;
  right: 0;
  top: 45vh;
  width: 36px;
  height: 62px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: #173f79;
  color: #fff;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(9, 30, 63, 0.35);
  z-index: 38;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 140ms ease, box-shadow 160ms ease;
}

.mobile-wall-widget:active,
.mobile-wall-widget.dragging {
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(9, 30, 63, 0.4);
}

.mobile-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 48, 0.45);
  z-index: 40;
}

.mobile-side-drawer,
.mobile-actions-toast {
  position: fixed;
  background: #ffffff;
  z-index: 41;
  box-shadow: 0 22px 44px rgba(8, 25, 56, 0.26);
}

.mobile-side-drawer {
  top: 0;
  bottom: 0;
  left: 0;
  width: min(290px, 84vw);
  padding: 0.8rem;
  border-right: 1px solid #d8e2f0;
}

.mobile-actions-toast {
  width: 232px;
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(3px);
  animation: quickToastIn 140ms ease-out;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.mobile-drawer-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #1d3c6d;
}

.mobile-close-btn {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: #38598a;
  cursor: pointer;
}

.mobile-drawer-links {
  display: grid;
  gap: 0.35rem;
}

.mobile-drawer-links a {
  text-decoration: none;
  color: #1d3c6d;
  font-weight: 600;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  padding: 0.52rem 0.62rem;
  background: #f8fbff;
}

.mobile-action-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.mobile-action-icon {
  text-decoration: none;
  color: #294972;
  font-weight: 600;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  padding: 0.4rem 0.2rem;
  background: #f8fbff;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
}

.mobile-action-glyph {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #d2e0f7;
  display: grid;
  place-items: center;
}

.mobile-action-glyph svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: #2b4f84;
}

@keyframes quickToastIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
