/* equyx — the market layer on Holdings (pfmarket.js). Tokens only, so every
   theme in themes.css carries it. */
.eqm-small { font-size: 12px; }
.eqm-sp { flex: 1; }
.eqm-tab { position: relative; }
.eqm-tab::after { content: ""; position: absolute; top: 7px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent, var(--amber)); }
.eqm-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 13px;
  border: 1px dashed var(--border); border-radius: 12px; }
.eqm-shimmer { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: mkshim 1.4s linear infinite; }
@keyframes mkshim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.eqm-note { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 12px 0; font-size: 13.5px; line-height: 1.55; }
.eqm-note p { margin: 6px 0 10px; color: var(--muted); }

.eqm-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.eqm-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; background: var(--surface); }
.eqm-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint, var(--muted)); }
.eqm-st.ok i { background: var(--good); box-shadow: 0 0 6px var(--good); }
.eqm-st.loading i, .eqm-st.computing i { background: var(--warn); animation: mkpulse 1s ease-in-out infinite; }
.eqm-st.error i { background: var(--bad); }
@keyframes mkpulse { 50% { opacity: .3; } }

.eqm-brief { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.eqm-bcard { border: 1px solid var(--border); border-radius: 14px; padding: 16px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); }
.eqm-bcard.tap { cursor: pointer; }
.eqm-bcard.tap:hover, .eqm-bcard.tap:focus-visible { border-color: var(--accent); }
.eqm-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.eqm-movers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--border); border-left: 3px solid var(--warn);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; background: var(--surface); }
.eqm-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 2px 9px;
  border: 1px solid var(--border-strong, var(--border)); color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.eqm-chip.up { color: var(--good-ink, var(--good)); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: var(--good-soft, transparent); }
.eqm-chip.down { color: var(--bad-ink, var(--bad)); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-soft, transparent); }
.eqm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; align-items: center; }
.eqm-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }

.eqm-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 10px; }
.eqm-v { border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px 10px; background: var(--surface); cursor: pointer; position: relative; overflow: hidden;
  transition: transform .14s, border-color .14s, box-shadow .14s; }
.eqm-v::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--border); }
.eqm-v.up::before { background: linear-gradient(90deg, var(--good), transparent); }
.eqm-v.down::before { background: linear-gradient(90deg, var(--bad), transparent); }
.eqm-v:hover, .eqm-v:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 16%, transparent); }
.eqm-v-top { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.eqm-tick { font-weight: 800; font-family: var(--code, ui-monospace, monospace); }
.eqm-v-name { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 6px; }
.eqm-v-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eqm-v-n { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.eqm-v-votes { display: flex; align-items: center; gap: 4px; margin: 8px 0 6px; }
.eqm-dot { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font: 700 10px var(--code, monospace);
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.eqm-dot.up { background: var(--good-soft, transparent); color: var(--good-ink, var(--good)); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.eqm-dot.down { background: var(--bad-soft, transparent); color: var(--bad-ink, var(--bad)); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.eqm-lean { margin-left: auto; font-size: 11.5px; font-weight: 700; }
.eqm-spark { display: block; flex: 0 0 auto; }
.up { color: var(--good-ink, var(--good)); } .down { color: var(--bad-ink, var(--bad)); } .warn { color: var(--warn); }

.eqm-wide { grid-column: 1 / -1; margin: 12px 0; }
.eqm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.eqm-stats div, .eqm-split div { border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.eqm-stats b, .eqm-split b { font-size: 18px; font-variant-numeric: tabular-nums; }
.eqm-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.eqm-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eqm-bars li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.eqm-bars li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqm-bars i { display: block; height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.eqm-bars i b { display: block; height: 100%; background: var(--bad); border-radius: 99px; opacity: .85; }
.eqm-bars em { font-style: normal; font-variant-numeric: tabular-nums; }
.eqm-assume { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 13px; line-height: 1.6; background: var(--surface); }
.eqm-assume summary { cursor: pointer; font-weight: 700; }
.eqm-own td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.eqm-r52 { position: relative; height: 6px; width: 90px; border-radius: 99px; display: inline-block; vertical-align: middle;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bad) 55%, transparent), var(--surface-3), color-mix(in srgb, var(--good) 55%, transparent)); }
.eqm-r52.wide { width: 130px; }
.eqm-r52 i { position: absolute; top: -3px; width: 4px; height: 12px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.eqm-mix { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); min-width: 90px; }
.eqm-mix i { display: block; height: 100%; }
.eqm-find { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; align-items: center; }
.eqm-find .pf-ask-in { flex: 1; min-width: 200px; }
.eqm-chain td, .eqm-chain th { text-align: center; }
.eqm-strike { font-weight: 800; background: var(--surface-2); }
.eqm-strike.mp { color: var(--warn); }
.eqm-atm td { border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.eqm-oi { position: relative; min-width: 80px; }
.eqm-oi i { position: absolute; top: 4px; bottom: 4px; opacity: .22; border-radius: 4px; }
.eqm-oi i.call { right: 0; background: var(--bad); } .eqm-oi i.put { left: 0; background: var(--good); }
.eqm-oi span { position: relative; font-variant-numeric: tabular-nums; }
.eqm-twin { border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 12%, var(--surface)), var(--surface));
  border-radius: 14px; padding: 14px 16px; margin: 12px 0; display: grid; gap: 8px; font-size: 13.5px; }
.eqm-twin ul, .eqm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }

/* charts */
.eqm-chart { width: 100%; }
.eqm-hud { display: flex; flex-wrap: wrap; gap: 10px; font: 12px var(--code, ui-monospace, monospace); margin-bottom: 4px; min-height: 18px; }
.eqm-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.eqm-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.eqm-grid { stroke: var(--border); stroke-width: 1; }
.eqm-lbl { fill: var(--muted); font-size: 11px; font-family: var(--code, ui-monospace, monospace); }
.eqm-val { fill: var(--text); font-size: 12px; font-weight: 700; font-family: var(--code, ui-monospace, monospace); }
.eqm-tag { fill: #fff; font-size: 10.5px; font-weight: 700; }
.eqm-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.eqm-ring { display: flex; flex-direction: column; align-items: center; width: 128px; text-align: center; }
.eqm-ringv { fill: var(--text); font-size: 18px; font-weight: 800; }
.eqm-ringl { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.eqm-meter { display: grid; gap: 6px; }
.eqm-meter-t { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.eqm-meter-t b { font-size: 18px; }
.eqm-meter-k { position: relative; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.eqm-meter-k .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-strong, var(--border)); }
.eqm-meter-k .fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; }

/* the holding panel inside the drawer */
.eqm-panel { display: grid; gap: 12px; margin-bottom: 14px; }
.eqm-quote { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.eqm-px { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.eqm-px span { font-size: 14px; font-weight: 600; margin-left: 6px; }
.eqm-street { min-width: 200px; flex: 1; max-width: 340px; display: grid; gap: 4px; }
.eqm-tally { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 5px; font-size: 12.5px; }
.eqm-trow { display: grid; grid-template-columns: 16px 110px 1fr; gap: 8px; align-items: baseline; }
.eqm-sub { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 8px; }
.eqm-sub-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eqm-sub-h h4 { margin: 0; font-size: 14px; }
.eqm-out { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.eqm-bands { flex: 1; min-width: 220px; display: grid; gap: 5px; }
.eqm-bands div { display: grid; grid-template-columns: 1fr auto 54px; gap: 8px; font-size: 13px; align-items: baseline; border-bottom: 1px dashed var(--border); padding-bottom: 3px; }
.eqm-bands em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.eqm-tech { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: center; }
.eqm-sig { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 13px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.eqm-news { display: grid; grid-template-columns: 10px 1fr; gap: 9px; font-size: 13px; }
.eqm-news > i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.eqm-news > i.up { background: var(--good); } .eqm-news > i.down { background: var(--bad); }
.eqm-save textarea { width: 100%; box-sizing: border-box; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; }
.eqm-field { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.eqm-confirm { border: 1px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }

@media (max-width: 760px) {
  .eqm-brief { grid-template-columns: 1fr; }
  .eqm-big { font-size: 22px; }
  .eqm-stats, .eqm-split { grid-template-columns: 1fr 1fr; }
  .eqm-tech { grid-template-columns: 1fr; }
  .eqm-trow { grid-template-columns: 16px 1fr; }
  .eqm-trow .muted { grid-column: 2; }
  .eqm-wall { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
  .eqm-bars li { grid-template-columns: 1fr auto; }
  .eqm-bars li i { grid-column: 1 / -1; }
}

/* the three on-demand reads */
.eqm-leaders { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 8px 0; display: grid; gap: 6px; background: var(--surface); }
.eqm-leaders .eqm-sub-h b { text-transform: capitalize; }
.eqm-leg { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.eqm-greeks { border: 1px solid var(--accent-line, var(--border)); border-radius: 12px; padding: 12px; margin: 10px 0; background: var(--surface-2); display: grid; gap: 8px; }
.eqm-gk { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.eqm-gk > div { display: grid; gap: 3px; }
.eqm-gk b { font-variant-numeric: tabular-nums; }

/* the Source/Ask pair (styled in portfolio.css) where a market card places it */
.eqm-v-votes > .pf-tools { position: static; margin-left: auto; }
.eqm-twin { position: relative; }
.eqm-bcard .pf-lab, .eqm-twin > div:first-of-type { padding-right: 78px; }

/* conviction board (2026-09-29) */
/* as many 280px cards as the space holds: the holding drawer narrows the pane, the window does not */
.eqm-cvq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-bottom: 14px; }
.eqm-cvcard { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 14px 15px; background: var(--surface-2, var(--surface)); min-width: 0; }
.eqm-cvcard.edge { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); }
.eqm-cvcard .pf-lab { padding-right: 78px; }
.eqm-cv-verdict { font-size: 15px; margin: 6px 0 6px; }
.eqm-rel { position: relative; display: flex; align-items: flex-end; gap: 5px; height: 110px; margin: 12px 0 18px; padding-top: 14px; border-bottom: 1px solid var(--border); }
.eqm-rel-c { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.eqm-rel-c i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.eqm-rel-c i.bad { background: var(--bad); } .eqm-rel-c i.good { background: var(--good); }
.eqm-rel-c span { position: absolute; top: -2px; font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; }
.eqm-rel-c em { position: absolute; bottom: -17px; font-size: 11px; font-style: normal; color: var(--muted); }
.eqm-rel-base { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--warn); pointer-events: none; }
.eqm-rel-base span { position: absolute; right: 0; top: -15px; font-size: 11px; color: var(--warn); }
.eqm-cvm { margin-top: 8px; }
.eqm-cvlist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.eqm-cvlist li > span:first-child { display: block; font-size: 11px; color: var(--muted); }
.eqm-cvm-h { margin-top: 10px; }
.eqm-cvhead { font-size: 14px; line-height: 1.5; margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.eqm-cvtable td:first-child, .eqm-cvtable th:first-child { text-align: left; }
.eqm-cvtable td:last-child { white-space: normal; min-width: 220px; }
.eqm-cvm b { background: var(--accent); }
.eqm-cvfam { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 8px; }
.eqm-cvfam span { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.eqm-cvfam span.on { border-color: var(--accent); color: var(--text); }
.eqm-cvfam b { font-variant-numeric: tabular-nums; color: var(--text); }
.eqm-mech { font-size: 11px; line-height: 1.45; color: var(--muted); margin: 2px 0 6px; padding: 5px 8px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--border); }
