/* v17.2: compact permanent search, equal discovery controls, honest insight visuals. */
.hero .uf171-main-search {
  display:block!important; visibility:visible!important;
  margin:clamp(14px,2vw,22px) auto 20px!important;
  padding:0!important; border:0!important; background:transparent!important;
  box-shadow:none!important; border-radius:0!important
}
.hero .uf171-main-search-label,.hero .uf171-checkpoints {display:none!important}
.hero .uf171-main-search #linkForm {display:block!important;position:relative!important;visibility:visible!important;opacity:1!important}
.hero .uf171-main-search #linkForm .search-row {
  min-height:68px; border:1px solid #dce5ef; border-radius:19px;
  background:#fff; box-shadow:0 10px 34px rgba(27,48,80,.075)
}
.hero .uf171-main-search #linkSubmit {min-width:83px}
.hero .uf171-secondary-kicker {margin:16px 0 11px}
.hero .home-modes {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;align-items:stretch!important
}
.hero .home-modes #modeBudget,.hero .home-modes #dealsToggle {
  display:flex!important; width:100%!important; max-width:none!important;
  min-width:0!important; grid-column:auto!important;grid-row:auto!important;
  box-sizing:border-box!important; min-height:88px!important;
  height:100%!important; margin:0!important; align-self:stretch!important;
  padding:13px 15px!important; border-radius:18px!important
}
.hero .home-modes #modeBudget .uf137-mode-copy,
.hero .home-modes #dealsToggle .uf137-mode-copy {
  flex:1 1 auto!important;min-width:0; white-space:normal
}
.hero .home-modes #modeBudget .uf137-mode-copy strong,
.hero .home-modes #dealsToggle .uf137-mode-copy strong {
  display:block;font-size:clamp(12px,1.4vw,17px);line-height:1.33
}
body.budget-mode .hero .uf171-main-search,
body.deals-mode .hero .uf171-main-search,
body.workspace-open .hero .uf171-main-search {display:block!important}
body.budget-mode .hero .uf171-main-search #linkForm,
body.deals-mode .hero .uf171-main-search #linkForm {
  display:block!important;visibility:visible!important;max-height:none!important;
  overflow:visible!important
}
.hero .home-modes #modePrice {display:none!important}
.uf172-insights {
  margin:24px auto 4px; background:#fff; color:#203650;
  border:1px solid #e0e6f0; border-radius:22px;
  box-shadow:0 14px 38px rgba(31,53,87,.055); padding:clamp(18px,2.4vw,29px)
}
.uf172-insights[hidden] {display:none!important}
.uf172-insights-header {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}
.uf172-insights-kicker {color:#2862c0;font-weight:800;font-size:11px;letter-spacing:.14em}
.uf172-insights h3 {font-size:clamp(18px,2.1vw,23px);font-weight:800;letter-spacing:-.02em;margin:5px 0 0;color:#21344d}
.uf172-insights-badge {border:1px solid #d8e3f6;color:#54739a;font-size:11px;font-weight:700;padding:7px 10px;border-radius:40px;white-space:nowrap}
.uf172-ai-body {font-size:clamp(13px,1.4vw,15px);line-height:1.8;white-space:pre-line;color:#42536d}
.uf172-ai-note {margin-top:12px;color:#68778e;font-size:12px;line-height:1.65}
.uf172-insights-separator {height:1px;background:#eaf0f7;margin:22px 0}
.uf172-history-head {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.uf172-history-head strong {font-size:16px;color:#243c59}
.uf172-history-head select {border:1px solid #d3deed;padding:8px;border-radius:11px;background:white;color:#29425f;max-width:100%}
.uf172-chart {min-height:90px;margin-top:12px;display:flex;align-items:center;justify-content:center}
.uf172-chart svg {width:100%;height:auto;max-height:190px;display:block}
.uf172-chart .uf172-line {fill:none;stroke:#2866c5;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.uf172-chart .uf172-dot {fill:#fff;stroke:#2866c5;stroke-width:2.3}
.uf172-chart .uf172-axis {stroke:#dfe8f5;stroke-width:1}
.uf172-chart .uf172-label {fill:#6b7e99;font-family:system-ui,sans-serif;font-size:11px}
.uf172-empty-history {font-size:13px;color:#738198;padding:13px 10px;text-align:center;line-height:1.65}
.uf172-history-meta {font-size:12px;color:#728198;line-height:1.6;margin:8px 0 0}
@media (max-width:700px) {
 .hero .uf171-main-search #linkForm .search-row {min-height:59px;border-radius:16px}
 .hero .home-modes {gap:9px!important}
 .hero .home-modes #modeBudget,.hero .home-modes #dealsToggle {
   min-height:75px!important;padding:11px 9px!important;gap:7px!important
 }
 .hero .home-modes .uf137-mode-icon {flex:0 0 36px!important;width:36px!important;height:36px!important}
 .hero .home-modes .deal-chevron {display:none}
 .uf172-insights-header {flex-wrap:wrap}
 .uf172-insights {padding:17px;border-radius:19px}
}
@media (max-width:365px) {
 .hero .home-modes #modeBudget .uf137-mode-copy strong,
 .hero .home-modes #dealsToggle .uf137-mode-copy strong {font-size:11px}
 .hero .home-modes .uf137-mode-icon {flex-basis:30px!important;width:30px!important;height:30px!important}
}

body.budget-show-results #hero,body.workspace-open #hero {display:block!important}
