#hogprices-panel { display:none; flex-direction:column; flex:1; min-height:0; overflow:auto; gap:10px; padding:0.25rem; }
#hogprices-panel.visible { display:flex; }
#hogprices-panel .hp-controls { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
#hogprices-panel .hp-controls label { font-size:12px; color:var(--muted); display:block; }
#hogprices-panel select { max-width:100%; }
#hogprices-panel .hp-chart { min-height:340px; width:100%; }
#hogprices-panel .hp-note { font-size:12px; color:var(--muted); }
#hogprices-panel .hp-src { font-size:11px; font-weight:600; color:var(--heading); background:var(--panel2); border:1px solid var(--border); border-radius:4px; padding:1px 6px; }
body.mobile #hogprices-panel .hp-chart { min-height:280px; }
#hogprices-panel .hp-seg { display:inline-flex; border:1px solid var(--border); border-radius:6px; overflow:hidden; }
#hogprices-panel .hp-seg button { border:0; background:var(--card); color:var(--ink); padding:4px 10px; cursor:pointer; font-size:13px; }
#hogprices-panel .hp-seg button.active { background:var(--heading); color:var(--card); }
#hogprices-panel .hp-yr { min-width:200px; }
#hogprices-panel .hp-yr .year-range { position:relative; height:28px; }
#hogprices-panel .hp-stats { display:flex; flex-wrap:wrap; gap:8px; }
#hogprices-panel .hp-card { border:1px solid var(--border); border-radius:6px; padding:6px 10px; background:var(--panel2); font-size:12px; flex:1; min-width:260px; }
#hogprices-panel .hp-card b { color:var(--heading); }
#hogprices-panel .hp-card .k { display:grid; grid-template-columns:repeat(3, minmax(70px,1fr)); gap:4px 10px; margin-top:4px; }
#hogprices-panel .hp-card .k span { color:var(--muted); display:block; font-size:11px; }
#hogprices-panel .up { color:#15803d; } #hogprices-panel .dn { color:#b91c1c; }
#hogprices-panel option.sparse { color:#999; }

#hogprices-panel .hp-update-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:8px 0 4px; }
#hogprices-panel .hp-update-row .dash-update-btn {
  background:#166534; color:#fff; border:1px solid #86efac; border-radius:6px;
  padding:6px 12px; cursor:pointer; font-size:13px; font-weight:600;
}
#hogprices-panel .hp-update-row .dash-update-btn:hover { filter:brightness(1.05); }
#hogprices-panel .hp-update-row .dash-update-btn:disabled { opacity:.55; cursor:wait; }
#hogprices-panel .hp-update-row .dash-update-status { font-size:12px; color:var(--muted); }
#hogprices-panel .hp-update-row .update-last-run { font-size:12px; color:var(--muted); width:100%; }

#hogprices-panel .hp-seg-thin button { font-size:12px; padding:3px 8px; color:var(--muted); }
#hogprices-panel .hp-seg-thin button.active { color:var(--card); }
#hogprices-panel .hp-escarc { font-size:12px; color:var(--ink); display:flex; align-items:center; gap:6px; padding-bottom:2px; cursor:pointer; }
#hogprices-panel .hp-escarc input { margin:0; }
