@media (scripting: enabled) {
  [data-live-slot="hero"] { position: relative; padding-bottom: 28px; }
  [data-live-slot="hero"] > .lp { position: absolute; left: 0; bottom: 0; }
  [data-live-slot="row"] { display: block; position: relative; min-height: 28px; }
  [data-live-slot="row"] > .lp { position: absolute; left: 0; right: 0; top: 0; }
  [data-live-slot="chip"] { display: block; min-height: 20px; }
}
@media (scripting: enabled) and (min-width: 769px) {
  /* beside the headline the price cluster is narrow and right-aligned: one line, ending under the dated close */
  [data-live-slot="hero"] > .lp { left: auto; right: 0; flex-wrap: nowrap; white-space: nowrap; max-width: none; }
}
@media (scripting: enabled) and (max-width: 480px) {
  [data-live-slot="hero"] { padding-bottom: 50px; }
  [data-live-slot="row"] { min-height: 50px; }
}
/* the narrowest phones: a comparison's chips carry the change only, so the row stays two lines */
@media (max-width: 360px) { .lp-row:not(.lp-compact) .lp-val { display: none; } }
.lp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: calc(100vw - 32px);
  font-family: inherit; font-size: 13px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--life-muted, #AEBDD0); }
.lp:not([data-show]) { display: none; }
.lp[data-show="0"] .lp-val, .lp[data-show="0"] .lp-chg, .lp[data-show="0"] .lp-ref { display: none; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0; border: 0; background: none;
  color: var(--life-muted, #AEBDD0); font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.lp-pill:focus-visible { outline: 2px solid var(--life-accent, #85DFD4); outline-offset: 2px; }
.lp-dot { display: none; }
.lp-val { color: var(--life-ink, #F1F5F6); font-weight: 600; display: inline-block; border-radius: 4px; padding: 0 2px; }
.lp-chg[data-dir="up"], .lp-rowchip[data-dir="up"] { color: var(--life-in, #74DEB0); }
.lp-chg[data-dir="down"], .lp-rowchip[data-dir="down"] { color: var(--life-out, #FF8A7A); }
.lp-val.lp-up { animation: lp-flash-up 900ms var(--life-ease-out, cubic-bezier(.2,.8,.2,1)); }
.lp-val.lp-down { animation: lp-flash-down 900ms var(--life-ease-out, cubic-bezier(.2,.8,.2,1)); }
.lp-ref { color: var(--life-muted, #AEBDD0); }
.lp-tip { flex-basis: 100%; font-size: 12px; line-height: 18px; color: var(--life-muted, #AEBDD0); max-width: 52ch; }
.lp-row .lp-chip { display: inline-flex; gap: 6px; align-items: baseline; }
.lp-row .lp-chip[data-show="0"] { display: none; }
.lp-row .lp-tk { color: var(--life-ink, #F1F5F6); font-weight: 600; }
.lp-row[data-show="0"] { visibility: hidden; }
[data-live-row] { position: relative; }
[data-live-row] > .lp-row:not(.lp-compact) { position: absolute; left: 0; right: 0; top: 0; }
.lp-compact { position: absolute; left: 0; top: 2px; white-space: nowrap; font-size: 12px; gap: 6px; }
.lp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; box-sizing: border-box; max-width: none; justify-content: center;
  padding: 8px 16px; background: var(--life-surface, #132139); border-top: 1px solid var(--life-line, #2C4059); }
.lp-dock[hidden] { display: none; }
.lp-dock .lp-chip { display: inline-flex; gap: 8px; align-items: baseline; }
.lp-dock .lp-tk { color: var(--life-ink, #F1F5F6); font-weight: 600; }
.lp-sess { color: var(--life-muted, #AEBDD0); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) { .lp-dock { animation: lp-fade 160ms ease-out; } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
/* out of flow, at the spot it would take, so a table's columns never move when chips arrive */
.lp-rowchip { position: absolute; margin-left: 6px; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.lp-rowchip[data-show="0"] { display: none; }
/* on a light panel: graphics.LIGHT's ink, inflow, outflow and accent */
.lp-light { --life-ink: #121923; --life-muted: #566275; --life-faint: #566275; --life-in: #1B7A43; --life-out: #B3261E;
  --life-accent: #0D737C; --life-surface-2: #F0F3F7; --life-line-strong: #CFD6E1; }
.lp-rowchip.lp-light[data-dir="up"] { color: #1B7A43; } .lp-rowchip.lp-light[data-dir="down"] { color: #B3261E; }
@keyframes lp-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes lp-flash-up { from { background: color-mix(in srgb, var(--life-in, #74DEB0) 28%, transparent); } to { background: transparent; } }
@keyframes lp-flash-down { from { background: color-mix(in srgb, var(--life-out, #FF8A7A) 28%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .lp *, .lp { animation: none !important; transition: none !important; } }
html.lp-reduce .lp, html.lp-reduce .lp * { animation: none !important; }
@media print { .lp, .lp-dock, .lp-rowchip { display: none !important; } [data-live-slot="hero"] { padding-bottom: 0 !important; } [data-live-row] { min-height: 0 !important; } }
