/* V3.5 conversion refinement: supplied VI and search engine retained. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --type-display: clamp(40px, 5.2vw, 80px);
  --type-h1: 32px;
  --type-h2: 24px;
  --type-h3: 20px;
  --type-body: 16px;
  --type-small: 14px;
  --type-meta: 12px;
}
[hidden] {
  display: none !important;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
.button,
select {
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
input {
  caret-color: var(--teal);
}
a {
  text-underline-offset: 4px;
}
* {
  scrollbar-color: var(--muted) var(--bg);
}
.site-header nav {
  gap: 24px;
}
.site-header .finder-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-weight: 650;
}
#header-utilities {
  display: flex;
  align-items: center;
  gap: 16px;
}
#theme-toggle,
#mobile-menu {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink);
}
#theme-toggle svg,
#mobile-menu svg,
#tour-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#mobile-menu {
  display: none;
}
#nav-count {
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}
.discovery-content .hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  min-height: 0;
  padding: 48px 0;
  gap: 48px;
}
.discovery-content .hero h1 {
  font-size: var(--type-display);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0 0 24px;
}
.discovery-content .hero .intro {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 32px;
  color: var(--ink);
}
.discovery-content .hero .search-form input {
  font-size: 16px;
}
#search-help {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin: 8px 0 0;
}
.quick-search {
  gap: 4px 12px;
  margin-top: 12px;
}
.quick-search button {
  min-height: 36px;
  padding: 4px 0;
  font-size: 13px;
}
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.trust-bar span {
  white-space: nowrap;
}
.trust-bar strong {
  font-weight: 600;
}
.hero-visual {
  align-self: end;
}
.hero-visual .hero-art {
  opacity: 0.9;
  transition: opacity 200ms;
}
.search-focused .hero-visual .hero-art {
  opacity: 0.45;
}
.hero-visual .visual-topline {
  font-size: 16px;
}
.hero-visual .engine-controls button {
  font-size: 14px;
}
.hero-visual .engine-story {
  padding: 0 12px;
}
.hero-visual .engine-story li {
  font-size: 11px;
  min-height: 44px;
  gap: 4px;
}
.hero-visual .engine-caption {
  padding: 12px 16px;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-visual .engine-caption-copy strong {
  font-size: 16px;
}
.hero-visual .engine-caption-copy span {
  font-size: 13px;
}
.hero-visual #engine-explore {
  background: transparent;
  border: 0;
  color: var(--teal);
  min-height: 44px;
  padding: 8px 0;
  font-size: 13px;
  box-shadow: none;
}
/* Keep this text link transparent in every interaction state. The earlier
   connection-flow button hover rule otherwise paints blue behind blue text. */
.hero-visual #engine-explore:hover,
.hero-visual #engine-explore:active,
.hero-visual #engine-explore:focus-visible {
  background: transparent;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.hero-visual .electronics-art {
  min-height: 0;
}
body[data-state="results"] #search-help,
body[data-state="results"] .trust-bar {
  display: none;
}
body[data-state="results"] .discovery-content .hero {
  padding: 16px 0 8px;
}
.results-toolbar {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  margin: 0 0 8px;
  background: var(--bg);
  border-bottom: 0;
}
#results-heading {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0;
}
#results-subtitle {
  margin-top: 4px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.result-tools {
  margin-left: auto;
  gap: 8px;
}
.result-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
}
#sort-results {
  width: auto;
  max-width: 190px;
}
#search-summary.search-summary {
  margin-bottom: 16px;
}
#search-summary .intent-chip,
#restore-intent {
  min-height: 44px;
}
#clear-all-filters {
  font-size: 14px;
  min-height: 44px;
}
.results,
body[data-kiosk="on"] .results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.supplier-card.decision-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  min-width: 0;
  transition:
    transform 180ms,
    box-shadow 180ms;
}
@media (hover: hover) {
  .supplier-card.decision-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px #142d4e12;
    border-color: var(--line);
  }
}
.supplier-head,
.supplier-head h3 {
  margin: 0;
}
.supplier-card .company-name {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-height: 44px;
  width: 100%;
  overflow-wrap: anywhere;
}
.supplier-card .company-name:hover {
  color: var(--teal);
  text-decoration: underline;
}
.supplier-card .location-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: -4px 0 0;
  color: var(--muted);
}
.match-reasons {
  margin: 0;
}
.match-label {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.match-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.match-chip {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.match-fallback {
  font-size: 13px;
  color: var(--muted);
}
.more-matches,
.more-products {
  background: transparent;
  color: var(--teal);
  border: 0;
  padding: 0 8px;
  font-size: 13px;
  min-width: 44px;
  min-height: 44px;
}
.supplier-card .capability-title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  margin: 0;
}
.supplier-card .capability-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.supplier-card .card-blurb {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.supplier-card .supplier-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 4px;
  border: 0;
}
.supplier-actions .save-button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
}
.details-button {
  font-size: 14px;
  min-height: 44px;
  padding: 8px 0 8px 8px;
  border: 0;
  background: transparent;
  color: var(--teal);
  white-space: nowrap;
}
.save-mobile {
  display: none;
}
.skeleton-card {
  min-height: 360px;
  height: auto;
  border-radius: 12px;
}
.empty-state {
  grid-column: 1/-1;
  padding: 32px 16px;
}
.empty-state button {
  margin: 8px;
}
.sidebar-heading {
  gap: 8px;
  padding: 8px 0 16px;
}
.sidebar-heading h2 {
  margin-right: auto;
}
#reset-filters {
  font-size: 14px;
}
#filter-panel .refine-choice {
  min-height: 44px;
  padding: 8px 0;
}
#apply-filters {
  flex: 1;
}
#filter-panel .category-actions {
  padding: 16px 0 0;
}
#category-status:empty {
  display: none;
}
.supplier-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  width: min(560px, 100%);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
}
.supplier-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-enter 260ms ease-out;
}
.supplier-drawer::backdrop {
  background: #08172f80;
}
.drawer-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-header h2 {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.drawer-header button {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  font-size: 24px;
}
#supplier-detail-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding: 24px;
}
#supplier-detail-body > .location-text {
  margin: 0 0 24px;
}
.detail-section {
  margin-top: 24px;
}
.detail-section h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.detail-section p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.detail-section a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.drawer-footer {
  flex: none;
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.drawer-footer button {
  width: 100%;
}
@keyframes drawer-enter {
  from {
    transform: translateX(24px);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
#plan-dialog {
  width: min(820px, 94vw);
}
#plan-title {
  font-family: inherit;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.route-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.route-toolbar button {
  font-size: 14px;
  min-height: 44px;
  padding: 8px 12px;
}
.route-explanation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
#route-note {
  margin: 0;
  font-size: 13px;
}
#route-info {
  padding: 0;
  min-width: 44px;
  min-height: 44px;
}
#route-detail {
  font-size: 13px;
  margin: 0 0 16px;
}
.plan-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.plan-item h3 {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.plan-item p {
  margin: 0;
  font-size: 13px;
}
.plan-item .plan-location {
  color: var(--ink);
  font-weight: 600;
}
.plan-capability {
  color: var(--muted);
}
.drag-handle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 24px;
  border: 0;
  background: transparent;
  touch-action: none;
  cursor: grab;
  color: var(--muted);
}
.dragging {
  opacity: 0.5;
}
.drop-target {
  background: var(--soft);
}
.stop-controls {
  display: flex;
  gap: 4px;
}
.stop-controls button {
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
}
.plan-sheet .sheet-footer {
  position: sticky;
  bottom: 0;
  padding: 16px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  z-index: 2;
}
.share-output {
  flex-wrap: wrap;
}
#share-qr {
  flex: none;
}
.share-output .category-actions {
  flex-wrap: wrap;
}
#tray-qr {
  display: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  bottom: 88px;
}
#toast-view {
  background: transparent;
  color: inherit;
  font-size: 14px;
  text-decoration: underline;
  border: 1px solid currentColor;
  min-height: 44px;
  white-space: nowrap;
}
#tour-icon {
  width: 48px;
  height: 48px;
  margin: 16px 0;
  color: var(--teal);
}
#tour-text {
  font-size: 18px;
}
@media (max-width: 1023px) {
  .discovery-content .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
  }
  .discovery-content .hero .intro {
    font-size: 18px;
  }
  #category-sidebar {
    display: none;
  }
  .discovery-layout {
    display: block;
  }
  #filters-dialog {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    border-radius: 16px 16px 0 0;
    padding: 24px 24px max(16px, env(safe-area-inset-bottom));
  }
  #filters-dialog #filter-panel {
    max-height: calc(88dvh - 48px);
  }
  #filters-dialog .filter-scroll {
    flex: 1;
  }
  #close-categories {
    display: block;
    width: 44px;
    padding: 0;
    font-size: 24px;
  }
  #edit-filters {
    display: block;
  }
  #open-categories {
    display: none;
  }
  .results-toolbar {
    display: contents;
  }
  .results-toolbar > div:first-child {
    margin: 16px 0 12px;
  }
  .result-tools {
    position: sticky;
    top: var(--header-h);
    z-index: 12;
    background: var(--bg);
    padding: 8px 0;
    margin: 0 0 12px;
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  #reset-search {
    margin-left: auto;
    order: 3;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header .finder-link {
    display: none;
  }
}
@media (max-width: 639px) {
  .site-header,
  body[data-state="results"] .site-header {
    padding: 12px 16px;
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 8px;
    position: sticky;
    top: 0;
  }
  .site-header .brand {
    min-width: 0;
    gap: 8px;
  }
  .site-header .brand picture {
    width: 64px;
    min-width: 64px;
  }
  .brand-lockup .brand-parent {
    display: none;
  }
  .brand-lockup .brand-product {
    font-size: 12px;
    width: 55px;
  }
  .site-header nav {
    display: flex;
    width: auto;
    margin: 0 0 0 auto;
    gap: 4px;
    flex-wrap: nowrap;
    flex: none;
  }
  #open-plan {
    font-size: 12px;
    padding: 8px;
    gap: 4px;
    min-height: 44px;
    white-space: nowrap;
  }
  #nav-count {
    font-size: 12px;
    min-width: 20px;
    width: 20px;
    height: 20px;
  }
  #mobile-menu {
    display: inline-flex;
  }
  #header-utilities {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    padding: 8px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px #142d4e18;
  }
  .menu-open #header-utilities {
    display: flex;
  }
  #header-utilities #tour-open,
  #header-utilities #theme-toggle {
    display: inline-flex;
  }
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .discovery-content .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 32px;
    gap: 32px;
  }
  .discovery-content .hero h1 {
    font-size: clamp(40px, 11vw, 56px);
    margin: 0 0 16px;
    line-height: 1.06;
  }
  .discovery-content .hero .intro {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px;
  }
  .search-label {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .discovery-content .hero .search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px;
  }
  .discovery-content .hero .search-form input {
    width: 0;
    flex: 1;
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
    padding: 8px 0;
  }
  .discovery-content .hero .search-form button {
    width: auto;
    flex: none;
    min-height: 48px;
    padding: 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .discovery-content .hero .search-form button::after {
    display: none;
  }
  .search-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
  }
  #search-help {
    font-size: 13px;
    margin-top: 8px;
  }
  .quick-search {
    gap: 0 12px;
    margin-top: 8px;
  }
  .quick-search button {
    min-height: 44px;
    font-size: 12px;
  }
  .quick-search span {
    font-size: 12px;
  }
  .trust-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    font-size: 12px;
    margin-top: 8px;
  }
  .trust-bar span:first-child {
    grid-column: 1/-1;
  }
  .hero-visual {
    width: 100%;
    align-self: stretch;
  }
  body[data-state="results"] .discovery-content .hero {
    padding: 12px 0 4px;
  }
  .notice {
    font-size: 11px;
    margin: 8px 0;
  }
  #results-heading {
    font-size: 24px;
  }
  #results-subtitle {
    font-size: 13px;
    margin-top: 4px;
  }
  #results-section {
    margin-top: 0;
  }
  .results-toolbar > div:first-child {
    margin: 8px 0;
  }
  .result-tools {
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 8px;
  }
  .result-tools label {
    flex: 1;
    font-size: 13px;
    gap: 4px;
  }
  #sort-results {
    width: 100%;
    flex: 1;
    max-width: none;
    font-size: 13px;
  }
  #edit-filters {
    min-width: 80px;
    font-size: 13px;
  }
  #reset-search {
    display: none;
  }
  #search-summary.search-summary {
    margin-bottom: 12px;
  }
  #search-summary .intent-chip {
    padding: 4px 8px;
    font-size: 12px;
    min-height: 44px;
  }
  #clear-all-filters {
    padding: 4px;
    font-size: 12px;
  }
  .results,
  body[data-kiosk="on"] .results {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .supplier-card.decision-card {
    padding: 16px;
    gap: 8px;
    min-height: 244px;
  }
  .supplier-card .company-name {
    font-size: 18px;
    min-height: 44px;
    line-height: 1.25;
  }
  .supplier-card .location-text {
    font-size: 13px;
    margin: -4px 0 0;
  }
  .match-label {
    margin-bottom: 4px;
    font-size: 11px;
  }
  .match-chip {
    font-size: 11px;
    padding: 4px 8px;
  }
  .supplier-card .capability-title {
    font-size: 15px;
    line-height: 1.3;
  }
  .supplier-card .capability-summary,
  .supplier-card .card-blurb {
    display: none;
  }
  .supplier-card .supplier-actions {
    padding: 0;
    margin-top: auto;
  }
  .save-desktop {
    display: none;
  }
  .save-mobile {
    display: inline;
  }
  .details-button {
    font-size: 13px;
  }
  .skeleton-card {
    min-height: 244px;
  }
  #plan-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    inset: 0;
    margin: 0;
    padding: 16px;
    border-radius: 0;
  }
  #plan-dialog .sheet-header {
    margin: 0 0 12px;
    gap: 8px;
  }
  #plan-title {
    font-size: 21px;
  }
  .sheet-header > button {
    width: 44px;
    height: 44px;
    flex: none;
  }
  .route-toolbar {
    gap: 4px 8px;
  }
  .route-toolbar button {
    padding: 8px;
    font-size: 12px;
  }
  .route-explanation {
    margin: 4px 0;
    gap: 4px;
  }
  #route-note {
    font-size: 12px;
  }
  .plan-item {
    padding: 12px 0;
    gap: 8px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 124px;
  }
  .plan-item h3 {
    font-size: 14px;
  }
  .plan-item p {
    font-size: 12px;
  }
  .stop-controls {
    flex-direction: column;
    gap: 0;
  }
  .stop-controls .reorder-arrow {
    display: none;
  }
  .plan-sheet .sheet-footer {
    gap: 8px;
  }
  .plan-sheet .sheet-footer button {
    font-size: 14px;
  }
  .drawer-header,
  #supplier-detail-body {
    padding: 16px;
  }
  .drawer-header h2 {
    font-size: 20px;
  }
  .drawer-footer {
    padding: 16px;
  }
  .toast {
    font-size: 13px;
    bottom: 88px;
    gap: 8px;
  }
  #toast-view {
    font-size: 12px;
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .skeleton-card {
    opacity: 0.65;
  }
}
@media print {
  .supplier-drawer,
  #save-announcement,
  #toast {
    display: none !important;
  }
}

#results .supplier-actions {
  justify-content: space-between;
  width: 100%;
}
[data-theme="dark"] #results .supplier-actions .save-button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--line);
}

/* V3.5.1 interaction fixes */
dialog:not([open]) { display: none !important; }
.arrow-icon { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: -0.12em; }
.zone-arrow .arrow-icon { width: 20px; height: 20px; }
.door .door-arrow { width: 22px; height: 22px; }
.discovery-content .hero .search-form button::after {
  content: "";
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M6 6h12v12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
#tray-close { min-width: 44px; width: 44px; min-height: 44px; padding: 0; flex: none; font-size: 24px; background: transparent; color: inherit; border: 0; }
#plan-dialog .sheet-header { position: sticky; top: -1px; z-index: 3; background: var(--panel); padding-block: 8px; }
#toast:not([hidden]) { animation: toast-fade-in 160ms ease-out both; }
#toast.toast-leaving { animation: toast-fade-out 220ms ease-in both; pointer-events: none; }
@keyframes toast-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 759px) {
  .visit-tray { gap: 8px; padding: 8px; }
  #tray-close { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #toast:not([hidden]), #toast.toast-leaving { animation: none; }
}

/* A company selection runs a standalone name search. */
.autocomplete [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.suggestion-kind { font-size: 12px; color: var(--muted); flex: none; }
