@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Alatsi";
  src: url("/fonts/alatsi-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111111;
  --ink-soft: #444444;
  --forest: #111111;
  --forest-dark: #050505;
  --mint: #f0f0f0;
  --mint-strong: #d6d6d6;
  --coral: #e02b20;
  --coral-dark: #c92014;
  --cream: #fffaf7;
  --cream-deep: #f2ebe6;
  --paper: #ffffff;
  --line: #d6d6d3;
  --muted: #6c6c68;
  --blue-soft: #e6f6fb;
  --blue: #2ea3f2;
  --amber-soft: #fff6cc;
  --amber: #fa8b0c;
  --danger: #c90016;
  --magenta: #d71972;
  --green: #28a800;
  --cyan: #2ea3f2;
  --yellow: #fcb900;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", "Noto Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 250px;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line);
  background: #fffdfb;
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 8px 42px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 78px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 0;
  border: 1px solid #d6d6d2;
  background: #fff;
  color: var(--coral-dark);
  font-family: "Alatsi", "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mark img[hidden] { display: none; }

.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-family: "Alatsi", "Poppins", sans-serif; font-size: 20px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { background: #fff1ee; color: var(--ink); }
.nav-item.is-active { background: var(--coral); color: #fff; box-shadow: none; }

.sidebar-footer { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid var(--line); }
.sidebar-footer p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.live-dot { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.live-dot span { width: 7px; height: 7px; border-radius: 50%; background: #71d29c; box-shadow: 0 0 0 4px rgba(113,210,156,.12); }

.main-content { min-height: 100vh; margin-left: 250px; padding: 0 46px 56px; }

.topbar {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
  padding: 10px 0;
}

.eyebrow { margin: 0 0 7px; color: var(--coral-dark); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #b7d4c9; }
.topbar-heading { display: flex; min-width: 0; flex: 1 1 360px; align-items: center; gap: 18px; }
.topbar-title { min-width: max-content; }
.topbar-logo { display: block; width: clamp(150px, 16vw, 240px); max-height: 76px; flex: 0 1 auto; object-fit: contain; object-position: left center; }
.topbar h1 { margin: 0; font-family: "Alatsi", "Poppins", sans-serif; font-size: 32px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.topbar-actions { display: flex; max-width: 100%; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.event-location { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.event-location span { max-width: 320px; overflow-wrap: anywhere; line-height: 1.4; }
.event-location svg { width: 18px; height: 18px; color: var(--coral); }

.avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: 12px; font-weight: 800; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: progress; transform: none; }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--coral); color: white; box-shadow: 0 10px 22px rgba(213, 89, 58, .18); }
.button-primary:hover { background: var(--coral-dark); }
.button-secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-secondary:hover { border-color: #c8cec5; }
.button-danger { border-color: #e5a4aa; background: #fff5f5; color: var(--danger); box-shadow: none; }
.button-danger:hover { border-color: var(--danger); background: #ffe8ea; }
.button-light { background: white; color: var(--forest-dark); }
.button-ghost-light { border-color: #e4b8ae; background: #fff; color: var(--coral-dark); }
.button-full { width: 100%; }

.view { display: none; animation: view-in 240ms ease; }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.welcome-card {
  position: relative;
  display: flex;
  min-height: 238px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 36px 38px;
  border-radius: var(--radius-lg);
  background: #fff3ef;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.welcome-card > div { position: relative; z-index: 2; }
.welcome-card h2 { max-width: 580px; margin: 0 0 13px; font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; line-height: 1.03; letter-spacing: -.025em; }
.welcome-card p:not(.eyebrow) { max-width: 530px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.welcome-actions { display: flex; flex-shrink: 0; gap: 10px; }
.welcome-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { top: -140px; right: -10px; width: 350px; height: 350px; }
.orbit-two { top: -75px; right: 55px; width: 220px; height: 220px; background: rgba(220,235,226,.04); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric-card { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.metric-card > div:last-child { display: grid; gap: 3px; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-card strong { font-family: "Alatsi", "Poppins", sans-serif; font-size: 30px; font-weight: 600; }
.metric-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; }
.metric-icon svg { width: 20px; height: 20px; }
.metric-forest { background: var(--mint); color: var(--forest); }
.metric-blue { background: var(--blue-soft); color: var(--blue); }
.metric-amber { background: var(--amber-soft); color: var(--amber); }
.metric-coral { background: #f6dfd8; color: var(--coral-dark); }

.overview-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 10px 30px rgba(24,50,43,.025); }
.panel-heading { padding: 25px 26px 14px; }
.panel-heading-row { display: flex; align-items: center; justify-content: space-between; }
.panel-heading h3 { margin: 0; font-family: "Alatsi", "Poppins", sans-serif; font-size: 23px; font-weight: 600; }
.text-button { border: 0; background: transparent; color: var(--coral-dark); font-size: 11px; font-weight: 800; cursor: pointer; }

.action-row { display: grid; width: calc(100% - 28px); grid-template-columns: 42px 1fr 20px; align-items: center; gap: 14px; margin: 0 14px; padding: 14px 12px; border: 0; border-top: 1px solid #eff0eb; background: transparent; text-align: left; cursor: pointer; }
.action-row > span:nth-child(2) { display: grid; gap: 4px; }
.action-row strong { font-size: 12px; }
.action-row small { color: var(--muted); font-size: 10px; }
.action-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; }
.action-icon svg { width: 18px; height: 18px; }
.action-coral { background: #f8e1db; color: var(--coral-dark); }
.action-mint { background: var(--mint); color: var(--forest); }
.action-sky { background: var(--blue-soft); color: var(--blue); }
.action-arrow { width: 16px; color: #a4afa9; transition: transform 150ms ease; }
.action-row:hover .action-arrow { transform: translateX(3px); color: var(--coral); }

.arrival-list { padding: 0 24px 15px; }
.arrival-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #eff0eb; }
.arrival-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: 10px; font-weight: 800; }
.arrival-item div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.arrival-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.arrival-item small, .arrival-time { color: var(--muted); font-size: 9px; }

.empty-state { display: grid; place-items: center; gap: 6px; padding: 55px 20px; color: var(--muted); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state span { color: var(--ink-soft); font-family: "Alatsi", "Poppins", sans-serif; font-size: 19px; }
.empty-state small { font-size: 11px; }
.empty-state.compact { min-height: 195px; padding: 30px 20px; }

.sponsors-panel { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 18px; padding: 20px; }
.sponsors-panel[hidden] { display: none; }
.sponsors-copy { padding: 4px 6px; }
.sponsors-copy h3 { margin: 0 0 7px; font-family: "Alatsi", "Poppins", sans-serif; font-size: 24px; font-weight: 600; }
.sponsors-copy > p:last-child { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sponsor-viewport { min-width: 0; overflow: hidden; }
.sponsor-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; padding: 1px 1px 8px; scroll-snap-type: x proximity; scrollbar-color: #cfd6d0 transparent; scrollbar-width: thin; }
.sponsor-card { display: grid; aspect-ratio: 1.4; min-width: 0; place-items: center; overflow: hidden; border: 1px solid #eceee8; border-radius: 13px; background: #fff; scroll-snap-align: start; }
.sponsor-card img { display: block; width: 100%; height: 100%; object-fit: contain; }

.sync-strip { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; margin-top: 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,254,251,.66); }
.sync-strip-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--mint); color: var(--forest); }
.sync-strip-icon svg { width: 18px; height: 18px; }
.sync-strip strong { display: block; margin-bottom: 3px; font-size: 11px; }
.sync-strip p { margin: 0; color: var(--muted); font-size: 10px; }
.status-pill { padding: 6px 10px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-neutral { background: #e9ece7; color: #64736e; }
.status-success { background: var(--mint); color: var(--forest); }
.status-error { background: #f8dfda; color: var(--danger); }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 18px 0 24px; }
.page-intro h2 { margin: 0 0 8px; font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(34px, 4vw, 50px); font-weight: 600; letter-spacing: -.025em; }
.page-intro > div > p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.step-badge { padding: 9px 13px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 10px; font-weight: 750; }

.register-view { min-width: 0; }
.register-operations { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--line); border-top: 6px solid var(--coral); background: #fffaf7; box-shadow: var(--shadow); }
.register-operations-copy { min-width: 0; }
.register-operations-copy h3 { margin: 0 0 4px; font-family: "Alatsi", "Poppins", sans-serif; font-size: 22px; font-weight: 600; }
.register-operations-copy > p:last-child { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.register-operations-actions { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 9px; }
.camera-output-host { min-width: 0; }
.register-operations > .camera-output-host { grid-column: 1 / -1; }
.form-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.form-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #ffe7e8; color: var(--coral-dark); font-size: 10px; font-weight: 800; }
.form-section-heading h3 { margin: 0 0 3px; font-family: "Alatsi", "Poppins", sans-serif; font-size: 20px; font-weight: 600; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.choice-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { position: relative; display: flex; min-width: 0; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; transition: 150ms ease; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card.is-selected { border-color: var(--forest); background: #f0f6f2; box-shadow: inset 0 0 0 1px var(--forest); }
.choice-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--cream); color: var(--forest); }
.choice-card.is-selected .choice-icon { background: var(--mint); }
.choice-card > span:last-child { display: grid; gap: 4px; }
.choice-card strong { font-size: 12px; }
.choice-card small { color: var(--muted); font-size: 10px; }
.form-divider { height: 1px; margin: 18px 0; background: #eceee8; }
.form-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.field { display: grid; min-width: 0; gap: 5px; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.field input, .field select, .search-field input, .directory-tools select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d9ddd5;
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field select {
  padding-right: 38px;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236c6c68' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.field input:focus, .field select:focus, .search-field input:focus, .directory-tools select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(29,75,62,.1); }
.field input::placeholder, .search-field input::placeholder { color: #a6afaa; }
.field-error, .contact-hint { min-height: 0; margin: 0; color: var(--danger); font-size: 9px; }
.field-error:empty, .contact-hint:empty { display: none; }
.contact-hint { color: var(--muted); }
.contact-hint.is-error { color: var(--danger); }
.is-hidden { display: none !important; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #eceee8; }

.checkin-layout { display: grid; min-height: clamp(360px, calc(100vh - 360px), 600px); grid-template-columns: minmax(0, 620px); place-content: center; max-width: 720px; margin: 0 auto; }
.checkin-card { position: relative; width: 100%; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.scan-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 18px; border-radius: 18px; background: var(--mint); color: var(--forest); }
.scan-icon svg { width: 28px; height: 28px; }
.checkin-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.checkin-heading-row h2 { margin: 3px 0 5px; font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(26px, 4vw, 36px); line-height: 1.05; }
.checkin-heading-row p:last-child { max-width: 460px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.checkin-heading-row .button { flex: 0 0 auto; }
.checkin-camera-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.checkin-camera-panel { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); background: #fff9f6; }
.checkin-camera-panel[hidden] { display: none; }
.checkin-camera-frame { position: relative; width: 100%; max-height: min(56vh, 470px); aspect-ratio: 4 / 3; overflow: hidden; background: #e8e5e2; }
.checkin-camera-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.checkin-camera-frame .scan-region-highlight { border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.3); }
.checkin-camera-frame .code-outline-highlight { stroke: var(--coral) !important; stroke-width: 5 !important; }
.checkin-camera-status { min-height: 18px; margin: 10px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.checkin-manual-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.checkin-manual-divider::before, .checkin-manual-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.checkin-field { margin-bottom: 14px; }
.checkin-field input { height: 66px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.checkin-result { display: none; margin-top: 18px; padding: 16px; border-radius: 13px; font-size: 11px; line-height: 1.5; }
.checkin-result.is-visible { display: block; }
.checkin-result.is-success { background: var(--mint); color: var(--forest); }
.checkin-result.is-error { background: #f9e3de; color: var(--danger); }
.checkin-result strong { display: block; margin-bottom: 2px; font-family: "Alatsi", "Poppins", sans-serif; font-size: 18px; }

.attendees-intro { align-items: center; }
.directory-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.directory-panel[aria-busy="true"] .table-wrap { opacity: .58; transition: opacity 120ms ease; }
.directory-tools { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 160px; gap: 10px; padding: 19px; border-bottom: 1px solid #eceee8; }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 14px; left: 14px; z-index: 1; width: 18px; height: 18px; color: var(--muted); }
.search-field input { padding-left: 42px; }
.directory-tools select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%237c8b86' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 13px center; padding-right: 36px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 20px; background: #f7f7f2; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 16px 20px; border-top: 1px solid #eff0eb; color: var(--ink-soft); font-size: 10px; vertical-align: middle; }
.visitor-cell { display: flex; align-items: center; gap: 11px; }
.visitor-badge-link { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.visitor-badge-link:hover strong { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }
.visitor-badge-link:focus-visible { outline: 3px solid rgba(224,43,32,.24); outline-offset: 5px; }
.visitor-cell .arrival-avatar { flex: 0 0 auto; }
.visitor-cell div { display: grid; gap: 3px; }
.visitor-cell strong { color: var(--ink); font-size: 11px; }
.visitor-cell small, .contact-cell small { color: var(--muted); font-size: 9px; }
.contact-cell { display: grid; gap: 4px; }
.source-badge { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.source-pre { background: var(--blue-soft); color: var(--blue); }
.source-onsite { background: var(--amber-soft); color: var(--amber); }
.arrival-status { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 750; }
.arrival-status::before { width: 7px; height: 7px; border-radius: 50%; background: #bec6c1; content: ""; }
.arrival-status.is-in { color: var(--forest); }
.arrival-status.is-in::before { background: #58b680; box-shadow: 0 0 0 3px rgba(88,182,128,.12); }
.arrival-status.is-onsite { color: #28711a; }
.arrival-status.is-onsite::before { background: var(--green); box-shadow: 0 0 0 3px rgba(40,168,0,.14); }
.badge-row-action { min-height: 36px; padding: 0 12px; box-shadow: none; white-space: nowrap; }
.visitor-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.delete-row-action { min-height: 36px; padding: 0 12px; white-space: nowrap; }

.success-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 38px; border: 0; border-radius: 26px; color: var(--ink); text-align: center; box-shadow: 0 28px 90px rgba(65,45,38,.18); }
.success-dialog::backdrop { background: rgba(105,76,66,.18); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 13px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.success-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--green); color: #fff; }
.success-mark svg { width: 27px; height: 27px; }
.success-dialog h2 { margin: 0 0 7px; font-family: "Alatsi", "Poppins", sans-serif; font-size: 30px; font-weight: 600; }
.success-dialog > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.registration-code { display: block; margin: 20px 0; padding: 14px; border: 1px dashed #bfc9c1; border-radius: 12px; background: var(--cream); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 23px; letter-spacing: .08em; }
.success-dialog .registration-sync-note { margin: -9px 0 20px; color: var(--forest); font-size: 10px; font-weight: 700; }
.success-dialog .registration-sync-note.is-pending { color: var(--amber); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.success-dialog.is-directory .dialog-actions { grid-template-columns: 1fr; }

.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 9px; width: min(360px, calc(100% - 32px)); }
.toast { padding: 14px 16px; border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 13px; background: #fff; color: var(--ink); box-shadow: 0 18px 45px rgba(65,45,38,.16); font-size: 11px; animation: toast-in 180ms ease; }
.toast.is-error { border-left-color: var(--danger); background: #fff1f1; color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Hotel Asia identity and role-aware application surfaces */
[hidden] { display: none !important; }

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 4px;
  background: linear-gradient(90deg, var(--coral) 0 22%, var(--yellow) 22% 39%, var(--green) 39% 56%, var(--cyan) 56% 75%, var(--magenta) 75% 100%);
  content: "";
}

.sidebar { border-right: 5px solid var(--coral); background: #fffdfb; color: var(--ink); }
.brand-copy small { color: var(--muted); }
.nav-item { color: var(--ink-soft); }
.sidebar-footer p { color: var(--muted); }
.live-dot { color: var(--ink-soft); }
.live-dot span { background: var(--green); box-shadow: 0 0 0 4px rgba(107, 189, 69, .15); }
.main-content { background: #fffaf7; }
.topbar { position: relative; border-bottom: 1px solid #cececa; }
.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(360px, 45%);
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--cyan), var(--magenta), var(--coral));
  content: "";
}
.eyebrow { color: var(--coral); }
.eyebrow-light { color: var(--coral); }
.welcome-card { border-top: 7px solid var(--coral); background: #fff3ef; color: var(--ink); }
.welcome-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--cyan), var(--magenta));
  content: "";
}
.welcome-orbit { display: none; }
.welcome-card p:not(.eyebrow) { color: var(--ink-soft); }
.button-primary { background: var(--coral); box-shadow: 5px 5px 0 #f2c0b8; }
.button-primary:hover { background: var(--coral-dark); }
.button-light { border: 1px solid #d9b0a8; background: #fff; color: var(--ink); }
.button-ghost-light { border-color: #e4b8ae; background: #fff7f4; color: var(--coral-dark); }
.metric-card { border-top-width: 4px; }
.metric-card:nth-child(1) { border-top-color: var(--coral); }
.metric-card:nth-child(2) { border-top-color: var(--cyan); }
.metric-card:nth-child(3) { border-top-color: var(--yellow); }
.metric-card:nth-child(4) { border-top-color: var(--green); }
.metrics-grid.is-exhibitor { grid-template-columns: minmax(240px, 380px); }
.metric-forest { background: #e9f6dd; color: #3d7a1d; }
.metric-coral { background: #ffe6e7; color: var(--coral-dark); }
.panel { border-top: 4px solid #111; }
.form-panel, .directory-panel, .checkin-card { border-top: 6px solid var(--coral); }
.action-coral { background: #ffe7e8; color: var(--coral-dark); }
.action-mint { background: #e9f6dd; color: #3d7a1d; }
.action-sky { background: #e4f7fb; color: #007a9b; }
.section-number { background: #ffe7e8; color: var(--coral-dark); }
.choice-card.is-selected { border-color: var(--coral); background: #fff5f5; box-shadow: inset 5px 0 0 var(--coral); }
.choice-card.is-selected .choice-icon { background: #ffe4e5; color: var(--coral-dark); }
.choice-card:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }
.field input:focus, .field select:focus, .search-field input:focus, .directory-tools select:focus, .login-card select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, .12);
}
.status-success, .checkin-result.is-success { background: #e7f5dc; color: #2c6b13; }
.source-onsite { background: #fff3bc; color: #8a6700; }

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 22px;
  padding: 30px;
  background: #fffaf7;
  color: #111;
  text-align: center;
}
.loading-overlay::after {
  width: min(340px, 72vw);
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--cyan), var(--magenta));
  content: "";
  animation: loading-pulse 950ms ease-in-out infinite alternate;
}
.loading-overlay img { display: block; width: min(410px, 78vw); max-height: 48vh; padding: 0; border: 0; background: transparent; object-fit: contain; transform-origin: center; animation: loading-logo-pulse 720ms ease-in-out infinite alternate; will-change: transform, opacity; }
.loading-overlay strong { font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(20px, 3vw, 30px); letter-spacing: .01em; }
@keyframes loading-pulse { from { transform: scaleX(.28); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes loading-logo-pulse { from { opacity: .58; transform: scale(.78); } to { opacity: 1; transform: scale(1.08); } }

.public-screen, .exhibitor-gate-screen { min-height: 100vh; overflow: hidden; background: #fffaf7; }
.public-hero {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  justify-items: center;
  gap: 22px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 74px) 0 42px;
  text-align: center;
}
.public-logo { display: block; width: min(720px, 92%); max-height: 285px; border: 0; object-fit: contain; }
.public-copy { display: grid; justify-items: center; }
.public-copy h1 { margin: 0 0 10px; font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(42px, 7vw, 82px); font-weight: 600; line-height: .94; letter-spacing: -.035em; }
.public-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: clamp(13px, 1.5vw, 17px); }
.public-copy > strong { margin-top: 5px; font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(17px, 2vw, 23px); font-weight: 400; }
.public-entry-actions { display: grid; width: min(760px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 3px; }
.entry-action { display: grid; min-height: 90px; place-content: center; gap: 5px; padding: 18px 22px; border: 2px solid var(--coral); color: var(--ink); text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease; }
.entry-action:hover { transform: translateY(-2px); }
.entry-action span { font-family: "Alatsi", "Poppins", sans-serif; font-size: 28px; }
.entry-action small { font-size: 10px; font-weight: 700; }
.entry-action-primary { background: var(--coral); color: #fff; box-shadow: 7px 7px 0 #f2c0b8; }
.entry-action-secondary { background: #fff; box-shadow: 7px 7px 0 #e5e5e0; }
.public-program { margin-top: 4px; }
.entry-sponsors { display: grid; width: min(1240px, calc(100% - 48px)); gap: 18px; margin: 0 auto 42px; padding: 24px 28px 28px; border: 2px solid #cfcfcb; border-top: 7px solid var(--coral); background: #fff; }
.entry-sponsors .sponsors-copy h2 { margin: 0; font-family: "Alatsi", "Poppins", sans-serif; font-size: 30px; font-weight: 600; }

.exhibitor-gate-main { position: relative; display: grid; width: min(620px, calc(100% - 48px)); min-height: 70vh; place-content: center; justify-items: center; gap: 24px; margin: 0 auto; padding: 70px 0 48px; }
.entry-home-link { position: absolute; top: 34px; left: 0; color: var(--coral-dark); font-size: 11px; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.gate-logo { display: block; width: min(510px, 90%); max-height: 190px; object-fit: contain; }
.exhibitor-gate-card { width: min(460px, 100%); }
.exhibitor-gate-card h1 { margin: 0 0 10px; font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(34px, 7vw, 48px); font-weight: 600; line-height: 1; }
.exhibitor-gate-card > p:not(.eyebrow, .login-error) { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.login-screen { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); background: #fffaf7; }
.login-brand-panel { position: relative; display: flex; min-height: 100vh; align-items: center; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); overflow: hidden; padding: clamp(32px, 4vw, 64px); border-right: 8px solid #eadbd6; background: #fff; color: #111; text-align: center; }
.login-brand-panel::after {
  position: absolute;
  inset: auto 0 0;
  height: 14px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--cyan), var(--magenta));
  content: "";
}
.login-logo { width: min(885px, 100%); max-height: min(435px, 42vh); padding: 0; border: 0; background: transparent; object-fit: contain; object-position: center; }
.login-event-copy { display: grid; width: min(820px, 100%); justify-items: center; }
.login-brand-panel h1 { max-width: 760px; margin: 0 auto 18px; font-family: "Alatsi", "Poppins", sans-serif; font-size: clamp(44px, 6.7vw, 94px); font-weight: 600; line-height: .92; letter-spacing: -.035em; }
.login-brand-panel .eyebrow-light { color: var(--coral); }
.login-event-copy > p:not(.eyebrow) { max-width: 620px; margin: 0 auto; color: #555551; font-size: 15px; line-height: 1.65; }
.login-event-copy > .login-tagline { margin-top: 4px; color: #111; font-family: "Alatsi", "Poppins", sans-serif; font-size: 19px; }
.login-program { display: grid; width: 100%; max-width: 760px; grid-template-columns: .78fr 1.22fr; margin: 28px auto 0; border: 1px solid #c9c9c5; border-left: 6px solid var(--coral); background: #f8f8f6; }
.login-program > div { display: grid; justify-items: center; gap: 5px; padding: 18px 20px; text-align: center; }
.login-program > div + div { border-left: 1px solid #c9c9c5; }
.login-program strong { color: #111; font-family: "Alatsi", "Poppins", sans-serif; font-size: 15px; font-weight: 400; }
.login-program span { color: #111; font-size: 10px; font-weight: 700; }
.login-program small { color: #666661; font-size: 9px; line-height: 1.5; }
.login-form-panel { display: grid; min-height: 100vh; place-items: center; padding: clamp(26px, 6vw, 76px); background: #fffaf7; }
.login-form-stack { display: grid; width: min(440px, 100%); gap: 24px; }
.login-card { width: 100%; padding: clamp(26px, 4vw, 46px); border: 1px solid #cfcfcb; border-top: 8px solid var(--coral); background: #fff; box-shadow: 14px 14px 0 #f2d3cd; }
.login-card h2 { margin: 0 0 10px; font-family: "Alatsi", "Poppins", sans-serif; font-size: 43px; line-height: 1; }
.login-card > p:not(.eyebrow, .demo-password, .login-error) { margin: 0 0 28px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-card .field { margin-top: 17px; }
.login-card select {
  width: 100%;
  min-height: 47px;
  padding: 0 38px 0 14px;
  border: 1px solid #d0d0cc;
  border-radius: 0;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236c6c68' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 13px center;
  appearance: none;
  color: var(--ink);
  font-size: 12px;
}
.demo-password { margin: 16px 0 8px; color: var(--muted); font-size: 10px; }
.demo-password strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.login-error { min-height: 17px; margin: 6px 0 10px; color: var(--danger); font-size: 10px; font-weight: 700; }
@media (min-width: 961px) and (max-height: 900px) {
  .login-brand-panel, .login-form-panel, .login-form-stack, .login-program, .login-program > div { min-width: 0; }
  .login-brand-panel, .login-form-panel { padding-block: clamp(18px, 3vh, 28px); }
  .login-brand-panel { justify-content: center; gap: clamp(18px, 3vh, 28px); }
  .login-logo { max-height: clamp(225px, 33vh, 300px); padding: 0; }
  .login-brand-panel h1 { margin-bottom: 12px; font-size: clamp(44px, min(6vw, 8vh), 64px); }
  .login-event-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.5; }
  .login-event-copy > .login-tagline { font-size: 17px; }
  .login-program { margin-top: 14px; }
  .login-program > div { gap: 3px; padding-block: 12px; }
  .login-form-stack { width: min(400px, 100%); gap: 12px; }
  .login-card { padding: clamp(20px, 3vh, 26px) clamp(24px, 3vw, 34px); }
  .login-card h2 { font-size: 38px; }
  .login-card > p:not(.eyebrow, .demo-password, .login-error) { margin-bottom: 16px; }
  .login-card .field { margin-top: 10px; }
  .demo-password { margin: 10px 0 4px; }
  .login-error { margin: 4px 0 6px; }
}

.user-menu { display: grid; grid-template-columns: 42px auto auto; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid #cfcfcb; }
.user-copy { display: grid; gap: 2px; min-width: 0; }
.user-copy strong { max-width: 145px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.logout-button { padding: 7px 9px; border: 1px solid #aaa; border-radius: 0; background: transparent; color: var(--ink); font-size: 9px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.logout-button:hover { border-color: var(--coral); color: var(--coral-dark); }

.daily-panel { margin-top: 18px; }
.daily-totals { display: grid; gap: 13px; padding: 0 26px 26px; }
.daily-row { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 14px; font-size: 10px; }
.daily-row > span:first-child { color: var(--muted); font-weight: 750; text-transform: uppercase; }
.daily-row strong { font-family: "Alatsi", "Poppins", sans-serif; font-size: 20px; text-align: right; }
.daily-bar { height: 12px; overflow: hidden; background: #e7e7e3; }
.daily-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--magenta), var(--cyan)); }

.is-public-registration .sidebar { display: none; }
.is-public-registration .main-content { width: min(1280px, 100%); margin: 0 auto; }
.public-home-link { color: var(--ink); text-decoration: none; }

.management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.management-panel { min-width: 0; padding-bottom: 24px; border-top: 6px solid var(--coral); }
.management-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 0 26px 24px; border-bottom: 1px solid var(--line); }
.management-form .button { align-self: end; }
.code-form { grid-template-columns: minmax(0, 1fr) auto; }
.management-status { min-height: 18px; margin: 16px 26px 4px; color: var(--muted); font-size: 10px; }
.management-list { display: grid; gap: 12px; padding: 12px 26px 0; }
.management-item { display: grid; min-width: 0; gap: 14px; padding: 17px; border: 1px solid var(--line); background: #fffaf7; }
.management-item-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; }
.management-item-heading > div { display: grid; min-width: 0; gap: 3px; }
.management-item-heading strong { overflow-wrap: anywhere; font-size: 12px; }
.management-item-heading small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.management-item-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.active-toggle { display: flex; min-height: 42px; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; }
.active-toggle input { width: 18px; height: 18px; accent-color: var(--coral); }
.code-management-item code { max-width: 100%; overflow-wrap: anywhere; padding: 13px; border: 1px dashed #bfc9c1; background: #fff; font-size: 16px; font-weight: 800; letter-spacing: .05em; text-align: center; }
.management-item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.generated-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 18px 26px 4px; padding: 16px; border: 2px solid var(--green); background: #eef9e9; }
.generated-code > div { display: grid; gap: 3px; }
.generated-code strong { font-size: 11px; }
.generated-code small { color: var(--muted); font-size: 9px; }
.generated-code code { grid-column: 1 / -1; overflow-wrap: anywhere; padding: 13px; border: 1px dashed #85ad74; background: #fff; font-size: 17px; font-weight: 800; letter-spacing: .05em; text-align: center; }
.access-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 0; border: 0; border-top: 7px solid var(--coral); background: #fffaf7; color: var(--ink); box-shadow: 0 28px 90px rgba(65,45,38,.24); }
.access-dialog::backdrop { background: rgba(32, 24, 20, .62); backdrop-filter: blur(5px); }
.access-dialog-content { display: grid; gap: 16px; padding: 30px; }
.access-dialog-content h2, .access-dialog-content p { margin: 0; }
.access-dialog-content h2 { font-family: "Alatsi", "Poppins", sans-serif; font-size: 30px; font-weight: 600; }
.access-dialog-content > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.65; }
.access-dialog-content code { overflow-wrap: anywhere; padding: 16px; border: 2px dashed #85ad74; background: #fff; font-size: 17px; font-weight: 800; letter-spacing: .04em; text-align: center; user-select: all; }
.access-dialog-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }

.sponsors-panel { display: grid; min-width: 0; grid-template-columns: 1fr; align-items: stretch; gap: 18px; margin: 34px 0 0; padding: 24px 28px 28px; border: 2px solid #cfcfcb; border-top: 7px solid var(--coral); background: #fff; }
.sponsors-copy { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0; }
.sponsors-copy h3 { margin-bottom: 0; font-size: 30px; }
.sponsors-copy > p { max-width: 280px; margin-left: auto; padding-bottom: 3px; font-size: 11px; text-align: right; }
.sponsor-motion-toggle { min-height: 34px; padding: 7px 11px; border: 1px solid #a7a7a2; background: #fff; color: var(--ink); font: inherit; font-size: 9px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.sponsor-motion-toggle:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sponsor-viewport { display: flex; min-width: 0; min-height: 312px; align-items: center; overflow: hidden; border: 1px solid #d6d6d2; background: #f8f8f6; }
.sponsor-list { display: flex; width: max-content; align-items: center; gap: 0; overflow: visible; padding: 22px 0; animation: sponsor-scroll 34s linear infinite; }
.sponsor-track-set { display: flex; flex: 0 0 auto; align-items: center; gap: 22px; padding-right: 22px; }
.sponsor-card { position: relative; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 2px solid #d6d6d2; border-bottom: 5px solid #111; background: #fff; }
.sponsor-card img { position: absolute; left: 0; display: block; width: 720px; height: auto; max-width: none; padding: 0; }
.sponsor-card.official-sponsor-top { width: 720px; height: 264px; }
.sponsor-card.official-sponsor-top img { top: 0; }
.sponsor-card.official-sponsor-supported { width: 720px; height: 100px; }
.sponsor-card.official-sponsor-supported img { top: -454px; }
.sponsor-card.official-sponsor-categories { width: 720px; height: 174px; }
.sponsor-card.official-sponsor-categories img { top: -546px; }
.sponsor-viewport:hover .sponsor-list, .sponsor-viewport.is-paused .sponsor-list { animation-play-state: paused; }
@keyframes sponsor-scroll { to { transform: translateX(-50%); } }

.badge-print-header { display: none; }
.qr-code { display: grid; width: min(300px, 100%); max-width: 100%; aspect-ratio: 1; place-items: center; overflow: hidden; margin: 14px auto 12px; padding: 8px; border: 1px solid var(--line); background: #fff; }
.qr-code svg { display: block; width: 100%; max-width: 100%; height: 100%; max-height: 100%; shape-rendering: crispEdges; stroke: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.qr-code svg path { stroke-linecap: butt; stroke-linejoin: miter; }
.qr-placeholder { color: var(--muted); font-size: 10px; }
.qr-placeholder.is-error { color: var(--danger); }
.badge-status-copy { max-width: 340px; margin: 0 auto 15px !important; line-height: 1.55; }
.success-dialog { border-top: 8px solid var(--coral); }
.success-dialog .dialog-actions { grid-template-columns: repeat(2, 1fr); }

.brand-mark, .nav-item, .button, .welcome-card, .metric-card, .metric-icon, .panel,
.action-icon, .sponsor-card, .sync-strip, .sync-strip-icon, .status-pill, .step-badge,
.form-panel, .register-operations, .section-number, .choice-card, .choice-icon, .field input, .field select, .search-field input,
.directory-tools select, .checkin-card, .scan-icon, .checkin-result, .checkin-camera-panel, .checkin-camera-frame, .directory-panel,
.source-badge, .success-dialog, .registration-code, .toast, .entry-action, .entry-sponsors, .management-item {
  border-radius: 0 !important;
}

@media print {
  @page { size: 100mm 140mm; margin: 5mm; }
  body { min-width: 0; background: #fff; }
  body::before, body > .app-shell, body > .public-screen, body > .login-screen, body > .exhibitor-gate-screen, body > .loading-overlay, body > .toast-region, body > .access-dialog { display: none !important; }
  .success-dialog {
    position: static;
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    max-height: none;
    overflow: visible;
    padding: 4mm 5mm;
    border: 1px solid #000;
    border-top: 4px solid var(--coral);
    box-shadow: none;
  }
  .success-dialog::backdrop, .dialog-close, .success-mark, .dialog-actions, .registration-sync-note, .badge-status-copy { display: none !important; }
  .badge-print-header { display: flex; min-height: 20mm; align-items: center; justify-content: space-between; gap: 4mm; margin-bottom: 5mm; padding: 2mm; border: 1px solid #000; border-bottom: 3px solid var(--coral); background: #fff; color: #111; }
  .badge-print-header img { width: 46mm; max-height: 16mm; object-fit: contain; }
  .badge-print-header span { font-size: 7pt; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .success-dialog h2 { margin-bottom: 1mm; font-size: 22pt; line-height: 1.05; }
  .success-dialog > p:not(.eyebrow) { font-size: 8pt; }
  .registration-code { margin: 3mm 0; padding: 2mm; border: 1px solid #000; font-size: 14pt; }
  .qr-code { width: 52mm; max-width: 100%; height: 52mm; margin: 3mm auto 0; padding: 0; border: 0; }
  .qr-code svg { width: 52mm; max-width: 100%; height: 52mm; max-height: 100%; }
}

@media (min-width: 1180px) {
  .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 781px) and (max-width: 1400px) {
  .topbar { gap: 14px; padding-block: 14px; }
  .topbar-heading { flex-basis: 100%; }
  .topbar-actions { width: 100%; }
}

@media (max-width: 1080px) {
  .main-content { padding-inline: 28px; }
  .event-location { display: none; }
  .topbar-logo { width: clamp(145px, 19vw, 190px); }
  .overview-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .management-grid { grid-template-columns: 1fr; }
}

@media (min-width: 781px) and (max-width: 960px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: auto; justify-content: center; gap: 28px; overflow: visible; padding: 48px 38px; border-right: 0; border-bottom: 8px solid #eadbd6; }
  .login-logo { max-height: 315px; }
  .login-form-panel { min-height: auto; padding: 48px 28px 64px; }
}

@media (max-width: 780px) {
  .public-hero { width: min(calc(100% - 32px), 680px); gap: 18px; padding-top: 42px; }
  .public-logo { width: min(560px, 96%); max-height: 220px; }
  .public-entry-actions { grid-template-columns: 1fr; }
  .public-program { grid-template-columns: 1fr; }
  .public-program > div + div { border-top: 1px solid #c9c9c5; border-left: 0; }
  .entry-sponsors { width: calc(100% - 32px); margin-bottom: 28px; padding: 18px; }
  .exhibitor-gate-main { width: calc(100% - 32px); min-height: auto; padding: 74px 0 42px; }
  .gate-logo { max-height: 150px; }
  .sidebar { inset: auto 0 0; width: 100%; height: 70px; padding: 9px 10px; border-top: 1px solid var(--line); }
  .brand, .sidebar-footer { display: none; }
  .primary-nav { display: flex; gap: 3px; }
  .nav-item { min-height: 52px; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 3px; padding: 4px; font-size: 9px; }
  .nav-item svg { width: 18px; height: 18px; }
  .main-content { margin-left: 0; padding: 0 18px 100px; }
  .topbar { display: grid; min-height: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; margin-bottom: 14px; padding-block: 8px; }
  .topbar-heading { display: contents; }
  .topbar-logo { grid-row: 1; grid-column: 1 / -1; width: 190px; max-height: 58px; justify-self: center; object-position: center; }
  .topbar-title { grid-row: 2; grid-column: 1; min-width: 0; align-self: center; }
  .topbar-actions { grid-row: 2; grid-column: 2; width: auto; flex-wrap: nowrap; padding: 0; }
  .topbar h1 { font-size: 22px; }
  .sync-button span { display: none; }
  .sync-button { width: 44px; padding: 0; }
  .welcome-card { min-height: 0; align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px 20px 24px; }
  .welcome-actions { margin-top: 0; }
  .loading-overlay img { animation: loading-logo-pulse 720ms ease-in-out infinite alternate; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 24px; }
  .choice-grid, .form-grid, .dialog-actions { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-panel { padding: 22px 18px; }
  .register-operations { grid-template-columns: 1fr; padding: 18px; }
  .register-operations-actions { grid-template-columns: 1fr 1fr; }
  .register-operations > .camera-output-host { grid-column: auto; }
  .management-form, .management-item-fields, .code-form { grid-template-columns: 1fr; }
  .management-form, .management-list { padding-inline: 18px; }
  .management-status { margin-inline: 18px; }
  .generated-code { grid-template-columns: 1fr; margin-inline: 18px; }
  .checkin-layout { min-height: auto; grid-template-columns: 1fr; padding-top: 28px; }
  .checkin-card { padding: 24px 18px; }
  .checkin-heading-row { align-items: stretch; flex-direction: column; }
  .checkin-heading-row .button { width: 100%; }
  .checkin-camera-actions { grid-template-columns: 1fr; }
  .checkin-camera-frame { max-height: 54vh; }
  .directory-tools { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .table-wrap { overflow-x: hidden; }
  .table-wrap table { table-layout: fixed; }
  .table-wrap th, .table-wrap td { padding-inline: 8px; }
  .table-wrap th:nth-child(1), .table-wrap td:nth-child(1) { width: 34%; }
  .table-wrap th:nth-child(3), .table-wrap td:nth-child(3) { width: 22%; }
  .table-wrap th:nth-child(4), .table-wrap td:nth-child(4) { width: 18%; }
  .table-wrap th:nth-child(5), .table-wrap td:nth-child(5) { width: 26%; }
  .visitor-cell, .visitor-cell > div { min-width: 0; }
  .visitor-cell { gap: 7px; }
  .visitor-cell strong, .visitor-cell small, .arrival-status { overflow-wrap: anywhere; white-space: normal; }
  .visitor-row-actions { align-items: stretch; flex-direction: column; }
  .visitor-row-actions .button { width: 100%; min-width: 0; padding: 7px 5px; white-space: normal; line-height: 1.2; }
  .attendees-intro { align-items: flex-start; }
  .sponsors-panel { gap: 14px; padding: 18px; }
  .sponsors-copy { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sponsors-copy > p { max-width: none; margin-left: 0; padding: 0; text-align: left; }
  .sponsor-viewport { min-height: 235px; }
  .sponsor-list { padding-block: 18px; }
  .sponsor-track-set { gap: 16px; padding-right: 16px; }
  .sponsor-card img { width: 520px; }
  .sponsor-card.official-sponsor-top { width: 520px; height: 191px; }
  .sponsor-card.official-sponsor-supported { width: 520px; height: 73px; }
  .sponsor-card.official-sponsor-supported img { top: -328px; }
  .sponsor-card.official-sponsor-categories { width: 520px; height: 126px; }
  .sponsor-card.official-sponsor-categories img { top: -394px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 43vh; padding: 38px 28px; border-right: 0; border-bottom: 8px solid #eadbd6; }
  .login-logo { width: min(705px, 100%); max-height: 270px; }
  .login-brand-panel h1 { max-width: 580px; font-size: clamp(42px, 10vw, 70px); }
  .login-program { grid-template-columns: 1fr; }
  .login-program > div + div { border-top: 1px solid #c9c9c5; border-left: 0; }
  .login-form-panel { min-height: 57vh; padding: 42px 24px 60px; }
  .user-copy { display: none; }
  .user-menu { grid-template-columns: 42px auto; padding-left: 8px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
}

@media (max-width: 500px) {
  .access-dialog-content { padding: 24px 18px; }
  .public-copy h1 { font-size: clamp(38px, 13vw, 58px); }
  .entry-action { min-height: 82px; }
  .entry-action span { font-size: 25px; }
  .exhibitor-gate-card { padding: 24px 20px; }
  .topbar { gap: 4px 8px; padding-block: 7px; }
  .topbar-logo { width: 175px; max-height: 54px; }
  .topbar h1 { font-size: 19px; }
  .topbar-actions .avatar { display: none; }
  .welcome-actions { width: 100%; flex-direction: column; }
  .welcome-actions .button { width: 100%; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 76px; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .directory-tools { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .table-wrap th:nth-child(1), .table-wrap td:nth-child(1) { width: 42%; }
  .table-wrap th:nth-child(4), .table-wrap td:nth-child(4) { width: 22%; }
  .table-wrap th:nth-child(5), .table-wrap td:nth-child(5) { width: 36%; }
  .register-operations-actions { grid-template-columns: 1fr; }
  .sync-strip { grid-template-columns: 34px 1fr; }
  .sync-strip .status-pill { grid-column: 2; justify-self: start; }
  .topbar-actions { gap: 6px; }
  .user-menu { grid-template-columns: auto; border-left: 0; }
  .logout-button { padding: 7px; }
  .success-dialog { padding-inline: 24px; }
  .success-dialog .dialog-actions { grid-template-columns: 1fr; }
  .sponsors-panel { padding: 15px; }
  .sponsors-copy h3 { font-size: 26px; }
  .sponsor-viewport { min-height: 198px; }
  .sponsor-list { padding-block: 16px; }
  .sponsor-card img { width: 420px; }
  .sponsor-card.official-sponsor-top { width: 420px; height: 154px; }
  .sponsor-card.official-sponsor-supported { width: 420px; height: 59px; }
  .sponsor-card.official-sponsor-supported img { top: -265px; }
  .sponsor-card.official-sponsor-categories { width: 420px; height: 102px; }
  .sponsor-card.official-sponsor-categories img { top: -319px; }
}

@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .sponsor-viewport { overflow-x: auto; }
  .sponsor-list { transform: none !important; }
  .sponsor-track-set[aria-hidden="true"] { display: none; }
}
