:root {
  --bg: #f5f8f8;
  --panel: #fff;
  --ink: #143c47;
  --muted: #59727a;
  --line: #d9e4e6;
  --teal: #007e82;
  --soft: #e7f3f1;
  --blue: #003b72;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
}
button:hover {
  border-color: var(--teal);
  background: var(--soft);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--teal);
}
:focus-visible {
  outline: 3px solid #edb341;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: auto;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 24px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.brand img {
  width: 130px;
  height: 54px;
  object-fit: contain;
}
.logo-reverse {
  display: none;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header nav button {
  font-size: 12px;
}
.admin-link {
  font-size: 12px;
  margin-left: 12px;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  padding: 100px 0 80px;
  align-items: center;
  min-height: 620px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--teal);
}
h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 670px;
  margin: 24px 0;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h3 {
  line-height: 1.35;
}
.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 550px;
  font-size: 17px;
}
.hero-art img {
  width: 100%;
  display: block;
}
.hero-art p {
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-top: 25px;
}
.search-form {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--panel);
  border: 2px solid var(--teal);
  border-radius: 12px;
  box-shadow: 0 8px 24px #003b7210;
  margin-top: 30px;
}
.search-form input {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  padding: 10px;
  font-size: 16px;
}
.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  font-weight: 600;
}
.primary:hover {
  background: var(--blue);
  color: #fff;
}
.search-form .primary {
  white-space: nowrap;
}
.popular {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
  align-items: center;
  font-size: 12px;
}
.popular button {
  font-size: 12px;
  border-radius: 20px;
  padding: 5px 10px;
}
.filter-line {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 13px;
}
.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
}
.search-summary {
  padding: 28px 0;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.search-summary p {
  margin: 4px 0;
}
.search-summary strong {
  font-size: 20px;
}
.results-section {
  padding: 28px 0 90px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading p,
.subtle {
  color: var(--muted);
  font-size: 13px;
}
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.supplier-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
}
.supplier-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.supplier-head h3 {
  font-size: 19px;
  margin: 0 0 6px;
}
.metadata {
  color: var(--muted);
  font-size: 13px;
}
.match-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: block;
  color: var(--teal);
  margin-bottom: 16px;
}
.featured {
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
  font-size: 11px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.chip {
  font-size: 11px;
  background: var(--soft);
  padding: 3px 8px;
  border-radius: 5px;
}
.brief {
  font-size: 13px;
  margin: 6px 0;
}
.confirm {
  color: var(--muted);
}
.supplier-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.supplier-actions .primary {
  margin-left: auto;
  font-size: 12px;
  padding: 9px 12px;
}
.card-details {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13px;
}
.card-details details {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
blockquote {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 2px solid var(--teal);
  color: var(--muted);
}
.interpretation,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.empty-state {
  grid-column: 1/-1;
}
.show-more {
  display: block;
  margin: 28px auto 0;
}
.status-message {
  font-size: 14px;
}
.error {
  color: #b84238;
}
.sheet {
  border: 0;
  border-radius: 18px;
  padding: 28px;
  background: var(--panel);
  color: var(--ink);
  width: min(640px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 20px 90px #102d4430;
}
.sheet::backdrop {
  background: #10232c70;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sheet-header h2 {
  margin: 0 0 15px;
}
.sheet-header button {
  padding: 5px 12px;
  font-size: 22px;
}
.sheet-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.sheet details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-option {
  font-size: 12px;
  padding: 7px 10px;
}
.filter-option[aria-pressed="true"] {
  background: var(--teal);
  color: white;
}
.plan-sheet {
  margin: 0 0 0 auto;
  min-height: 100dvh;
  max-height: 100dvh;
  border-radius: 16px 0 0 16px;
  width: min(540px, 95vw);
}
.plan-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.plan-item h3 {
  font-size: 16px;
  margin: 0;
}
.plan-item p {
  font-size: 13px;
  margin: 4px 0;
}
.plan-item button {
  align-self: start;
}
#email-form {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
#email-form input[type="email"] {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  margin: 8px 0 16px;
}
#email-form label {
  font-size: 13px;
  display: block;
  margin-bottom: 12px;
}
.visit-tray {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  gap: 35px;
  align-items: center;
  box-shadow: 0 5px 30px #003b7230;
  z-index: 5;
}
.visit-tray p {
  margin: 0;
  font-size: 14px;
}
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--panel);
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 10;
  max-width: 95vw;
  display: flex;
  gap: 20px;
  align-items: center;
}
.toast button {
  padding: 4px 8px;
}
footer {
  max-width: 1200px;
  margin: auto;
  padding: 25px 24px 100px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
#mode-notice {
  font-size: 12px;
  padding: 10px;
  background: var(--soft);
  margin-top: 15px;
}
.print-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.print-brand img {
  max-width: 140px;
  max-height: 60px;
}
.visit-document article {
  padding: 15px 0;
  border-top: 1px solid #d9e4e6;
  break-inside: avoid;
}
.visit-document h2 {
  font-size: 16px;
}
.visit-document p {
  font-size: 12px;
}
.visit-document footer {
  padding: 15px 0;
}
.logo-color {
  display: block;
}
[data-theme="dark"] {
  --bg: #111e25;
  --panel: #192b34;
  --ink: #e5f0f1;
  --muted: #a1b9bf;
  --line: #324851;
  --teal: #58c4c1;
  --soft: #233e46;
  color-scheme: dark;
}
[data-theme="dark"] .logo-color {
  display: none;
}
[data-theme="dark"] .logo-reverse {
  display: block;
}
[data-theme="dark"] .primary {
  background: #007e82;
  color: white;
}
[data-theme="dark"] .hero-art {
  padding: 12px;
  background: white;
  border-radius: 8px;
}
[data-theme="dark"] .hero-art p {
  color: #59727a;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric strong {
  display: block;
  font-size: 32px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 25px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
input,
select,
textarea {
  color: var(--ink);
  background: var(--panel);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
body:not([data-motion="off"]):not([data-entered="true"]) .hero-copy {
  animation: enter 0.45s 0.1s both;
}
body:not([data-motion="off"]):not([data-entered="true"]) .hero-art {
  animation: enter 0.45s 0.15s both;
}
body:not([data-motion="off"]) .supplier-card.reveal {
  animation: enter 0.25s both;
  animation-delay: calc(min(var(--i), 5) * 40ms);
}
body:not([data-motion="off"]) .card-details,
body:not([data-motion="off"]) dialog[open] {
  animation: enter 0.2s both;
}
.supplier-card.removing {
  opacity: 0;
  transition: opacity 0.2s;
}
.search-summary {
  animation: enter 0.45s both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[data-motion="off"] *,
[data-motion="off"] *::before {
  animation: none !important;
  transition: none !important;
}
@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
    height: 78px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 94px;
    height: 40px;
  }
  .brand span {
    display: none;
  }
  .site-header nav {
    gap: 5px;
  }
  .site-header nav button {
    padding: 7px;
    font-size: 10px;
  }
  .admin-link {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0;
    gap: 35px;
    min-height: 0;
  }
  h1 {
    font-size: 40px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }
  .hero-art {
    display: none;
  }
  .search-form {
    margin-top: 24px;
    flex-wrap: wrap;
  }
  .search-form input {
    padding: 12px 8px;
  }
  .search-form button {
    width: 100%;
  }
  .popular {
    gap: 6px;
  }
  .results {
    grid-template-columns: 1fr;
  }
  .supplier-card {
    padding: 20px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading button {
    max-width: 120px;
  }
  .search-summary {
    padding: 24px 0;
  }
  .search-summary strong {
    font-size: 18px;
  }
  .visit-tray {
    width: calc(100% - 32px);
    justify-content: space-between;
    gap: 15px;
    bottom: 12px;
  }
  .plan-sheet {
    margin: auto 0 0;
    min-height: 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }
  .sheet {
    padding: 22px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .supplier-actions {
    gap: 10px;
  }
  footer {
    gap: 15px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  body {
    background: white !important;
    color: #173842 !important;
  }
  body > *:not(#print-sheet) {
    display: none !important;
  }
  #print-sheet {
    display: block !important;
  }
  .visit-document {
    font-family: Arial, sans-serif;
  }
  .visit-document a {
    color: #173842;
    text-decoration: none;
  }
  .visit-document header {
    margin-bottom: 20px;
  }
  .visit-document footer {
    display: block;
    border-top: 1px solid #aaa;
  }
  .visit-document article {
    break-inside: avoid;
  }
  .visit-document img {
    max-width: 145px;
  }
  .visit-document h1 {
    font-size: 24px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--teal);
}
#summary-text {
  font-size: 20px;
  font-weight: 600;
}

.admin-main {
  padding-top: 32px;
}
.admin-title {
  font-size: 38px;
}
.login-panel {
  max-width: 420px;
}
.full-width {
  width: 100%;
}
.test-output {
  white-space: normal;
  overflow-wrap: anywhere;
}
.admin-tabs [aria-selected="true"] {
  background: var(--teal);
  color: white;
}
.demo-privacy {
  max-width: 1100px;
  margin: 20px auto 110px;
  padding: 0 20px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  #filters-dialog {
    margin: auto 0 0;
    width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }
  .admin-tabs {
    overflow: auto;
  }
  .visit-document .print-brand {
    gap: 10px;
  }
}
@media print {
  .visit-document h3 {
    font-size: 12px;
    margin: 8px 0 3px;
  }
  .visit-document ul {
    margin: 0 0 6px;
    padding-left: 18px;
    font-size: 11px;
  }
  .visit-document h2 {
    margin: 4px 0;
  }
  .visit-document article > p {
    margin: 4px 0;
  }
  .print-brand img {
    max-height: 65px;
    width: auto;
  }
}

/* V2.1: Pavilion identity, local discovery and visit planning. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
button {
  min-height: 44px;
  transition:
    background-color 0.2s ease-out,
    border-color 0.2s ease-out,
    transform 0.2s ease-out;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.site-header {
  height: auto;
  min-height: 94px;
  gap: 18px;
}
.brand {
  gap: 16px;
}
.brand > span {
  font-size: 15px;
  line-height: 1.4;
}
.brand small {
  margin-top: 3px;
  font-size: 12px;
}
#motion-toggle {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  padding: 84px 0 64px;
  min-height: 630px;
}
.hero-copy {
  z-index: 2;
  max-width: 650px;
}
.hero h1 {
  font-size: clamp(42px, 5.3vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero .intro {
  font-size: 19px;
  line-height: 1.65;
}
.electronics-art {
  height: 470px;
  position: relative;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background: radial-gradient(ellipse at 60% 45%, #b6d8d533, transparent 68%);
}
[data-theme="dark"] .electronics-art {
  background: radial-gradient(ellipse, #a1d9d920, transparent 65%);
  padding: 0;
}
.electronics-art .component {
  position: absolute;
  width: 55%;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 12px 14px #1b3e4710);
  animation: component-drift 26s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.electronics-art[data-running="true"] .component {
  animation-play-state: running;
}
.component-1 {
  top: 10%;
  left: 12%;
  --angle: -16deg;
  transform: rotate(-16deg);
  z-index: 3;
}
.electronics-art .component-2 {
  top: 48%;
  left: 42%;
  width: 59%;
  --angle: 14deg;
  opacity: 0.85;
  animation-duration: 29s;
}
.electronics-art .component-3 {
  top: 61%;
  left: -8%;
  width: 39%;
  --angle: -12deg;
  opacity: 0.55;
  animation-duration: 24s;
}
.electronics-art .component-4 {
  top: 4%;
  left: 68%;
  width: 36%;
  --angle: 12deg;
  opacity: 0.55;
  animation-duration: 30s;
}
.electronics-art .component-5 {
  top: 32%;
  left: 66%;
  width: 36%;
  --angle: 24deg;
  animation-duration: 27s;
}
.electronics-art .component-6 {
  top: 5%;
  left: 1%;
  width: 26%;
  --angle: -12deg;
  opacity: 0.45;
  animation-duration: 22s;
}
.electronics-art .component-7 {
  top: 47%;
  left: 8%;
  width: 34%;
  --angle: 8deg;
  animation-duration: 25s;
}
.electronics-art .component-8 {
  top: 73%;
  left: 64%;
  width: 24%;
  --angle: -9deg;
  opacity: 0.35;
  animation-duration: 28s;
}
.electronics-art.simplified .component:nth-child(n + 5) {
  display: none;
}
@keyframes component-drift {
  from {
    transform: translate(0, 0) rotate(var(--angle, 0deg));
  }
  to {
    transform: translate(7px, -12px) rotate(calc(var(--angle, 0deg) + 5deg));
  }
}
#search-form {
  position: relative;
}
.autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 14px 38px #003b7220;
  max-height: min(320px, 38dvh);
  overflow: auto;
  overscroll-behavior: contain;
  z-index: 12;
}
.autocomplete li {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
}
.autocomplete li:hover,
.autocomplete [aria-selected="true"] {
  background: var(--soft);
  color: var(--teal);
}
.pavilion-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}
.pavilion-intro h2 {
  font-size: 28px;
}
.pavilion-intro p {
  color: var(--muted);
  max-width: 560px;
}
.ecosystem-links {
  display: grid;
  gap: 10px;
}
.ecosystem-links button {
  text-align: left;
  padding: 16px 22px;
  font-weight: 600;
}
.ecosystem-links span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
body[data-state="results"] #pavilion-intro {
  display: none;
}
.booth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.booth-badge {
  display: flex;
  align-items: stretch;
  border: 1px solid #a4c9c8;
  border-radius: 7px;
  overflow: hidden;
  line-height: 1.4;
}
.booth-badge strong {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  padding: 8px 11px;
  font-weight: 600;
}
.booth-badge span {
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  padding: 8px 11px;
  font-weight: 600;
}
.supplier-card {
  transition:
    border-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
  overflow-wrap: anywhere;
}
.supplier-card:hover {
  border-color: #91bdbb;
  box-shadow: 0 7px 22px #143c4708;
}
.route-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}
.plan-item .booth-badge {
  margin: 0;
}
.stop-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stop-controls button {
  min-width: 44px;
  font-size: 12px;
  padding: 8px;
  align-self: stretch;
}
.skeleton-card {
  height: 235px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(
    100deg,
    var(--soft) 30%,
    var(--panel) 50%,
    var(--soft) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.tour-dialog {
  position: fixed;
  inset: auto 24px 24px auto;
  margin: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 15px 60px #12313c24;
  background: var(--panel);
  color: var(--ink);
}
.tour-dialog::backdrop {
  background: #17384225;
}
.tour-dialog h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 18px 0 10px;
}
.tour-dialog p {
  font-size: 15px;
}
.tour-top,
.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tour-top span {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.tour-top button {
  border: 0;
  font-size: 12px;
}
.tour-actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.tour-highlight {
  outline: 3px solid #007e82;
  outline-offset: 6px;
}
.tour-dialog[data-direction="back"][open] {
  animation: step-back 0.22s ease-out;
}
@keyframes step-back {
  from {
    opacity: 0.4;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
body:not([data-motion="off"]) .search-summary {
  animation: enter 0.24s ease-out;
}
.sheet {
  max-height: 90dvh;
  overscroll-behavior: contain;
}
.toast {
  width: max-content;
  max-width: min(600px, calc(100vw - 32px));
  font-size: 14px;
}
#plan-dialog .sheet-footer {
  flex-wrap: wrap;
}
.print-location {
  font-weight: bold;
  font-size: 15px !important;
}
@media (max-width: 1000px) {
  .site-header {
    padding: 16px 24px;
    flex-wrap: wrap;
  }
  .brand img {
    width: 90px;
  }
  .hero {
    gap: 0;
  }
  .electronics-art {
    height: 390px;
  }
  .hero .search-form {
    flex-wrap: wrap;
  }
  .hero .search-form .primary {
    width: 100%;
  }
  .pavilion-intro {
    gap: 30px;
  }
  .site-header nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  main {
    padding: 0 20px;
  }
  .site-header {
    padding: 12px 20px;
    gap: 10px;
    min-height: 0;
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    width: 72px;
    height: 35px;
  }
  .brand > span {
    font-size: 13px;
  }
  .brand small {
    font-size: 10px;
  }
  .site-header nav {
    gap: 4px;
    width: 100%;
    justify-content: space-between;
  }
  .site-header nav button {
    padding: 7px 9px;
    font-size: 11px;
    min-height: 42px;
  }
  .admin-link {
    margin: 0;
    padding: 10px 2px;
  }
  .hero {
    display: block;
    padding: 38px 0 24px;
    min-height: 0;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .hero h1 {
    font-size: 48px;
    margin: 16px 0 20px;
    max-width: 100%;
  }
  .hero .intro {
    font-size: 16px;
  }
  .electronics-art {
    height: 180px;
    margin: 6px 0 0;
  }
  .electronics-art .component {
    width: 32%;
  }
  .electronics-art .component-1 {
    left: 1%;
    top: 5%;
    width: 39%;
  }
  .electronics-art .component-2 {
    left: 34%;
    top: 5%;
    width: 37%;
  }
  .electronics-art .component-3 {
    left: 70%;
    top: 0;
    width: 31%;
  }
  .electronics-art .component-4 {
    display: none;
  }
  .electronics-art .component-5 {
    left: 67%;
    top: 38%;
    width: 29%;
  }
  .electronics-art .component:nth-child(n + 6) {
    display: none;
  }
  .search-form {
    margin-top: 24px;
  }
  .search-form .primary {
    width: 100%;
  }
  .search-form input {
    padding: 8px;
    font-size: 16px;
  }
  .popular button {
    min-height: 44px;
    padding: 7px 10px;
  }
  .filter-line {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pavilion-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 40px;
  }
  .pavilion-intro h2 {
    font-size: 26px;
  }
  .supplier-card {
    padding: 20px;
  }
  .supplier-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .supplier-actions > .primary {
    width: 100%;
  }
  .booth-badge strong,
  .booth-badge span {
    padding: 8px;
    font-size: 14px;
  }
  .plan-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .stop-controls {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stop-controls button {
    min-width: 48px;
  }
  .sheet {
    padding: 20px;
    max-height: calc(100dvh - 32px);
    width: calc(100% - 24px);
  }
  .sheet-header {
    gap: 12px;
  }
  .sheet-header h2 {
    font-size: 24px;
  }
  .route-toolbar button {
    flex: 1 1 auto;
  }
  .tour-dialog {
    inset: auto 16px max(16px, env(safe-area-inset-bottom)) 16px;
    width: auto;
    padding: 20px;
    max-height: 65dvh;
  }
  .tour-dialog h2 {
    font-size: 22px;
  }
  .tour-dialog p {
    font-size: 14px;
  }
  .visit-tray {
    width: calc(100% - 32px);
    gap: 12px;
    justify-content: space-between;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 10px 12px;
  }
  .visit-tray strong {
    font-size: 13px;
  }
  .visit-tray span {
    font-size: 12px;
  }
  .toast {
    bottom: 90px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-summary {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 390px) {
  .hero h1 {
    font-size: 43px;
  }
  .brand > span {
    font-size: 12px;
  }
  .site-header nav button {
    font-size: 10px;
    padding: 7px;
  }
  .brand img {
    width: 62px;
  }
  .sheet {
    padding: 16px;
  }
  .booth-badges {
    gap: 6px;
  }
}
body[data-motion="off"] *,
body[data-motion="off"] *::before,
body[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .electronics-art .component {
    animation: none;
  }
}
@media print {
  .tour-dialog,
  .electronics-art,
  .pavilion-intro {
    display: none !important;
  }
  .print-location {
    font-size: 14px !important;
  }
}

.autocomplete.above {
  top: auto;
  bottom: 100%;
  margin: 0 0 6px;
}
footer #motion-toggle {
  display: inline-block;
  font-size: 12px;
}

/* V2.2: Search → Match → Refine → Save → Visit */
.workflow-links {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workflow-links button {
  text-align: left;
  min-height: 105px;
}
.workflow-links strong {
  display: block;
  font-size: 18px;
}
.pavilion-intro {
  display: block;
}
.workflow-links span {
  line-height: 1.5;
}
body[data-state="results"] #pavilion-intro,
body[data-state="results"] .hero-art,
body[data-state="results"] .hero .eyebrow,
body[data-state="results"] .hero h1,
body[data-state="results"] .hero .intro,
body[data-state="results"] .hero .popular,
body[data-state="results"] .hero .small {
  display: none;
}
body[data-state="results"] .hero {
  min-height: 0;
  padding: 24px 0 8px;
  display: block;
  background: none;
  border: 0;
  box-shadow: none;
}
body[data-state="results"] .hero-copy {
  max-width: none;
  width: 100%;
  padding: 0;
}
body[data-state="results"] #search-form {
  max-width: none;
  margin: 0;
}
.search-summary {
  margin: 8px 0 22px;
  padding: 12px 0;
  background: none;
  border: 0;
  align-items: flex-start;
}
.intent-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.intent-chip {
  font-size: 13px;
  padding: 8px 12px;
  min-height: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.search-summary .eyebrow {
  margin-bottom: 8px;
}
.result-tools {
  display: flex;
  gap: 16px;
  align-items: center;
}
.result-tools label {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
}
.result-tools select {
  width: auto;
  min-height: 44px;
  padding: 8px 28px 8px 12px;
  border-radius: 8px;
}
.result-tools button {
  min-height: 44px;
}
.decision-card {
  padding: 25px 28px;
}
.supplier-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.supplier-head h3 {
  font-size: 21px;
  line-height: 1.35;
  max-width: 80%;
  margin: 0;
}
.supplier-head a {
  color: inherit;
  text-decoration: none;
}
.supplier-head a:hover {
  text-decoration: underline;
}
.external-mark {
  color: var(--muted);
  font-size: 14px;
}
.score-ring {
  --score: 0;
  position: relative;
  isolation: isolate;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(#008a87 calc(var(--score) * 1%), #dcebea 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.score-ring:before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--panel);
  z-index: -1;
}
.score-ring strong {
  font-size: 24px;
  line-height: 1.1;
}
.score-ring span {
  font-size: 9px;
}
.score-ring small {
  font-size: 8px;
  letter-spacing: 0.08em;
}
.score-ring:focus-visible {
  outline: 3px solid #008a87;
  outline-offset: 3px;
}
.location-link {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal, #007f80);
  border: 0;
  background: transparent;
  padding: 7px 0;
  min-height: 36px;
  text-align: left;
  line-height: 1.5;
}
.location-link:hover {
  text-decoration: underline;
}
.card-categories {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 16px;
  line-height: 1.6;
}
.capability-title {
  font-size: 15px;
  margin: 0 0 7px;
}
.capability-summary {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.decision-card .confirm {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.supplier-actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.supplier-actions .save-button {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  min-height: 44px;
  color: var(--ink);
  border-radius: 8px;
}
.save-button[aria-pressed="true"] {
  color: #007b73;
  background: #e8f4f0;
}
.feedback-menu {
  position: relative;
  font-size: 12px;
}
.feedback-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.feedback-menu[open] > button {
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 3;
  width: 155px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 5px 20px #1233;
}
.card-details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}
.card-details h4 {
  margin: 0 0 10px;
}
#guided-options fieldset {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
  margin: 20px 0;
}
#guided-options legend {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.refine-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 0;
  min-height: 40px;
}
.refine-choice input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.filter-options .refine-choice {
  max-width: 100%;
}
@media (min-width: 900px) {
  #filters-dialog {
    margin: 0 0 0 auto;
    border-radius: 18px 0 0 18px;
    height: 100dvh;
    max-height: 100dvh;
    width: 430px;
  }
}
@media (max-width: 760px) {
  .workflow-links {
    grid-template-columns: 1fr;
  }
  .workflow-links button {
    min-height: 80px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .result-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .result-tools select {
    max-width: 175px;
  }
  .decision-card {
    padding: 20px;
  }
  .supplier-head h3 {
    font-size: 18px;
    max-width: calc(100% - 85px);
  }
  .score-ring {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
  }
  .score-ring strong {
    font-size: 23px;
  }
  .search-summary {
    gap: 12px;
  }
  .search-summary > div {
    min-width: 0;
  }
  body[data-state="results"] .hero {
    padding-top: 16px;
  }
  .decision-card .location-link {
    font-size: 12px;
  }
  .supplier-actions {
    gap: 12px;
  }
  .intent-chip {
    max-width: 100%;
    text-align: left;
  }
  .hero h1 {
    font-size: 42px;
  }
}

.result-tools select,
#guided-options select {
  font: inherit;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* V2.3: persistent categories, paged results and portable visit plans. */
.discovery-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
main:has(.discovery-layout) {
  max-width: 1480px;
}
.discovery-content {
  min-width: 0;
}
.category-sidebar {
  position: sticky;
  top: 20px;
  margin-top: 34px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px;
  scrollbar-width: thin;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidebar-heading h2 {
  font-size: 18px;
  margin: 0;
}
.category-group {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.category-group summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 28px;
}
.category-choices {
  display: grid;
  gap: 10px;
  margin: 10px 0 3px;
  max-height: 260px;
  overflow: auto;
}
.category-choices .refine-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.refine-choice input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}
.category-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.category-actions button {
  font-size: 12px;
  padding: 10px 12px;
}
#sidebar-refine {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
}
#sidebar-refine h3 {
  font-size: 16px;
}
#sidebar-refine fieldset {
  padding: 0;
  border: 0;
  margin: 0 0 16px;
}
#sidebar-refine legend {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}
#sidebar-refine .filter-options {
  max-height: 180px;
  overflow: auto;
  display: grid;
  gap: 9px;
}
#sidebar-refine .refine-choice {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0;
}
#sidebar-refine select {
  width: 100%;
  font-size: 12px;
  margin: 8px 0 16px;
}
.mobile-categories {
  display: none;
}
#edit-filters {
  display: none;
}
.discovery-content .hero {
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  min-height: 580px;
  padding: 50px 0 40px;
}
.discovery-content .hero h1 {
  font-size: clamp(38px, 4.1vw, 62px);
}
.discovery-content .hero .intro {
  font-size: 16px;
}
.discovery-content .hero .search-form {
  flex-wrap: wrap;
}
.discovery-content .hero .search-form input {
  min-width: 100px;
  flex: 1 1 190px;
}
.discovery-content .hero .search-form button {
  flex: 1 1 auto;
}
.discovery-content .electronics-art {
  height: 420px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 28px 0 44px;
}
.pagination button {
  min-width: 40px;
  min-height: 42px;
  padding: 9px 12px;
}
.pagination [aria-current="page"] {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  opacity: 1;
}
#results-section {
  scroll-margin-top: 24px;
}
.supplier-card {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.supplier-card.card-waiting {
  opacity: 0;
  transform: translateY(10px);
}
.supplier-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}
.score-ring:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9fff5;
  top: 1px;
  left: calc(50% - 2.5px);
  transform-origin: 2.5px 37px;
  transform: rotate(calc(var(--score) * 3.6deg));
  box-shadow: 0 0 5px #008a87;
}
.share-output {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
#share-qr {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 10px;
}
#share-link {
  width: 100%;
  font-size: 12px;
}
#share-result {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.shared-page main {
  max-width: 900px;
  padding-top: 45px;
  padding-bottom: 40px;
}
.shared-page h1 {
  font-size: 44px;
}
#shared-document .visit-document {
  margin-top: 28px;
}
#shared-document .print-supplier {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 16px 0;
  background: var(--panel);
}
#shared-document .print-brand {
  display: none;
}
#shared-document h1 {
  font-size: 24px;
}
#shared-document h2 {
  font-size: 22px;
}
#shared-document h3 {
  font-size: 14px;
  margin-top: 20px;
}
#shared-document a {
  overflow-wrap: anywhere;
}
.electronics-art .component {
  animation-name: component-float;
  animation-duration: 7s;
  animation-delay: calc(var(--index, 0) * -0.8s);
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 0.7s ease;
  filter: drop-shadow(0 16px 12px #173f4929);
}
.electronics-art .component-1 {
  top: 14%;
  left: 3%;
  width: 65%;
  --index: 0;
  opacity: 1;
}
.electronics-art .component-2 {
  top: 49%;
  left: 32%;
  width: 64%;
  --index: 1;
  opacity: 1;
  animation-duration: 8s;
  --dx: -13px;
  --dy: -26px;
}
.electronics-art .component-3 {
  top: 66%;
  left: 0;
  width: 33%;
  --index: 2;
  opacity: 0.8;
  animation-duration: 6.5s;
}
.electronics-art .component-4 {
  top: 2%;
  left: 62%;
  width: 34%;
  --index: 3;
  opacity: 0.8;
  animation-duration: 8.5s;
  --dx: -8px;
}
.electronics-art .component-5 {
  top: 36%;
  left: 68%;
  width: 28%;
  --index: 4;
  opacity: 0.85;
  animation-duration: 7.5s;
}
.electronics-art .component:nth-child(n + 6) {
  display: none;
}
@keyframes component-float {
  from {
    transform: translate(-6px, 10px) rotate(calc(var(--angle, 0deg) - 3deg));
    filter: drop-shadow(0 10px 8px #173f492b);
  }
  to {
    transform: translate(var(--dx, 14px), var(--dy, -22px))
      rotate(calc(var(--angle, 0deg) + 5deg));
    filter: drop-shadow(0 24px 16px #173f491c);
  }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  .discovery-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 24px;
  }
  .discovery-content .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .discovery-content .electronics-art {
    position: absolute;
    right: 0;
    top: 12px;
    width: 190px;
    height: 165px;
    opacity: 0.6;
    z-index: -1;
  }
  .discovery-content .hero h1 {
    font-size: 46px;
    max-width: 450px;
  }
}
@media (max-width: 1000px) {
  .discovery-layout {
    display: block;
  }
  .category-sidebar {
    display: none;
  }
  .mobile-categories {
    display: inline-flex;
    gap: 6px;
    align-items: center;
  }
  #open-categories {
    margin-top: 24px;
  }
  #edit-filters {
    display: inline-flex;
  }
  #filters-dialog {
    width: min(440px, calc(100% - 24px));
  }
  #filter-panel .category-choices {
    max-height: 230px;
  }
  .discovery-content .hero {
    padding: 30px 0;
    min-height: 0;
  }
  .discovery-content .electronics-art {
    height: 330px;
  }
}
@media (max-width: 760px) {
  .discovery-content .hero {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: stretch;
  }
  .discovery-content .hero h1 {
    font-size: 44px;
  }
  .discovery-content .electronics-art {
    height: 190px;
    width: 100%;
  }
  .electronics-art .component-1 {
    width: 40%;
    left: 0;
    top: 8%;
  }
  .electronics-art .component-2 {
    width: 39%;
    left: 32%;
    top: 20%;
  }
  .electronics-art .component-3 {
    width: 26%;
    left: 72%;
    top: 18%;
  }
  .electronics-art .component:nth-child(n + 4) {
    display: none;
  }
  .share-output {
    grid-template-columns: 1fr;
  }
  .share-output img {
    margin: auto;
  }
  .shared-page h1 {
    font-size: 34px;
  }
  .pagination {
    gap: 5px;
  }
  .pagination button {
    padding: 8px;
    min-width: 36px;
    font-size: 12px;
  }
}
body[data-state="results"] .discovery-content .hero {
  display: block;
  padding: 24px 0 8px;
  min-height: 0;
}
body[data-motion="off"] .card-waiting {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .card-waiting {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .discovery-layout,
  #open-categories,
  #share-result {
    display: none !important;
  }
}

.electronics-art .component {
  animation-name: component-float, component-arrive;
  animation-duration: var(--float-duration, 7s), 0.8s;
  animation-delay: calc(var(--index, 0) * -0.8s), calc(var(--index, 0) * 0.08s);
  animation-iteration-count: infinite, 1;
  animation-direction: alternate, normal;
  animation-fill-mode: none, both;
}
.electronics-art .component-2 {
  --float-duration: 8s;
}
.electronics-art .component-3 {
  --float-duration: 6.5s;
}
.electronics-art .component-4 {
  --float-duration: 8.5s;
}
.electronics-art .component-5 {
  --float-duration: 7.5s;
}
@keyframes component-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* V2.4 — concise matches, industry discovery and shared-kiosk lifecycle. */
:root {
  --accent-strong: #087b79;
  --accent-soft: #e2f3ee;
  --surface-2: #edf2f3;
  --surface: var(--bg);
}
[data-theme="dark"] {
  --accent-strong: #146d69;
  --accent-soft: #194e49;
  --surface-2: #263a43;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
body[data-state="results"] .site-header {
  padding-block: 10px;
}
body[data-state="results"] .brand small {
  display: none;
}
body[data-state="search"] #category-sidebar,
body[data-state="search"] #open-categories {
  display: none;
}
body[data-state="search"] .discovery-layout {
  grid-template-columns: minmax(0, 1fr);
}
body[data-state="search"] .discovery-content {
  width: 100%;
  max-width: 1240px;
  margin: auto;
}
body[data-state="results"] #industry-doors {
  display: none;
}
.doors {
  padding: 4px 0 30px;
}
.doors h2 {
  font-size: 20px;
  margin-bottom: 18px;
}
.door-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.door {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 16px;
  text-align: left;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.door:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}
.door-icon {
  font-size: 24px;
}
.door strong {
  font-size: 14px;
}
.door small {
  font-size: 12px;
  color: var(--muted);
}
.results {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  padding-bottom: 96px;
  align-items: start;
}
.decision-card {
  padding: 20px;
}
.supplier-head {
  flex-direction: column;
  gap: 6px;
}
.supplier-head h3 {
  max-width: 100%;
  font-size: 19px;
}
.card-blurb {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 16px;
}
.location-text {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
  color: var(--teal);
  font-weight: 600;
}
.location-text a {
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
}
.group-heading,
.load-more,
.empty-state {
  grid-column: 1/-1;
}
.group-heading {
  font-size: 22px;
  margin: 20px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.load-more {
  justify-self: center;
  min-width: 220px;
  min-height: 48px;
}
.category-sidebar {
  top: 110px;
  max-height: calc(100dvh - 130px);
}
.category-choices,
#filter-panel .category-choices {
  max-height: none;
  overflow: visible;
}
.category-group:not([open]) .category-choices {
  display: none;
}
.category-choices > label:nth-child(n + 7) {
  display: none;
}
.category-group.show-all .category-choices > label {
  display: flex;
}
.category-group > .text-button {
  font-size: 12px;
  padding: 10px 0;
  min-height: 40px;
}
.category-actions {
  position: relative;
}
.confirmation-chip {
  border-style: dashed;
}
.supplier-card .company-name,
.site-header button,
.pagination button,
.location-text a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body:has(dialog[open]) #visit-tray {
  display: none;
}
#tray-qr {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
}
#tray-qr img {
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 3px;
}
.handoff-countdown,
.handoff-done {
  display: none;
}
body[data-kiosk="on"] {
  font-size: 18px;
}
body[data-kiosk="on"] .results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body[data-kiosk="on"] .card-blurb,
body[data-kiosk="on"] .location-text {
  font-size: 15px;
}
body[data-kiosk="on"] .handoff .handoff-countdown,
body[data-kiosk="on"] .handoff .handoff-done {
  display: block;
}
body[data-kiosk="on"] .plan-sheet:has(.handoff) {
  width: min(900px, calc(100% - 40px));
}
body[data-kiosk="on"] .plan-sheet:has(.handoff) #plan-items,
body[data-kiosk="on"] .plan-sheet:has(.handoff) .route-toolbar,
body[data-kiosk="on"] .plan-sheet:has(.handoff) #clear-list {
  display: none;
}
body[data-kiosk="on"] .handoff .share-output {
  grid-template-columns: 280px minmax(0, 1fr);
}
body[data-kiosk="on"] .handoff #share-qr {
  width: 280px;
  height: 280px;
}
.brand picture {
  display: block;
  width: 130px;
  flex: 0 0 auto;
}
.brand picture .logo-color {
  display: block !important;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .door {
    min-height: 104px;
    padding: 14px;
  }
  .results {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header {
    padding-block: 10px;
  }
  .site-header nav {
    gap: 5px;
  }
  .brand picture {
    width: 76px;
  }
  .visit-tray {
    gap: 8px;
  }
  .visit-tray > strong {
    display: none;
  }
  #tray-qr span {
    font-size: 11px;
  }
  .supplier-actions {
    flex-wrap: nowrap;
  }
  .pagination {
    margin-bottom: 96px;
  }
}
@media print {
  .site-header {
    position: static;
  }
}

.ranking-note {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}

:root {
  --header-h: 115px;
}
.matched-terms {
  font-size: 13px;
  color: var(--muted);
}
.matched-label {
  font-weight: 600;
}
.zones {
  margin: 24px 0;
}
.zone-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.zone {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  text-align: left;
}
.zone[aria-pressed="true"] {
  outline: 2px solid var(--accent);
}
.zone-icon {
  font-size: 26px;
}
body[data-state="search"] #category-sidebar {
  display: none;
}
body[data-state="search"] .layout {
  grid-template-columns: 1fr;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}
#category-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
}
.results-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--surface);
  padding-block: 12px;
}
.results {
  padding-bottom: 96px;
}
body:has(dialog[open]) #visit-tray {
  display: none;
}
@media (max-width: 760px) {
  :root {
    --header-h: 96px;
  }
  .zone-grid {
    grid-template-columns: 1fr 1fr;
  }
  .zone {
    padding: 12px;
    min-width: 0;
  }
}

svg.zone-icon {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--accent);
}
