/* Compact the search chrome while preserving input sizes and the save panel's
   shared horizontal inset. No fixed heights: open disclosures can grow freely. */
/* Center the visible wordmark and status, allowing expanded details to grow. */
html body #elika-guided-search .topbar {
  align-items: center !important;
  min-height: 76px !important;
  box-sizing: border-box !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
/* Keep the permanent brand signature visible on both search paths. The legacy
   conditional track label still collapses when it is not in use. */
html body #elika-guided-search #egu-track-label:not(.on):not(.brand-private) { display: none !important; }
html body #elika-guided-search .wordmark #egu-track-label.brand-private {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: 4px !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: 2.4px !important;
  color: var(--gold) !important;
}
html body #elika-guided-search .stepmeta { padding-top: 12px !important; }
html body #elika-guided-search .stage { padding-bottom: 24px !important; }
html body #elika-guided-search #egu-draft { margin: 8px 0 16px !important; }
html body #elika-guided-search #egu-draft > summary { padding: 16px 0 !important; }
html body #elika-guided-search #egu-draft > [role="status"]:empty { margin: 0 !important; }

/* The opening budget step has two estimates. Tighten their surrounding space,
   without hiding their figures, changing calculations or shrinking controls. */
html body #elika-guided-search .step[data-key="range"] > h2 {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}
html body #elika-guided-search .step[data-key="range"] > .lede { margin-bottom: 20px !important; }
html body #elika-guided-search .step[data-key="range"] .field { margin-bottom: 22px !important; }
html body #elika-guided-search .step[data-key="range"] .cost {
  margin-top: 18px !important;
  padding: 16px !important;
}

/* Enlarge only the opening building drawing (230px -> 300px). Its existing
   budget-based scaling and reserved growth headroom remain intact. */
@media (min-width: 1081px) {
  html body #elika-guided-search .conversation-rail-art[data-rail-step="range"] {
    width: 300px;
    max-width: 80%;
    margin-top: 20px !important;
  }
}

/* v139: center both lines as a single wordmark in the form header. */
html body #elika-guided-search .topbar > .wordmark.brand-wordmark {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  text-align: center !important;
}
html body #elika-guided-search .wordmark #egu-track-label.brand-private {
  align-self: center !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center !important;
}
