/* =========================================================================
   PMTEX 2026 — AI Agent Web App
   Mobile-first launcher · PMTEX blue/red palette · Archivo display type
   ========================================================================= */

:root {
  --navy: #0f2a5c;
  /* IMTEX deep blue   */
  --blue: #1b4fa0;
  /* primary blue      */
  --blue-2: #2f6fd1;
  /* lighter blue      */
  --red: #e63329;
  /* IMTEX accent red  */
  --ink: #16233f;
  --muted: #5b6b87;
  --bg: #eef2f9;
  --card: #ffffff;
  --line: #dde5f1;
  --good: #1fbf6b;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(15, 42, 92, .08);
  --shadow-lg: 0 18px 48px rgba(15, 42, 92, .22);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(rgba(238, 242, 249, .94), rgba(238, 242, 249, .94)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(27, 79, 160, .07) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(27, 79, 160, .07) 23px 24px);
  background-color: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- App shell ---------------- */

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  background: transparent;
}

@media (min-width: 640px) {
  .app {
    padding: 24px 0 40px;
  }
}

/* ---------------- Banner ---------------- */

.banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 55%, var(--red) 140%);
  min-height: 96px;
}

@media (min-width: 640px) {
  .banner {
    border-radius: var(--radius);
    margin: 0 16px;
    box-shadow: var(--shadow);
  }
}

/* aspect-ratio 4/1 matches the banner upload requirement exactly
   (IMAGE_REQUIREMENTS.banner in routes/admin.js crops every upload to
   1600x400, updated from the original 1200x400/3:1 standard to match
   the actual reference banner supplied for the event -- 1267x317,
   effectively an exact 4:1 shape). Kept as aspect-ratio rather than a
   fixed pixel height for the same reason as before: a fixed height
   produces a different effective ratio at every breakpoint width,
   which either crops content off the sides or top/bottom depending on
   the container's actual proportions at that width. aspect-ratio keeps
   the box exactly 4:1 at every width automatically, so cover never
   needs to crop anything -- it's a safety net now, not doing active
   work. */
.banner img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center center;
}

.banner.is-fallback img {
  display: none;
}

.banner__fallback {
  display: none;
  padding: 26px 20px;
  color: #fff;
  flex-direction: column;
  gap: 6px;
}

.banner__fallback strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .04em;
}

.banner__fallback span {
  font-size: 13px;
  opacity: .9;
  font-weight: 600;
}

.banner.is-fallback .banner__fallback {
  display: flex;
}

/* ---------------- Main column ---------------- */

.shell {
  padding: 18px 16px 28px;
}

.welcome {
  margin: 4px 2px 14px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--navy);
  text-align: center;
}

/* ---------------- Featured "Chat with AI" card ---------------- */

.hero {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-family: inherit;
  background: linear-gradient(115deg, var(--navy) 0%, var(--blue) 60%, var(--blue-2) 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* moving sheen */
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-18deg);
}

@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    animation: sheen 4.5s ease-in-out infinite;
  }

  @keyframes sheen {

    0%,
    55% {
      left: -60%;
    }

    85%,
    100% {
      left: 130%;
    }
  }
}

.hero:active {
  transform: scale(.985);
}

.hero__icon {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.hero__brain {
  font-size: 28px;
}

.hero__dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--good);
  border: 2px solid var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__dot {
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {

    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(31, 191, 107, .55);
    }

    60% {
      box-shadow: 0 0 0 7px rgba(31, 191, 107, 0);
    }
  }
}

.hero__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
}

.hero__sub {
  font-size: 13px;
  font-weight: 500;
  opacity: .85;
}

.hero__go {
  font-size: 18px;
  opacity: .85;
}

/* ---------------- Tile grid ---------------- */

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 480px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 6px 14px;
  min-height: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--blue-2);
}

.tile:active {
  transform: scale(.97);
}

.tile__icon {
  font-size: 28px;
  line-height: 1;
}

.tile__label {
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  letter-spacing: .01em;
}

/* ---------------- Footer ---------------- */

.foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foot a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

/* ---------------- Bottom tab bar (mobile only — hidden at >=600px
   in the DESKTOP/TABLET POLISH section below, same breakpoint the rest
   of the mobile-app chrome switches over at) ---------------- */

/* ---------------- Focus styles ---------------- */

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 2px;
  border-radius: 8px;
}

/* =========================================================================
   Full-screen panel overlay  (replaces old bottom sheet)
   ========================================================================= */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

/* Banner-aware overlays (mobile only): keeps the header banner visible
   above a panel instead of the panel covering the full viewport.
   Toggled via JS (setBannerAwareOverlay in app-panels.js) for every
   panel except Site Plan, which needs the full screen for its
   map/PDF/image content, and the separate Visitor Registration
   link-frame overlay, which never uses this class at all.
   --banner-h is measured from the banner's real rendered height rather
   than assumed, since the height differs between the image state and
   the no-image fallback state. Explicitly bounded to max-width:639px
   so it can never bleed into the min-width:640px desktop drawer layout
   below, which already shows the banner behind its blurred backdrop. */
@media (max-width: 639px) {

  .overlay.banner-aware,
  .exscreen.banner-aware,
  .inavscreen.banner-aware {
    top: var(--banner-h, 0px);
    height: calc(100% - var(--banner-h, 0px));
  }
}

.sheet {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: #f3f6fb;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: panelIn .24s cubic-bezier(.22, .68, 0, 1.1) both;
}

@keyframes panelIn {
  from {
    transform: translateY(100%);
    opacity: .6;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.sheet--out {
  animation: panelOut .22s ease-in forwards;
}

@keyframes panelOut {
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ── Desktop: right-side drawer (IMTEX style) ── */
@media (min-width: 640px) {
  .overlay {
    background: rgba(10, 20, 50, .52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
  }

  .sheet {
    width: 58%;
    max-width: 580px;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: -6px 0 40px rgba(0, 0, 0, .35);
    animation: drawerIn .24s cubic-bezier(.22, .68, 0, 1.1) both;
  }

  .sheet--out {
    animation: drawerOut .22s ease-in forwards !important;
  }

  .sheet__head {
    padding-top: 14px;
    border-radius: 0;
  }

  .sheet__body {
    min-height: 200px;
  }
}

@keyframes drawerIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: none;
  }
}

@keyframes drawerOut {
  to {
    transform: translateX(100%);
  }
}

/* ── header ── */
.sheet__head {
  background: linear-gradient(135deg, #0f2a5c 0%, #1b4fa0 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  flex: 1;
  letter-spacing: .01em;
}

/* ── scrollable body ── */
.sheet__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

.sheet__body p {
  margin: 0 0 12px;
}

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

/* close button — white circle on dark panel header, always top-left */
.xbtn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  transition: background .12s;
}

.xbtn:hover {
  background: rgba(255, 255, 255, .28);
}

/* ----- shared pieces inside panels ----- */

.kv {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px 10px;
  margin: 0 0 12px;
}

.kv span:nth-child(odd) {
  text-align: center;
}

.kv b {
  color: var(--navy);
}

.list-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fbfcff;
}

.list-card h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: var(--navy);
}

.list-card small {
  color: var(--muted);
  font-weight: 700;
}

.list-card p {
  margin: 6px 0 0;
}

/* ── Reach Us tabs ── */
.reach-tabs {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.reach-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 9px 6px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.reach-tab-btn--active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.reach-tab-panels {
  padding: 12px 2px 4px;
}

.reach-tab-panel {
  display: none;
}

.reach-tab-panel--active {
  display: block;
}

.reach-tab-panel p {
  margin: 0 0 6px;
}

/* ── Visitor Info grouped sections ── */
.vinfo-section {
  margin-top: 16px;
}

.vinfo-section:first-child {
  margin-top: 0;
}

.vinfo-section__label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

/* ── News & Media grid ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.news-grid__item {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfcff;
  transition: transform .15s, box-shadow .15s;
}

.news-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 42, 92, .12);
}

.news-grid__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eef2f8;
}

.news-grid__item span {
  display: block;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th,
.table td {
  border: 1px solid var(--line);
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f3f6fc;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--navy);
}

.btn--ghost {
  background: var(--bg);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--line);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Map panel body — no padding, full height for SPNav / floor-plan */
.sheet__body--map {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

.sheet__body--map #siteplan-halls-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.siteplan-empty {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.siteplan-empty .big {
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
}

.siteplan-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Siteplan — hall tabs fallback */
.siteplan-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.siteplan-tab {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.siteplan-tab.is-active,
.siteplan-tab:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.siteplan-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.siteplan-hall-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  margin: 0 auto;
}

/* =========================================================================
   Chat overlay
   ========================================================================= */

.chat {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

@media (min-width: 640px) {
  .chat {
    inset: auto;
    right: 24px;
    bottom: 24px;
    width: 400px;
    height: min(640px, calc(100dvh - 48px));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .chat {
    animation: rise .22s ease-out;
  }
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(115deg, var(--navy), var(--blue));
  color: #fff;
}

.chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3);
}

.chat__who {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.chat__name {
  font-weight: 800;
  font-size: 15px;
}

.chat__status {
  font-size: 12px;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat__online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  display: inline-block;
}

.chat__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 12px 8px;
}

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

.msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: var(--shadow);
}

.msg a {
  color: inherit;
  font-weight: 700;
}

.msg--bot {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.msg--user {
  align-self: flex-end;
  background: linear-gradient(115deg, var(--blue), var(--blue-2));
  color: #fff;
  border-bottom-right-radius: 6px;
}

/* typing indicator */
.msg--typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.msg--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .msg--typing i {
    animation: blink 1.1s infinite;
  }

  .msg--typing i:nth-child(2) {
    animation-delay: .18s;
  }

  .msg--typing i:nth-child(3) {
    animation-delay: .36s;
  }

  @keyframes blink {

    0%,
    70%,
    100% {
      opacity: .25;
      transform: none;
    }

    35% {
      opacity: 1;
      transform: translateY(-2px);
    }
  }
}

/* suggestion / action chips */
.chat__chips,
.msg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 2px 4px;
}

.chip {
  border: 1px solid var(--blue-2);
  background: var(--card);
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.chip:hover {
  background: var(--blue);
  color: #fff;
}

.chat__bar {
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
}

.chat__input {
  flex: 1 1 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}

.chat__input:focus {
  outline: none;
  border-color: var(--blue-2);
  background: #fff;
}

.chat__send {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat__send:hover {
  background: var(--navy);
}

.chat__send:disabled {
  opacity: .5;
  cursor: default;
}

/* utility */
[hidden] {
  display: none !important;
}

body.no-scroll {
  overflow: hidden;
}

/* =========================================================================
   Boot / loading screen (full-stack version — content comes from the API)
   ========================================================================= */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #f3f6fb;
  text-align: center;
  padding: 24px;
}

.boot__spin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #d6e0f0;
  border-top-color: #0f2a5c;
  animation: bootspin .8s linear infinite;
}

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

.boot__txt {
  font-weight: 600;
  color: #0f2a5c;
}

.boot__err {
  color: #b3261e;
  font-weight: 600;
  max-width: 420px;
}

.boot .btn {
  margin-top: 4px;
}

.boot[hidden] {
  display: none !important;
}

/* =========================================================================
   Thank-you screen — shown instead of the app when the event is closed.
   Concept: a machined steel "nameplate," the kind riveted onto real
   industrial equipment — fitting for a machine-tool expo's closing screen
   rather than a generic confetti/gradient thank-you. Signature moment: the
   headline is revealed by a sweeping laser-etch line, like a cutting tool
   engraving the plate in real time.
   ========================================================================= */
.thankyou {
  --ty-navy-1: #0d1b3d;
  --ty-navy-2: #1c2a5e;
  --ty-plum: #2e1f4f;
  --ty-glass: rgba(255, 255, 255, .12);
  --ty-glass-soft: rgba(255, 255, 255, .06);
  --ty-glass-border: rgba(255, 255, 255, .28);
  --ty-gold: #f3c869;
  --ty-gold-soft: rgba(243, 200, 105, .55);
  --ty-text: #ffffff;
  --ty-label: rgba(255, 255, 255, .68);

  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(150deg, var(--ty-navy-1) 0%, var(--ty-navy-2) 55%, var(--ty-plum) 100%);
  overflow: hidden;
  text-align: left;
}

.thankyou[hidden] {
  display: none !important;
}

/* ── ambient backdrop: soft drifting warm light + gentle rising sparkles.
   Replaces the old blueprint-grid + cold orange sparks -- the brief was
   "not suffered, satisfied and a good feeling", so the backdrop needed to
   read as warm and alive rather than technical. ── */
.ty-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ty-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: ty-orb-drift 24s ease-in-out infinite;
}

.ty-orb--1 {
  width: 340px;
  height: 340px;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, var(--ty-gold-soft), transparent 70%);
  animation-duration: 26s;
}

.ty-orb--2 {
  width: 280px;
  height: 280px;
  bottom: -10%;
  right: -4%;
  background: radial-gradient(circle, rgba(125, 160, 255, .4), transparent 70%);
  animation-duration: 20s;
  animation-delay: -6s;
}

.ty-orb--3 {
  width: 220px;
  height: 220px;
  top: 40%;
  right: 18%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
  animation-duration: 30s;
  animation-delay: -12s;
}

.ty-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(10, 16, 38, .5) 100%);
}

.ty-spark {
  position: absolute;
  bottom: 4%;
  left: var(--x);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ty-gold);
  box-shadow: 0 0 8px 2px var(--ty-gold-soft);
  opacity: 0;
  animation: ty-spark-rise 6s ease-in infinite;
  animation-delay: var(--d);
}

/* ── the glass plate — true glassmorphism: translucent, blurred,
   soft-edged, rounded generously. Replaces the "machined steel plate"
   look, which read as cold/clinical against the warmth being asked for. ── */
.ty-plate {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 38px 32px 32px;
  border-radius: 26px;
  background: linear-gradient(155deg, var(--ty-glass) 0%, var(--ty-glass-soft) 100%);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--ty-glass-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .35) inset,
    0 0 0 1px rgba(255, 255, 255, .04),
    0 24px 70px rgba(5, 10, 28, .5);
  animation: ty-plate-in .85s cubic-bezier(.22, .85, .3, 1) both;
  overflow: hidden;
}

/* soft light sweeping across the glass as it settles */
.ty-sheen {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 55%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16) 45%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, .16) 55%, transparent);
  transform: translateX(-140%) rotate(8deg);
  animation: ty-sheen-sweep 1.3s cubic-bezier(.3, 0, .2, 1) .25s both;
  pointer-events: none;
}

.ty-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ty-gold);
  margin-bottom: 18px;
  opacity: 0;
  animation: ty-fade-up .6s ease-out .2s both;
}

.ty-eyebrow__spark {
  display: inline-block;
  font-size: 13px;
  animation: ty-spark-twinkle 2.4s ease-in-out infinite;
}

.ty-title {
  margin: 0 0 6px;
  opacity: 0;
  animation: ty-fade-up .7s ease-out .35s both;
}

.ty-title #tyTitle {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(23px, 6vw, 29px);
  line-height: 1.24;
  letter-spacing: -.01em;
  color: var(--ty-text);
}

.ty-event {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ty-label);
  margin: 0 0 22px;
  opacity: 0;
  animation: ty-fade-up .7s ease-out .45s both;
}

.ty-rule {
  height: 1px;
  margin: 0 0 20px;
  background: linear-gradient(90deg, var(--ty-glass-border), transparent);
  opacity: 0;
  animation: ty-fade-up .6s ease-out .55s both;
}

/* ── spec rows: kept, visitors still need the factual info, just
   restyled away from the "technical readout" monospace feel ── */
.ty-spec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px;
  opacity: 0;
  animation: ty-fade-up .6s ease-out .62s both;
}

.ty-spec__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: baseline;
}

.ty-spec__row dt {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ty-label);
  margin: 0;
}

.ty-spec__row dd {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ty-text);
  margin: 0;
}

/* ── a warm closing note, gently popping in — replaces the "inspection
   stamp / verified & closed" motif, which read as a QC pass/fail mark
   rather than a genuine thank-you ── */
.ty-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  opacity: 0;
  transform: scale(.9);
  animation: ty-note-pop .5s cubic-bezier(.34, 1.56, .64, 1) 1.1s both;
}

.ty-note__icon {
  color: var(--ty-gold);
  flex-shrink: 0;
  animation: ty-heart-beat 2.4s ease-in-out 1.7s infinite;
}

.ty-note__label {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ty-text);
}

/* ── CTA button, warmed from steel-gray to a soft gold ── */
.ty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 13px 24px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .01em;
  color: #2b1c05;
  background: linear-gradient(135deg, #ffe19c, var(--ty-gold));
  border: none;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 22px rgba(243, 200, 105, .3);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  opacity: 0;
  animation: ty-fade-up .6s ease-out 1.3s both;
}

.ty-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 30px rgba(243, 200, 105, .45);
}

.ty-cta:active {
  transform: translateY(0) scale(.99);
}

.ty-cta svg {
  color: #2b1c05;
  flex-shrink: 0;
}

/* ── keyframes ── */
@keyframes ty-plate-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ty-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ty-note-pop {
  from {
    opacity: 0;
    transform: scale(.9);
  }

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

@keyframes ty-heart-beat {

  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.15);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }

  60% {
    transform: scale(1);
  }
}

@keyframes ty-spark-twinkle {

  0%,
  100% {
    opacity: .5;
    transform: scale(.85) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.1) rotate(15deg);
  }
}

@keyframes ty-spark-rise {
  0% {
    opacity: 0;
    bottom: 4%;
    transform: scale(var(--s));
  }

  10% {
    opacity: 1;
  }

  85% {
    opacity: .5;
  }

  100% {
    opacity: 0;
    bottom: 82%;
    transform: translateX(16px) scale(var(--s));
  }
}

@keyframes ty-orb-drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(24px, -18px) scale(1.08);
  }
}

@keyframes ty-sheen-sweep {
  from {
    transform: translateX(-140%) rotate(8deg);
  }

  to {
    transform: translateX(220%) rotate(8deg);
  }
}

@media (max-width: 380px) {
  .ty-plate {
    padding: 30px 24px 26px;
  }

  .ty-spec__row {
    grid-template-columns: 84px 1fr;
  }
}

/* Every element that animates in also starts at opacity:0 in its base
   rule -- disabling the animation alone would leave them permanently
   invisible for reduced-motion users, so this also forces the final,
   fully-visible state directly. */
@media (prefers-reduced-motion: reduce) {

  .ty-plate,
  .ty-eyebrow,
  .ty-eyebrow__spark,
  .ty-title,
  .ty-event,
  .ty-rule,
  .ty-spec,
  .ty-note,
  .ty-note__icon,
  .ty-cta,
  .ty-spark,
  .ty-orb,
  .ty-sheen {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================================
   Startup popup — admin-configurable welcome message
   ========================================================================= */
.startup-popup {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 50, .55);
  backdrop-filter: blur(3px);
}

.startup-popup[hidden] {
  display: none !important;
}

.startup-popup__card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.startup-popup__bar {
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.startup-popup__bar span {
  flex: 1;
}

.startup-popup__bar button {
  background: none;
  border: none;
  color: #fff;
  opacity: .85;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.startup-popup__body {
  padding: 20px 18px;
  text-align: center;
}

.startup-popup__img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
}

.startup-popup__text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 18px;
  white-space: pre-wrap;
}

.startup-popup__btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-2), var(--navy));
  padding: 13px 16px;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(15, 42, 92, .3);
  transition: transform .12s, box-shadow .12s;
}

.startup-popup__btn:active {
  transform: scale(.98);
  box-shadow: 0 3px 8px rgba(15, 42, 92, .3);
}

/* =========================================================================
   In-app link frame (opens external URLs inside the app as an overlay)
   ========================================================================= */

/* Mobile: full-screen overlay (transparent wrapper) */
.link-frame {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: flex;
  flex-direction: column;
}

/* Panel holds head bar + iframe — full screen on mobile.
   The head bar sits in normal DOM flow ABOVE the iframe so the
   browser never needs to resolve z-index against the composited
   iframe layer (which wins on mobile WebKit regardless of z-index). */
.link-frame__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  animation: panelIn .24s cubic-bezier(.22, .68, 0, 1.1) both;
}

/* Desktop: right-side drawer with dark backdrop */
@media (min-width: 640px) {
  .link-frame {
    background: rgba(10, 20, 50, .52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
  }

  .link-frame__panel {
    width: 58%;
    max-width: 600px;
    height: 100%;
    box-shadow: -6px 0 40px rgba(0, 0, 0, .35);
    animation: drawerIn .24s cubic-bezier(.22, .68, 0, 1.1) both;
  }
}

/* Minimal white top bar — replaces the old blue gradient header.
   Lives in DOM flow above the iframe so there are zero z-index
   conflicts on any browser or device. */
.link-frame__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  min-height: 48px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

/* Square icon-only close button */
.link-frame__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.link-frame__close:active {
  background: var(--line);
  transform: scale(.92);
}

/* Muted page title beside the close button */
.link-frame__title {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* body wraps loading indicator + iframe */
.link-frame__body {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* "Loading…" spinner shown until iframe fires load */
.link-frame__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f6fb;
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
  z-index: 2;
}

.link-frame__loading::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #d6e0f0;
  border-top-color: var(--navy);
  border-radius: 50%;
  margin-right: 10px;
  animation: lfspin .8s linear infinite;
}

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

.link-frame__iframe {
  flex: 1 1 auto;
  border: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s;
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────────
   Catalog — Download button in the link-frame head bar
   ────────────────────────────────────────────────────────── */
.link-frame__dl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  background: var(--navy);
  color: #fff;
  font: 600 12px/1 var(--font);
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}

.link-frame__dl-btn:active {
  background: #0a1e4a;
  transform: scale(.93);
}

/* ──────────────────────────────────────────────────────────
   Catalog Download Lead-capture Modal
   ────────────────────────────────────────────────────────── */
.cat-dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 50, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: catOverlayIn .18s ease both;
}

@keyframes catOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cat-dl-card {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  overflow: hidden;
  animation: catCardIn .22s cubic-bezier(.22, .68, 0, 1.1) both;
}

@keyframes catCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.cat-dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 18px;
  background: linear-gradient(135deg, var(--navy) 0%, #1b4fa0 100%);
}

.cat-dl-head__icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-dl-head__title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.cat-dl-head__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  margin-top: 3px;
}

.cat-dl-body {
  padding: 20px 20px 8px;
}

.cat-dl-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 14px;
}

.cat-dl-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.cat-dl-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.cat-dl-field .req {
  color: var(--red);
}

.cat-dl-field input {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 9px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}

.cat-dl-field input:focus {
  border-color: var(--navy);
}

.cat-dl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cat-dl-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 20px;
}

.cat-dl-cancel {
  padding: 9px 18px;
  background: var(--bg);
  color: var(--muted);
  font: 600 13px/1 var(--font);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
}

.cat-dl-cancel:active {
  background: var(--line);
}

.cat-dl-submit {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--navy);
  color: #fff;
  font: 600 13px/1 var(--font);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.cat-dl-submit:active {
  background: #0a1e4a;
  transform: scale(.96);
}

.cat-dl-submit:disabled {
  opacity: .65;
  cursor: default;
}

/* ──────────────────────────────────────────────────────────
   In-app PDF viewer (canvas-based, via PDF.js)
   Renders inside the same .link-frame full-screen overlay used
   for external links. Pages are drawn onto <canvas> elements by
   JS, not shown via <iframe> -- this is what makes it work on
   iOS, where WebKit does not render PDFs inside iframes at all.
   ────────────────────────────────────────────────────────── */
.cat-pdf-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--bg);
}

.cat-pdf-page {
  max-width: 100%;
  box-shadow: 0 2px 14px rgba(15, 42, 92, .14);
  border-radius: 4px;
  background: #fff;
}

.cat-pdf-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}

.cat-pdf-loading span {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: catPdfSpin .7s linear infinite;
  flex-shrink: 0;
}

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

.cat-pdf-error {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cat-pdf-error a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

/* ──────────────────────────────────────────────────────────
   Indoor Navigation panel (inside popup sheet)
   ────────────────────────────────────────────────────────── */
.inav-loading,
.inav-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  min-height: 200px;
}

.inav-loading .spin {
  font-size: 28px;
}

.inav-search-row {
  position: relative;
  padding: 10px 14px 0;
}

.inav-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 14px;
  outline: none;
  background: #f8fafc;
  color: var(--ink);
  transition: border-color .15s;
}

.inav-search-input:focus {
  border-color: var(--navy);
}

.inav-dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 14px;
  right: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
  z-index: 80;
  max-height: 260px;
  overflow-y: auto;
}

.inav-dd-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.inav-dd-item:last-child {
  border-bottom: none;
}

.inav-dd-item:hover {
  background: #f0f4ff;
}

.inav-dd-badge {
  font-size: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1px 6px;
  font-weight: 700;
  margin-left: 5px;
}

.inav-dd-hall {
  font-size: 10px;
  color: var(--muted);
  margin-left: 5px;
}

.inav-dd-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.inav-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 8px 14px;
  scrollbar-width: none;
}

.inav-tab {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.inav-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.inav-map-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  background: #e8ecf1;
  touch-action: none;
}

.inav-inner {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  width: 100%;
  height: 100%;
}

.inav-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.inav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.inav-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.inav-zoom-controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inav-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.inav-route-info {
  text-align: center;
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
  padding: 6px 14px 2px;
}

.inav-route-info:empty {
  display: none;
}

/* Starting-point picker -- shown before a route draws, only in halls
   that opted in (multi_start_enabled + at least one point added).
   Appended to document.body (not scoped inside the indoor-nav screen)
   so it sits on top of the whole floor plan view while it's up;
   z-index is comfortably above .inavscreen (70) but well under
   chat/voice (99999), which is never open at the same time as this. */
.inav-start-picker {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 20, 50, .5);
}

.inav-start-picker__card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.inav-start-picker__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.inav-start-picker__select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  margin-bottom: 14px;
}

.inav-start-picker__actions {
  display: flex;
}

.inav-start-picker__go {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-2), var(--navy));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inav-start-picker__go:active {
  transform: scale(.98);
}

.inav-booth-panel {
  margin: 6px 14px 0;
  background: #f0f4ff;
  border: 1.5px solid #c7d7ff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.inav-booth-head {
  margin-bottom: 8px;
}

.inav-booth-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}

.inav-booth-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.inav-contact {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  font-size: 12px;
}

.inav-contact:hover {
  color: var(--navy);
}

.inav-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.inav-tags span {
  font-size: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 1px 7px;
  font-weight: 600;
}

.inav-route-btn {
  width: 100%;
  margin-top: 10px;
}

.inav-legend {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 8px;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
  background: rgba(255, 255, 255, .90);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  z-index: 10;
  pointer-events: none;
}

.inav-hall-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 42, 92, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 15;
  letter-spacing: .02em;
  pointer-events: none;
}

/* Info bar below map: route text + booth panel + steps */
.inav-info-bar {
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 38vh;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.inav-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
}

/* Multi-hall badge in search dropdown */
.inav-dd-multihall {
  display: inline-block;
  font-size: 9px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1px 6px;
  font-weight: 700;
  margin-left: 5px;
  vertical-align: middle;
}

/* Hall picker popup (multi-hall exhibitor) */
.inav-hall-picker {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.inav-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 50, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.inav-picker-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 32px;
  width: 100%;
  max-width: 560px;
  animation: panelIn .22s cubic-bezier(.22, .68, 0, 1.1) both;
}

.inav-picker-title {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}

.inav-picker-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 0 0 16px;
}

.inav-picker-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inav-picker-btn {
  width: 100%;
  background: linear-gradient(135deg, #0f2a5c 0%, #1b4fa0 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inav-picker-btn::after {
  content: "›";
  font-size: 24px;
  opacity: .7;
  flex-shrink: 0;
}

.inav-picker-hall {
  font-weight: 800;
  font-size: 15px;
  display: block;
}

.inav-picker-stand {
  font-size: 12px;
  opacity: .8;
  display: block;
  margin-top: 3px;
}

/* ── Facilities bar on the indoor-nav map ─────────────────────────────── */
.inav-fac-bar {
  position: relative;
  padding: 6px 14px 8px;
}

.inav-fac-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.inav-fac-trigger:hover {
  border-color: var(--blue-2);
  background: #f2f7ff;
}

.inav-fac-trigger__count {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}

.inav-fac-trigger__chev {
  font-size: 10px;
  color: var(--muted);
}

/* Dropdown panel -- fixed max height + its own scroll, so even a hall
   with 40+ facilities never pushes the map or grows past a thumb-reach
   size on a phone. Positioned exactly like .inav-dropdown (the search
   results panel) for the same reason: proven not to overflow this
   412px-wide layout. */
.inav-fac-panel {
  position: absolute;
  top: 100%;
  left: 14px;
  right: 14px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .16);
  max-height: 260px;
  overflow-y: auto;
  z-index: 5;
  padding: 6px;
}

.inav-fac-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 9px 8px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.inav-fac-row:hover {
  background: #f2f7ff;
}

.inav-fac-row__icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.inav-fac-row__label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.inav-fac-row__count {
  background: #eef2f9;
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}

.inav-fac-row__go,
.inav-fac-row__chev {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* One type expanded at a time (see the group-row click handler) --
   named instances of that type, e.g. "Truck Entry L" / "Truck Entry R" */
.inav-fac-sub {
  padding-left: 30px;
  margin: 2px 0 4px;
}

.inav-fac-subrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  border-left: 2px solid var(--line);
  padding: 7px 8px 7px 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.inav-fac-subrow:hover {
  background: #f2f7ff;
  border-left-color: var(--blue-2);
}

.inav-fac-subrow__label {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink);
}

/* =========================================================================
   Indoor Navigation — full-screen overlay (same drawer pattern as exscreen)
   ========================================================================= */

.inavscreen {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.inavscreen__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  animation: exscreenIn .24s cubic-bezier(.22, .68, 0, 1.2) both;
}

.inavscreen--out .inavscreen__panel {
  animation: exscreenOut .22s ease-in forwards;
}

@media (min-width: 640px) {
  .inavscreen {
    background: rgba(10, 20, 50, .52);
    /* NOTE: deliberately NOT using backdrop-filter:blur() here.
       This screen's map is a layered img + absolutely-positioned svg +
       canvas stack, and combining backdrop-filter:blur with that kind of
       nested stacking context triggers a known Chrome GPU compositor bug
       that miscolors the content underneath (documented: blur + transparent
       backgrounds + layered stacking contexts → wrong rendered colors,
       tied to Chrome's HDR compositing path). Removing the blur avoids the
       bug entirely while keeping the dimming effect via the transparent
       navy background alone. If re-adding blur here, retest this screen
       specifically on a real (non-emulated) desktop Chrome window. */
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
  }

  .inavscreen__panel {
    width: 62%;
    max-width: 660px;
    height: 100%;
    box-shadow: -6px 0 40px rgba(0, 0, 0, .35);
    animation: drawerIn .24s cubic-bezier(.22, .68, 0, 1.1) both;
  }

  .inavscreen--out .inavscreen__panel {
    animation: drawerOut .22s ease-in forwards !important;
  }
}

.inavscreen__head {
  background: linear-gradient(135deg, #0f2a5c 0%, #1b4fa0 100%);
  color: #fff;
  padding: 14px 16px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

@media (min-width: 640px) {
  .inavscreen__head {
    padding-top: 14px;
  }
}

.inavscreen__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  flex: 1;
  color: #fff;
}

.inavscreen__close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}

.inavscreen__close:hover {
  background: rgba(255, 255, 255, .28);
}

/* nav.js fills the full body */
.inavscreen__body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inavscreen__body #inav-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

/* ── Site plan PDF embed ── */
.siteplan-pdf {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
  min-height: 0;
}

/* =========================================================================
   Exhibitor List — dedicated full-screen screen
   Covers full viewport, slides up from bottom.
   ========================================================================= */
/* ── backdrop (mobile: transparent; desktop: dark blur) ── */
.exscreen {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

/* ── inner panel (fills full screen on mobile) ── */
.exscreen__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #f3f6fb;
  animation: exscreenIn .24s cubic-bezier(.22, .68, 0, 1.2) both;
}

@keyframes exscreenIn {
  from {
    transform: translateY(100%);
    opacity: .6;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.exscreen--out .exscreen__panel {
  animation: exscreenOut .22s ease-in forwards;
}

@keyframes exscreenOut {
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ── desktop: right-side drawer (IMTEX style) ── */
@media (min-width: 640px) {
  .exscreen {
    background: rgba(10, 20, 50, .52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
  }

  .exscreen__panel {
    width: 58%;
    max-width: 600px;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: -6px 0 40px rgba(0, 0, 0, .35);
    animation: drawerIn .24s cubic-bezier(.22, .68, 0, 1.1) both;
  }

  .exscreen--out .exscreen__panel {
    animation: drawerOut .22s ease-in forwards !important;
  }
}

/* ── header ── */
.exscreen__head {
  background: linear-gradient(135deg, #0f2a5c 0%, #1b4fa0 100%);
  color: #fff;
  padding: 14px 16px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

@media (min-width: 640px) {
  .exscreen__head {
    padding-top: 14px;
    border-radius: 0;
  }
}

.exscreen__close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}

.exscreen__close:hover {
  background: rgba(255, 255, 255, .28);
}

.exscreen__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  flex: 1;
}

.exscreen__sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
  white-space: nowrap;
}

/* ── scrollable body ── */
.exscreen__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 32px;
}

/* ── Exhibitor List directory (visitor) ───────────────────────────────── */
.exlist-search {
  position: sticky;
  top: 0;
  background: var(--card);
  padding-bottom: 10px;
  z-index: 2;
}

.exlist-search input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  background: #f8fafd;
}

.exlist-search input:focus {
  border-color: var(--blue-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 111, 209, .14);
}

.exlist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}

.exlist-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.exlist-chip.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.exlist-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
  background: #f0f4fa;
  border-radius: 8px;
  padding: 8px 12px;
}

/* ── Products tab: category browse grid + drill-in back link ── */
.excat-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.excat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.excat-card {
  text-align: left;
  border: 1.5px solid var(--line);
  background: #f8fafd;
  border-radius: 14px;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: border-color .12s, background .12s, transform .12s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.excat-card:hover,
.excat-card:active {
  border-color: var(--blue-2);
  background: #fff;
  transform: translateY(-1px);
}

.excat-card__name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.excat-card__count {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.exlist-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 2px;
}

.exlist-back:hover {
  color: var(--navy);
}

.exlist-pcat-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
}

.exlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .exlist-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Exhibitor card ── */
.excard {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(15, 42, 92, .06);
  transition: box-shadow .15s, border-color .15s;
}

.excard:hover {
  box-shadow: 0 6px 20px rgba(15, 42, 92, .12);
  border-color: #b5c5e0;
}

.excard__header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.excard__logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4fa;
}

.excard__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.excard__logo-fb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
}

.excard__head-info {
  flex: 1;
  min-width: 0;
}

.excard__name {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.excard__stall {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.excard__stall--tba {
  color: var(--muted);
  font-weight: 600;
}

.excard__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.excard__cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue);
  background: #e8f0fc;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.excard__loc {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* products inside card */
.excard__prods {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.excard__prod-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 5px;
}

.excard__prod-list {
  list-style: disc;
  padding-left: 16px;
  margin: 0;
}

.excard__prod-list li {
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.excard__prod-more {
  color: var(--muted);
  font-style: italic;
  list-style: none;
  margin-left: -16px;
}

/* card footer buttons */
.excard__foot {
  display: flex;
  gap: 7px;
  margin-top: auto;
}

.excard__det-btn {
  flex: 1;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .13s;
}

.excard__det-btn:hover {
  background: var(--blue);
}

.excard__loc-btn {
  background: #eaf2ff;
  color: var(--blue);
  border: 1.5px solid #c5d9f5;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .13s;
}

.excard__loc-btn:hover {
  background: #d6e8ff;
}

/* ── Detail view ── */
.exdet {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exdet__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 14px;
}

.exdet__back:hover {
  color: var(--navy);
}

.exdet__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, #f0f5ff 0%, #fff 60%);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 24px 16px 18px;
  margin-bottom: 16px;
}

.exdet__logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 2px solid var(--line);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4fa;
}

.exdet__logo .excard__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exdet__logo .excard__logo-fb {
  width: 100%;
  height: 100%;
  font-size: 26px;
}

.exdet__name {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.exdet__fascia {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.exdet__section {
  border-top: 1px solid var(--line);
  padding: 14px 0 4px;
  margin-bottom: 4px;
}

.exdet__section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.exdet__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

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

.exdet__prod-list {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exdet__prod-list li {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}

.exdet__link {
  display: block;
  font-size: 13px;
  color: var(--blue);
  word-break: break-all;
  text-decoration: underline;
  margin-top: 4px;
}

.exdet__locate-btn {
  width: 100%;
  margin-top: 16px;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
}

/* misc */
.exlist-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 14px;
}

.exlist-loading span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

.exlist-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 14px;
  line-height: 1.6;
}

/* =====================================================================
   DESKTOP / TABLET POLISH — centered, premium, app-like
   (fixes the full-width stretch; the .app wrapper in index.html keeps
   everything in a centered column like a real app, but more polished
   than the reference). Appended last so it wins the cascade.
   ===================================================================== */
@media (min-width: 600px) {
  .app {
    max-width: 720px;
    padding: 30px 0 56px;
  }

  /* Banner as a contained hero card */
  .banner {
    margin: 0 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 42, 92, .14);
  }

  .shell {
    padding: 24px 20px 36px;
  }

  .welcome {
    font-size: 27px;
    margin: 10px 2px 18px;
  }

  /* Featured AI chat card a touch larger */
  .hero {
    padding: 20px 22px;
    border-radius: 18px;
  }

  /* Premium 2-column tile grid (overrides the cramped 4-col) */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
  }

  .tile {
    min-height: 128px;
    padding: 26px 16px;
    border-radius: 18px;
    gap: 12px;
  }

  .tile__icon {
    font-size: 36px;
  }

  .tile__label {
    font-size: 14.5px;
    font-weight: 700;
  }

  .tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 42, 92, .16);
  }

  .foot {
    margin-top: 26px;
  }

}

/* Large desktop: 3 clean columns, still a centered column (never full-bleed) */
@media (min-width: 980px) {
  .app {
    max-width: 860px;
  }

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