/* Mobile-first portfolio dashboard. Sits on top of Pico.css. */
/* ---- design tokens: premium dark palette ---- */
:root {
  --pico-spacing: 0.75rem;
  --pico-border-radius: 0.7rem;
  /* deep slate background, layered surfaces */
  --pico-background-color: #0b0f17;
  --pico-card-background-color: #121826;
  --pico-card-sectioning-background-color: #1a2233;
  --pico-muted-border-color: #232c40;
  --pico-muted-color: #8a97ad;
  --pico-color: #e6ebf2;
  --pico-h1-color: #f2f5fa; --pico-h2-color: #f2f5fa; --pico-h3-color: #f2f5fa;
  --pico-primary: #4ea1ff;
  --pico-primary-hover: #6cb3ff;
  --pico-primary-background: #4ea1ff;
  --pico-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --accent-green: #2ecc71; --accent-red: #e5484d; --accent-amber: #e2a03f;
}
body { padding-bottom: 5rem; background: var(--pico-background-color);
  -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
h4 { letter-spacing: 0.02em; }
/* Push content below the iOS status bar (clock/battery) when installed as a PWA. */
.container { padding-inline: 0.75rem; max-width: 720px;
  padding-top: env(safe-area-inset-top, 0px); }
.muted { color: var(--pico-muted-color); font-weight: normal; font-size: 0.85em; }
.err { color: #e5484d; display: block; min-height: 1rem; }

/* book header */
#book-header { position: sticky; top: 0; z-index: 5; background: var(--pico-background-color);
  padding: calc(0.6rem + env(safe-area-inset-top, 0px)) 0 0.4rem;
  border-bottom: 1px solid var(--pico-muted-border-color); }
.book-total { display: flex; justify-content: space-between; align-items: baseline; }
.book-total span { font-size: 1.1rem; font-weight: 600; }
.book-total strong { font-size: 1.6rem; }
.book-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 0.1rem; }
.book-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.btn-sm { padding: 0.35rem 0.6rem; font-size: 0.85rem; margin: 0; width: auto; flex: 1; }
.fiduciary-badge { font-size: 0.7rem; background: #7c3aed22; color: #c4b5fd;
  border: 1px solid #7c3aed55; padding: 0.1rem 0.45rem; border-radius: 1rem; }

/* positions */
.pos { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius);
  padding: 0.6rem 0.7rem; margin-bottom: 0.55rem; cursor: pointer; }
.pos:active { background: var(--pico-card-sectioning-background-color); }
.pos-top { display: flex; justify-content: space-between; align-items: baseline; }
.pos-ticker { font-weight: 700; font-size: 1.05rem; }
.pos-value { font-weight: 600; }
.pos-meta { display: flex; justify-content: space-between; font-size: 0.8rem;
  color: var(--pico-muted-color); margin-top: 0.15rem; }
.pos-unpriced { color: #e2a03f; }
.bucket-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--pico-card-sectioning-background-color); padding: 0.05rem 0.4rem;
  border-radius: 0.5rem; }
.weight-bar { height: 4px; border-radius: 2px; background: var(--pico-muted-border-color); margin-top: 0.4rem; }
.weight-bar > div { height: 100%; border-radius: 2px; background: var(--pico-primary); }

/* tab bar — 4 icon+label tabs */
#tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex;
  background: var(--pico-card-background-color); border-top: 1px solid var(--pico-muted-border-color);
  padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.tab { flex: 1; background: none; border: none; border-radius: 0; margin: 0; color: var(--pico-muted-color);
  padding: 0.5rem 0.15rem 0.55rem; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.tab-ico { font-size: 1.15rem; line-height: 1; }
.tab-lbl { font-size: 0.66rem; }
.tab.active { color: var(--pico-primary); box-shadow: inset 0 2px 0 var(--pico-primary); font-weight: 600; }

/* segmented sub-nav (Intel: Events/Reviews) */
#subnav { margin: 0.5rem 0 0.2rem; }
.seg { display: flex; gap: 0.3rem; background: var(--pico-card-sectioning-background-color);
  padding: 0.2rem; border-radius: 0.6rem; }
.seg-btn { flex: 1; background: none; border: none; margin: 0; padding: 0.4rem; border-radius: 0.45rem;
  font-size: 0.8rem; color: var(--pico-muted-color); }
.seg-btn.on { background: var(--pico-primary); color: #fff; font-weight: 600; }

/* chat */
.budget-line { font-size: 0.68rem; text-align: center; padding: 0.3rem 0; }
.pnl-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  font-size: 0.8rem; padding: 0.5rem 0.6rem; margin-top: 0.5rem;
  background: var(--pico-card-sectioning-background-color); border-radius: 0.5rem; color: var(--pico-muted-color); }
#chat-log { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 4.5rem; }
.chat-empty { color: var(--pico-muted-color); font-size: 0.9rem; text-align: center; margin-top: 2rem; line-height: 1.5; }
.chat-msg { max-width: 85%; padding: 0.55rem 0.7rem; border-radius: 0.8rem; font-size: 0.9rem; line-height: 1.4; }
.chat-msg.me { align-self: flex-end; background: var(--pico-primary); color: #fff; border-bottom-right-radius: 0.2rem; }
.chat-msg.ai { align-self: flex-start; background: var(--pico-card-sectioning-background-color); border-bottom-left-radius: 0.2rem; }
#chat-bar { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 3.4rem);
  display: flex; gap: 0.4rem; align-items: center; padding: 0.4rem 0.75rem;
  background: var(--pico-background-color); border-top: 1px solid var(--pico-muted-border-color); z-index: 9; }
#chat-input { flex: 1; margin: 0; }
.chat-web { font-size: 0.7rem; color: var(--pico-muted-color); display: flex; align-items: center; gap: 0.2rem; }
.chat-web input { width: auto; margin: 0; }
#chat-send { width: auto; margin: 0; }

/* search results */
#search-results .sr { padding: 0.5rem; border-bottom: 1px solid var(--pico-muted-border-color); cursor: pointer; }
#search-results .sr:active { background: var(--pico-card-sectioning-background-color); }
#search-results .sr small { color: var(--pico-muted-color); }
/* concentration panel (M4) */
#concentration { margin: 0.6rem 0 0.2rem; }
.conc-card { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius);
  padding: 0.7rem 0.8rem; margin-bottom: 0.6rem; background: var(--pico-card-sectioning-background-color); }
.conc-card h4 { margin: 0 0 0.5rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--pico-muted-color); }
.conc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.3rem; font-size: 0.92rem; }
.conc-row .lbl { display: flex; gap: 0.4rem; align-items: baseline; }
.conc-row .big { font-size: 1.35rem; font-weight: 700; }
.conc-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.conc-members { font-size: 0.72rem; color: var(--pico-muted-color); margin: 0.1rem 0 0.5rem; }
.cbar { height: 6px; border-radius: 3px; background: var(--pico-muted-border-color); margin: 0.15rem 0 0.55rem; overflow: hidden; display: flex; }
.cbar > span { display: block; height: 100%; }
.cbar .seg-native { background: var(--pico-primary); }
.cbar .seg-proxy { background: #e2a03f; }
.flag { font-size: 0.72rem; color: #e2a03f; margin-top: 0.3rem; }
.bucket-header { display: flex; justify-content: space-between; align-items: baseline;
  margin: 0.9rem 0 0.4rem; padding-bottom: 0.2rem; border-bottom: 1px solid var(--pico-muted-border-color); }
.bucket-header .bname { font-weight: 700; font-size: 0.95rem; }
.bucket-header .bval { color: var(--pico-muted-color); font-size: 0.85rem; }
/* asset drill-down overlay */
#asset-detail { position: fixed; inset: 0; z-index: 50; background: var(--pico-background-color);
  overflow-y: auto; padding: 0 0.75rem calc(2rem + env(safe-area-inset-bottom));
  padding-top: env(safe-area-inset-top, 0px); }
#ad-header { position: sticky; top: 0; background: var(--pico-background-color);
  display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0 0.5rem;
  border-bottom: 1px solid var(--pico-muted-border-color); }
#ad-header #ad-title { font-size: 1.3rem; font-weight: 700; }
#ad-back { width: auto; margin: 0; padding: 0.3rem 0.7rem; }
.ad-section { margin-top: 1rem; }
.ad-section h4 { margin: 0 0 0.4rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--pico-muted-color); }
.ad-sig .sig-zone { margin-top: 0.3rem; }
.verdict { border: 1px solid var(--pico-muted-border-color); border-left-width: 4px;
  border-radius: var(--pico-border-radius); padding: 0.7rem 0.8rem; background: var(--pico-card-sectioning-background-color); }
.verdict-head { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.verdict-action { font-weight: 600; margin-bottom: 0.3rem; }
.verdict-reason { font-size: 0.9rem; line-height: 1.4; }
.verdict-meta { font-size: 0.7rem; color: var(--pico-muted-color); margin-top: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem; }
.verdict-refresh { width: auto; margin: 0; padding: 0.1rem 0.5rem; font-size: 0.68rem; }
.fund-notes { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.82rem; line-height: 1.45; color: var(--pico-muted-color); }
.fund-notes li { margin-bottom: 0.2rem; }
.ad-tvl { display: flex; gap: 0.6rem; align-items: baseline; }
.ad-tvl-val { font-size: 1.3rem; font-weight: 700; }
#ad-tvlspark { width: 100%; display: block; margin-top: 0.3rem; }
.tvl-tfs { display: flex; gap: 1rem; margin-top: 0.35rem; }
.tvl-tf { display: flex; flex-direction: column; font-weight: 600; font-size: 0.9rem; }
.tvl-tf small { color: var(--pico-muted-color); font-weight: normal; font-size: 0.62rem; }
.uplot { font-family: inherit; }
.chart-tfs { display: flex; gap: 0.3rem; margin-bottom: 0.5rem; }
.tf-btn { flex: 1; background: var(--pico-card-sectioning-background-color); border: 1px solid var(--pico-muted-border-color);
  color: var(--pico-muted-color); margin: 0; padding: 0.3rem 0; border-radius: 0.4rem; font-size: 0.74rem; }
.tf-btn.on { background: var(--pico-primary); color: #fff; border-color: var(--pico-primary); font-weight: 600; }
.sig-tap { cursor: pointer; }
.sig-tap:active { background: var(--pico-card-sectioning-background-color); }

/* home page */
.home-sec { margin-bottom: 1.1rem; }
.home-sec h4 { margin: 0 0 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pico-muted-color); }
.home-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  padding: 0.55rem 0.7rem; margin-bottom: 0.35rem; border-radius: 0.55rem; font-size: 0.9rem;
  background: var(--pico-card-background-color); border: 1px solid var(--pico-muted-border-color); cursor: pointer; }
.home-row:active { background: var(--pico-card-sectioning-background-color); }
.home-movers-grp { margin-bottom: 0.5rem; }
.home-movers-grp .muted { font-size: 0.72rem; display: block; margin-bottom: 0.2rem; }
.home-overview-text { font-size: 0.9rem; line-height: 1.5; background: var(--pico-card-sectioning-background-color);
  padding: 0.7rem 0.8rem; border-radius: 0.6rem; }

/* macro context bar (group B) */
.macro-bar { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius);
  padding: 0.6rem 0.7rem; margin-bottom: 0.8rem; background: var(--pico-card-sectioning-background-color); }
.macro-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--pico-muted-color); margin-bottom: 0.45rem; }
.macro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 0.5rem; }
.macro-cell { text-align: center; }
.macro-v { font-size: 1.05rem; font-weight: 700; }
.macro-l { font-size: 0.62rem; color: var(--pico-muted-color); margin-top: 0.1rem; }

/* reports */
.tab-reports.active { color: #4ea1ff; box-shadow: inset 0 2px 0 #4ea1ff; font-weight: 600; }
.report { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius);
  padding: 0.6rem 0.7rem; margin-bottom: 0.55rem; cursor: pointer; }
.report:active { background: var(--pico-card-sectioning-background-color); }
.report-top { display: flex; justify-content: space-between; align-items: baseline; }
.report-date { font-weight: 700; }
.report-count { font-size: 0.78rem; color: var(--pico-muted-color); }
.report-summary { font-size: 0.86rem; line-height: 1.35; margin-top: 0.25rem; }
.report-meta { font-size: 0.68rem; color: var(--pico-muted-color); margin-top: 0.3rem; }

/* signals */
.tab-signals.active { color: #4ea1ff; box-shadow: inset 0 2px 0 #4ea1ff; font-weight: 600; }
.mvrv-card { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius);
  padding: 0.8rem 0.8rem; margin-bottom: 0.8rem; background: var(--pico-card-sectioning-background-color); }
.mvrv-head { display: flex; justify-content: space-between; align-items: baseline; }
.mvrv-head span:first-child { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--pico-muted-color); }
.mvrv-z { font-size: 1.7rem; font-weight: 800; }
.mvrv-scale { position: relative; height: 8px; border-radius: 4px; margin: 0.6rem 0 0.2rem;
  background: linear-gradient(90deg, #2ecc71 0%, #d9c441 45%, #e2a03f 70%, #e5484d 100%); }
.mvrv-marker { position: absolute; top: -3px; width: 3px; height: 14px; background: #fff;
  border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 3px #000; }
.mvrv-scale-labels { display: flex; justify-content: space-between; font-size: 0.65rem;
  color: var(--pico-muted-color); margin-bottom: 0.4rem; }
.mvrv-meta { font-size: 0.72rem; color: var(--pico-muted-color); margin-top: 0.3rem; }
.sig { border: 1px solid var(--pico-muted-border-color); border-left-width: 3px;
  border-radius: var(--pico-border-radius); padding: 0.7rem 0.8rem; margin-bottom: 0.6rem;
  background: var(--pico-card-background-color); box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.sig:active { background: var(--pico-card-sectioning-background-color); }
.sig-chip { display: inline-block; margin: 0.12rem 0.12rem 0 0; }
.attn-badge { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em;
  background: #4ea1ff22; color: #7cc0ff; border: 1px solid #4ea1ff44;
  padding: 0.05rem 0.4rem; border-radius: 1rem; margin-left: 0.35rem; vertical-align: middle; }
.sig-top { display: flex; justify-content: space-between; align-items: baseline; }
.sig-ticker { font-weight: 700; font-size: 1.05rem; }
.sig-price { font-weight: 600; color: var(--pico-muted-color); font-size: 0.9rem; }
.sig-chips { margin: 0.3rem 0; }
.sig-chip { font-size: 0.72rem; background: var(--pico-card-sectioning-background-color);
  padding: 0.1rem 0.45rem; border-radius: 0.5rem; }
.sig-row { display: flex; justify-content: space-between; font-size: 0.84rem; margin-top: 0.2rem; }
.sig-zone { font-size: 0.9rem; margin-top: 0.3rem; font-weight: 600; }
.exh-badge { font-size: 0.82rem; font-weight: 700; margin-top: 0.4rem; }
.exh-row { font-size: 0.72rem; color: var(--pico-muted-color); margin-top: 0.15rem; }

/* events feed */
.tab-events.active { color: #4ea1ff; box-shadow: inset 0 2px 0 #4ea1ff; font-weight: 600; }
.ev-toggle { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem;
  color: var(--pico-muted-color); margin-bottom: 0.6rem; }
.ev-toggle input { width: auto; margin: 0; }
.push-bar { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.7rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--pico-muted-border-color); }
.push-bar .btn-sm { width: auto; align-self: flex-start; }
#push-status { font-size: 0.75rem; }
.ev { display: block; text-decoration: none; color: inherit; border: 1px solid var(--pico-muted-border-color);
  border-left-width: 4px; border-radius: var(--pico-border-radius); padding: 0.6rem 0.7rem; margin-bottom: 0.55rem; }
.ev.dir-bull { border-left-color: #2ecc71; }
.ev.dir-bear { border-left-color: #e5484d; }
.ev.dir-neutral { border-left-color: var(--pico-muted-border-color); }
.ev-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.ev-tags { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.ev-asset { font-weight: 700; font-size: 0.85rem; }
.ev-type, .ev-dir { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--pico-card-sectioning-background-color); padding: 0.05rem 0.4rem; border-radius: 0.5rem; }
.ev-sev { font-size: 0.72rem; font-weight: 700; color: #e2a03f; }
.ev-headline { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.ev-summary { font-size: 0.82rem; color: var(--pico-muted-color); margin-top: 0.2rem; }
.ev-meta { font-size: 0.7rem; color: var(--pico-muted-color); margin-top: 0.35rem; }
.ev-enrich { margin-top: 0.4rem; padding: 0.4rem 0.5rem; border-radius: 0.4rem;
  background: var(--pico-card-sectioning-background-color); font-size: 0.82rem; line-height: 1.35; }
.enrich-badge { display: inline-block; font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.03em; color: #2ecc71; margin-bottom: 0.2rem; }
.enrich-badge.unconfirmed { color: #e2a03f; }
.enrich-impact { margin-top: 0.25rem; font-weight: 600; }
.setprice { width: auto; margin: 0; padding: 0.1rem 0.5rem; font-size: 0.72rem;
  background: #e2a03f22; color: #e2a03f; border: 1px solid #e2a03f55; border-radius: 0.5rem; }
dialog article { max-width: 90vw; width: 460px; }
dialog label { margin-bottom: 0.4rem; }

/* thesis */
.thesis-card { border: 1px solid var(--pico-muted-border-color); border-left-width: 4px;
  border-radius: var(--pico-border-radius); padding: 0.65rem 0.75rem; margin-bottom: 0.55rem; cursor: pointer; }
.thesis-card:active { background: var(--pico-card-sectioning-background-color); }
.thesis-card.intact { border-left-color: #2ecc71; }
.thesis-card.evolving { border-left-color: #e2a03f; }
.thesis-card.weakening { border-left-color: #e5484d99; }
.thesis-card.broken { border-left-color: #e5484d; }
.thesis-top { display: flex; justify-content: space-between; align-items: center; }
.thesis-ticker { font-weight: 700; font-size: 1.05rem; }
.thesis-badge { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.08rem 0.5rem; border-radius: 1rem; }
.thesis-badge.intact { background: #2ecc7122; color: #2ecc71; }
.thesis-badge.evolving { background: #e2a03f22; color: #e2a03f; }
.thesis-badge.weakening { background: #e5484d22; color: #e5484d; }
.thesis-badge.broken { background: #e5484d44; color: #e5484d; font-weight: 700; }
.thesis-strength-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }
.thesis-str-num { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.thesis-str-denom { font-size: 0.7rem; font-weight: normal; color: var(--pico-muted-color); }
.thesis-str-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--pico-muted-border-color); }
.thesis-str-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.thesis-what { font-size: 0.84rem; color: var(--pico-muted-color); margin-top: 0.35rem; line-height: 1.4; }
.thesis-body { margin-top: 0.75rem; border-top: 1px solid var(--pico-muted-border-color); padding-top: 0.65rem; }
.thesis-field { margin-bottom: 0.65rem; }
.thesis-field h5 { margin: 0 0 0.2rem; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--pico-muted-color); }
.thesis-field p { margin: 0; font-size: 0.86rem; line-height: 1.45; }
.thesis-impact { margin-top: 0.3rem !important; color: var(--pico-muted-color); font-size: 0.82rem !important; }
.thesis-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.4rem;
  border-top: 1px solid var(--pico-muted-border-color); }
.thesis-meta { font-size: 0.68rem; color: var(--pico-muted-color); }

/* macro intel */
.macro-tone-card { border: 1px solid var(--pico-muted-border-color); border-left-width: 4px;
  border-radius: var(--pico-border-radius); padding: 0.75rem 0.8rem; margin-bottom: 0.8rem;
  background: var(--pico-card-sectioning-background-color); }
.macro-tone-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.macro-tone-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.macro-scan-date { font-size: 0.7rem; }
.macro-narrative { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.macro-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.9rem; }
.macro-stat { background: var(--pico-card-sectioning-background-color);
  border-radius: 0.6rem; padding: 0.6rem 0.5rem; text-align: center; }
.macro-stat-v { display: block; font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.macro-stat-l { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--pico-muted-color); margin-top: 0.25rem; }
.macro-events-section { margin-top: 0.2rem; }
.macro-events-header { display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--pico-muted-color); margin-bottom: 0.5rem; }
.macro-event { display: grid; grid-template-columns: 5.5rem 1fr 3rem;
  gap: 0.4rem; align-items: baseline; padding: 0.45rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color); font-size: 0.84rem; }
.macro-event:last-child { border-bottom: none; }
.macro-ev-date { font-size: 0.72rem; color: var(--pico-muted-color); white-space: nowrap; }
.macro-ev-name { line-height: 1.3; }
.macro-ev-rel { font-size: 0.68rem; text-align: right; text-transform: uppercase; letter-spacing: 0.03em; }

/* unified position intelligence view */
.intel-thesis-card { border: 1px solid var(--pico-muted-border-color); border-left-width: 4px;
  border-radius: var(--pico-border-radius); padding: 0.75rem 0.8rem; margin-bottom: 0.5rem;
  background: var(--pico-card-sectioning-background-color); }
.intel-thesis-empty { border-left-color: var(--pico-muted-border-color); }
.intel-thesis-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem; }
.intel-status-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.intel-strength-row { display: flex; align-items: center; gap: 0.4rem; }
.intel-str-num { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.intel-str-denom { font-size: 0.65rem; font-weight: normal; color: var(--pico-muted-color); }
.intel-str-bar { width: 70px; height: 4px; border-radius: 2px; background: var(--pico-muted-border-color); }
.intel-str-bar div { height: 100%; border-radius: 2px; }
.intel-what { margin: 0 0 0.6rem; font-size: 0.88rem; line-height: 1.45; }
.intel-field { margin-bottom: 0.6rem; }
.intel-field h5 { margin: 0 0 0.15rem; font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--pico-muted-color); }
.intel-field p { margin: 0; font-size: 0.84rem; line-height: 1.45; }
.intel-catalyst { border-left: 3px solid; padding: 0.4rem 0.55rem; border-radius: 0 0.4rem 0.4rem 0;
  background: var(--pico-background-color); margin: 0.5rem 0; font-size: 0.84rem; line-height: 1.4; }
.intel-catalyst-label { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; margin-bottom: 0.2rem; }
.intel-thesis-foot { display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.55rem; padding-top: 0.4rem; border-top: 1px solid var(--pico-muted-border-color); }
.pos-thesis-badge { margin-left: 0.3rem; vertical-align: middle; }
