/* ═══════════════════════════════════════════════════════
   Institutional 13F Panel (inst-)
   All font sizes +2px vs original
   ═══════════════════════════════════════════════════════ */

/* Overlay backdrop */
.inst-overlay {
  position: fixed; inset: 0;
  background: var(--overlay-bg);
  z-index: 200; display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(var(--overlay-blur));
}
.inst-overlay.open { display: flex; animation: instFadeIn .15s ease; }

@keyframes instFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Panel */
.inst-panel {
  width: 96vw; max-width: 1700px;
  height: 90vh;
  background: var(--panel);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: row;
  box-shadow: var(--overlay-shadow);
  overflow: hidden;
  animation: instSlideIn .2s ease;
}
@keyframes instSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Left sidebar ── */
.inst-sidebar {
  width: 240px; min-width: 240px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 24px 16px;
  overflow: hidden;
}
.inst-logo {
  font-family: var(--font-ui);
  font-weight: 800; font-size: 1.07rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-bright); margin-bottom: 2px;
}
.inst-logo-sub {
  font-family: var(--font-ui);
  font-size: .90rem; color: var(--text-muted);
  margin-bottom: 24px; letter-spacing: .03em;
}
.inst-sb-search {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--text);
  font-family: var(--font-ui); font-size: .96rem; outline: none;
  margin-bottom: 24px; transition: border-color var(--ease);
}
.inst-sb-search:focus { border-color: var(--text-muted); }
.inst-sb-search::placeholder { color: var(--text-muted); }
.inst-sb-scroll { flex: 1; overflow-y: auto; }
.inst-sb-group { margin-bottom: 20px; }
.inst-nav-label {
  font-family: var(--font-ui);
  font-size: .84rem; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: .14em; margin-bottom: 8px; display: block; font-weight: 600;
}
.inst-sb-item {
  padding: 6px 8px; border-radius: 4px; color: var(--text-dim);
  font-family: var(--font-ui); font-size: .96rem; cursor: pointer;
  transition: var(--ease); display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1px;
}
.inst-sb-item:hover { color: var(--text-bright); }
.inst-sb-item.active {
  color: var(--text-bright); font-weight: 600;
  background: var(--hover-medium); border-radius: 4px;
}

/* ── Main content ── */
.inst-main {
  flex: 1; overflow-y: auto; position: relative;
  display: flex; flex-direction: column;
}
.inst-header-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center;
  padding: 0 20px; gap: 8px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; min-height: 48px;
}
.inst-header-tabs { display: flex; gap: 0; height: 100%; align-self: stretch; }
.inst-header-tab {
  padding: 12px 20px; border: none; background: transparent;
  color: var(--text-muted); font-family: var(--font-ui); font-size: .95rem;
  font-weight: 500; cursor: pointer; transition: color var(--ease);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.inst-header-tab:hover { color: var(--text-bright); }
.inst-header-tab.active {
  color: var(--text-bright); font-weight: 700;
  border-bottom-color: var(--text-bright);
}
.inst-close {
  width: 26px; height: 26px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-dim); font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.inst-close:hover { background: var(--hover-medium); color: var(--text-bright); }

/* Back arrow */
.inst-back {
  border: none; background: transparent; color: var(--text-dim);
  font-size: 1.3rem; cursor: pointer; padding: 4px 8px;
  border-radius: var(--radius-sm); transition: var(--ease);
  line-height: 1; display: flex; align-items: center;
}
.inst-back:hover { background: var(--hover-medium); color: var(--text-bright); }

/* ── Landing Page ── */
.inst-landing { padding: 36px 44px 48px; flex: 1; overflow-y: auto; }

.inst-land-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 28px; margin-bottom: 28px;
}
.inst-land-hero { margin-bottom: 0; }
.inst-land-hero h1 {
  font-family: var(--font-ui);
  font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em;
  line-height: 1.05; margin-bottom: 12px; color: var(--text-bright);
}
.inst-land-hero h1 span {
  border-bottom: 3px solid var(--text-bright); padding-bottom: 2px;
}
.inst-land-hero p {
  font-family: var(--font-ui);
  font-size: 1.04rem; color: var(--text-dim); max-width: 400px;
  line-height: 1.7; font-weight: 400;
}

/* Filing calendar box */
.inst-calendar {
  flex-shrink: 0; padding: 14px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; gap: 24px; align-items: flex-start;
}

.inst-land-view { display: none; }
.inst-land-view.show { display: block; }

/* Section labels */
.inst-land-section { margin-bottom: 40px; }
.inst-land-label {
  font-family: var(--font-ui);
  font-size: .84rem; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: .14em; font-weight: 600; margin-bottom: 14px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}

/* ── Fund Cards Grid ── */
.inst-fund-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.inst-fund-card {
  padding: 20px; cursor: pointer; transition: background var(--ease), border-color var(--ease);
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); min-height: 155px; display: flex;
  flex-direction: column; justify-content: space-between;
}
.inst-fund-card:hover { background: var(--border); border-color: var(--border-hi); }
.inst-fund-card-badge {
  font-family: var(--font-ui);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: var(--text-muted); margin-bottom: 10px; display: block;
}
.inst-fund-card-top { display: flex; align-items: center; gap: 12px; }
.inst-fund-logo { width: 42px; height: 42px; flex-shrink: 0; }
.inst-fund-logo svg { width: 100%; height: 100%; }
.inst-fund-card-name {
  font-family: var(--font-ui);
  font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2px;
  color: var(--text-bright);
}
.inst-fund-card-manager {
  font-family: var(--font-ui);
  font-size: .94rem; color: var(--text-dim); font-weight: 400;
}
.inst-fund-card-bottom {
  margin-top: 14px; display: flex; justify-content: space-between;
  align-items: flex-end; padding-right: 28px;
}
.inst-fund-card-aum {
  font-family: var(--font-ui);
  font-size: 1.22rem; font-weight: 700; color: var(--text-bright);
}
.inst-fund-card-tag {
  font-family: var(--font-ui);
  font-size: .84rem; font-weight: 600; color: var(--text-muted);
  padding: 2px 6px; border: 1px solid var(--border); border-radius: 3px;
  text-transform: uppercase; letter-spacing: .04em;
}
.inst-fund-card-arrow {
  position: absolute; bottom: 22px; right: 20px;
  font-size: 1.4rem; color: var(--border); transition: var(--ease);
}
.inst-fund-card:hover .inst-fund-card-arrow {
  color: var(--text-bright); transform: translateX(4px);
}

/* ── Detail View ── */
.inst-detail { display: none; flex-direction: column; flex: 1; min-height: 0; }
.inst-detail.show { display: flex; }
.inst-detail-scroll { flex: 1; overflow-y: auto; padding: 28px 40px 40px; }

.inst-det-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.inst-det-badge {
  color: var(--text-muted); font-family: var(--font-ui);
  font-size: .90rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; display: block; margin-bottom: 6px;
}
.inst-det-header h1 {
  font-family: var(--font-ui);
  font-size: 2rem; font-weight: 900; letter-spacing: -.04em;
  color: var(--text-bright);
}
.inst-det-sub {
  color: var(--text-dim); font-family: var(--font-ui);
  font-size: .96rem; margin-top: 4px;
}

/* Detail tabs */
.inst-det-tabs {
  display: flex; gap: 0; margin-bottom: 28px;
  border-bottom: 1px solid var(--border); width: fit-content;
}
.inst-det-tab {
  padding: 8px 18px; border: none; background: transparent;
  color: var(--text-muted); font-family: var(--font-ui); font-size: .96rem;
  font-weight: 500; cursor: pointer; transition: var(--ease);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.inst-det-tab:hover { color: var(--text-bright); }
.inst-det-tab.active {
  color: var(--text-bright); font-weight: 700;
  border-bottom-color: var(--text-bright);
}

/* Stats grid */
.inst-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.inst-stat-card {
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.inst-stat-label {
  font-family: var(--font-ui);
  font-size: .84rem; text-transform: uppercase; color: var(--text-muted);
  letter-spacing: .1em; font-weight: 600; margin-bottom: 6px;
}
.inst-stat-val {
  font-family: var(--font-ui);
  font-size: 1.62rem; font-weight: 700; color: var(--text-bright);
}
.inst-stat-sub {
  font-family: var(--font-ui);
  font-size: .90rem; margin-top: 4px;
}

/* Dashboard grid (holdings + right column) */
.inst-dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }

/* Holdings panel — stretches to match right column height, scrolls internally */
.inst-holdings-panel {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; background: var(--card);
  display: flex; flex-direction: column;
  min-height: 0;
}
.inst-dash-grid { align-items: start; }
.inst-dash-grid > .inst-holdings-panel { align-self: stretch; }
.inst-holdings-scroll {
  flex: 1; overflow-y: auto; min-height: 0;
}
.inst-holdings-scroll::-webkit-scrollbar { width: 4px; }
.inst-holdings-scroll::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

.inst-panel-box {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; background: var(--card);
}
.inst-panel-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.inst-panel-title {
  font-family: var(--font-ui);
  font-weight: 800; font-size: 1.04rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-bright);
}
.inst-panel-meta {
  font-family: var(--font-ui);
  font-size: .90rem; color: var(--text-muted);
}

/* Holdings table */
.inst-h-table { width: 100%; border-collapse: collapse; }
.inst-h-table th {
  text-align: left; color: var(--text-muted); font-family: var(--font-ui);
  font-size: .84rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 12px; border-bottom: 1px solid var(--border); font-weight: 600;
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.inst-h-table th.r { text-align: right; }
.inst-h-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--hover-subtle);
  font-family: var(--font-ui); font-size: .96rem;
}
.inst-h-table td.r { text-align: right; }
.inst-h-table tbody tr { cursor: pointer; transition: background var(--ease); }
.inst-h-table tbody tr:hover { background: var(--hover-subtle); }
.inst-tk {
  color: var(--text-bright); font-size: 1rem; font-weight: 700;
  font-family: var(--font-ui); letter-spacing: .02em;
}
.inst-nm { font-weight: 400; color: var(--text-dim); }
.inst-mono { font-family: var(--font-ui); }
.inst-badge-sm {
  font-family: var(--font-ui);
  font-size: .84rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em;
}
.inst-badge-new { color: var(--green); }
.inst-badge-trim { color: var(--red); }
.inst-badge-add { color: var(--blue); }
.inst-badge-hold { color: var(--text-muted); }

/* Source tags */
.inst-src {
  font-size: .82rem; font-weight: 700; padding: 1px 4px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .05em; display: inline-block;
  font-family: var(--font-ui);
}
.inst-src-13f { color: var(--text-muted); border: 1px solid var(--border); }
.inst-src-f4 { color: var(--amber); border: 1px solid rgba(255,184,51,.3); }

/* ── Donut Chart ── */
.inst-donut-area { display: flex; flex-direction: column; align-items: center; padding: 10px 0; }
.inst-donut-wrap { position: relative; width: 170px; height: 170px; margin-bottom: 16px; }
.inst-donut-svg { width: 170px; height: 170px; transform: rotate(-90deg); }
.inst-donut-ring { fill: none; stroke-width: 6; stroke-linecap: butt; }
.inst-donut-bg { fill: none; stroke: var(--divider-soft); stroke-width: 6; }
.inst-donut-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); text-align: center;
}
.inst-donut-center-val {
  font-family: var(--font-ui); font-size: 1.52rem; font-weight: 800;
  color: var(--text-bright);
}
.inst-donut-center-lbl {
  font-family: var(--font-ui); font-size: .88rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.inst-legend { width: 100%; }
.inst-legend-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-family: var(--font-ui);
  font-size: .92rem; color: var(--text-dim);
}
.inst-legend-left { display: flex; align-items: center; gap: 6px; }
.inst-legend-dot { width: 3px; height: 12px; border-radius: 1px; flex-shrink: 0; }
.inst-legend-pct {
  font-family: var(--font-ui); font-weight: 700;
  color: var(--text-bright); font-size: .90rem;
}

/* ── Recent Activity compact ── */
.inst-rf-compact { display: flex; flex-direction: column; gap: 0; }
.inst-rf-c {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--hover-subtle);
}
.inst-rf-c:last-child { border-bottom: none; }
.inst-rf-c-date {
  font-family: var(--font-ui); font-size: .88rem;
  color: var(--text-muted); width: 56px; flex-shrink: 0;
}
.inst-rf-c-act {
  margin-left: auto; font-family: var(--font-ui);
  font-size: .88rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
}
.inst-rf-sell { color: var(--red); }
.inst-rf-buy { color: var(--green); }

/* ── Changes Tab ── */
.inst-changes-area { display: none; }
.inst-changes-area.show { display: block; }
.inst-ch-period {
  display: inline-block; font-family: var(--font-ui);
  font-size: .94rem; color: var(--text-dim); margin-bottom: 28px;
  font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.inst-ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inst-ch-panel {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.inst-ch-panel-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.inst-ch-panel-title {
  font-family: var(--font-ui);
  font-size: .90rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800;
}
.inst-ch-panel-count {
  font-family: var(--font-ui); font-size: .96rem; font-weight: 700;
}
.inst-ch-panel.inst-ch-new .inst-ch-panel-title,
.inst-ch-panel.inst-ch-new .inst-ch-panel-count { color: var(--green); }
.inst-ch-panel.inst-ch-up .inst-ch-panel-title,
.inst-ch-panel.inst-ch-up .inst-ch-panel-count { color: var(--blue); }
.inst-ch-panel.inst-ch-down .inst-ch-panel-title,
.inst-ch-panel.inst-ch-down .inst-ch-panel-count { color: var(--red); }
.inst-ch-panel.inst-ch-exit .inst-ch-panel-title,
.inst-ch-panel.inst-ch-exit .inst-ch-panel-count { color: var(--text-muted); }
.inst-ch-panel.inst-ch-new { background: var(--green-dim); }
.inst-ch-panel.inst-ch-up { background: var(--blue-dim); }
.inst-ch-panel.inst-ch-down { background: var(--red-dim); }
.inst-ch-panel.inst-ch-exit { background: rgba(92, 97, 128, .05); }
.inst-ch-row {
  display: flex; align-items: center; padding: 10px 18px;
  border-bottom: 1px solid var(--hover-subtle); cursor: pointer;
  transition: background var(--ease);
}
.inst-ch-row:last-child { border-bottom: none; }
.inst-ch-row:hover { background: var(--hover-subtle); }
.inst-ch-row-name {
  flex: 1; font-family: var(--font-ui); font-size: .94rem;
  color: var(--text-dim); min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.inst-ch-row-val {
  text-align: right; font-family: var(--font-ui);
  font-size: .94rem; font-weight: 700; width: 72px; flex-shrink: 0; margin-left: 10px;
}
.inst-ch-row-shares {
  text-align: right; font-family: var(--font-ui);
  font-size: .84rem; color: var(--text-muted); width: 110px;
  flex-shrink: 0; margin-left: 10px;
}

/* ── Status Bar ── */
.inst-status-bar {
  padding: 8px 40px; border-top: 1px solid var(--border);
  display: flex; gap: 20px; font-family: var(--font-ui);
  font-size: .82rem; color: var(--text-muted); flex-shrink: 0;
}
.inst-status-bar strong { color: var(--text-dim); font-weight: 700; }
.inst-st-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--green);
  display: inline-block; margin-right: 3px;
}

/* ── Insider Activity Table ── */
.inst-ins-table { width: 100%; border-collapse: collapse; }
.inst-ins-table th {
  text-align: left; color: var(--text-muted); font-family: var(--font-ui);
  font-size: .84rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 12px; border-bottom: 1px solid var(--border); font-weight: 600;
  cursor: pointer; user-select: none; transition: color var(--ease);
}
.inst-ins-table th:hover { color: var(--text-bright); }
.inst-ins-table th.r { text-align: right; }
.inst-ins-table th.sorted { color: var(--text-bright); }
.inst-ins-table th .sort-arrow { font-size: .82rem; margin-left: 3px; opacity: .4; }
.inst-ins-table th.sorted .sort-arrow { opacity: 1; }
.inst-ins-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--hover-subtle);
  font-family: var(--font-ui); font-size: .94rem;
}
.inst-ins-table td.r { text-align: right; }
.inst-ins-table tbody tr { cursor: pointer; transition: background var(--ease); }
.inst-ins-table tbody tr:hover { background: var(--hover-subtle); }

/* Sort buttons */
.inst-sort-btn {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 4px;
  background: transparent; color: var(--text-muted); font-family: var(--font-ui);
  font-size: .84rem; font-weight: 600; cursor: pointer; transition: all var(--ease);
}
.inst-sort-btn:hover { color: var(--text-bright); border-color: var(--border-hi); }
.inst-sort-btn.active {
  color: var(--text-bright); background: var(--hover-medium);
  border-color: var(--surface-border-hi);
}

/* Search box */
.inst-search-input {
  width: 100%; padding: 7px 10px 7px 28px;
  background: var(--divider-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-ui); font-size: .90rem; outline: none;
  margin-bottom: 10px; transition: border-color var(--ease);
}
.inst-search-input:focus { border-color: var(--blue); }
.inst-search-wrap { position: relative; }
.inst-search-wrap::before {
  content: '\1F50D'; position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%); font-size: .82rem; opacity: .4; pointer-events: none;
}

/* ── Sentiment Panel ── */
.inst-sentiment {
  display: flex; flex-direction: column; padding: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 24px; overflow: hidden;
}
.inst-sent-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 1px solid var(--border);
}
.inst-sent-title {
  font-family: var(--font-ui); font-size: .90rem; font-weight: 700;
  color: var(--text-bright); text-transform: uppercase; letter-spacing: .06em;
}
.inst-sent-controls { display: flex; gap: 6px; }
.inst-hdr-select {
  padding: 4px 24px 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--divider-soft); color: var(--text-bright); font-family: var(--font-ui);
  font-size: .84rem; font-weight: 600; cursor: pointer; transition: border-color var(--ease);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.inst-hdr-select:hover { border-color: var(--border-hi); }
.inst-hdr-select:focus { outline: none; border-color: var(--blue); }
.inst-hdr-select option { background: var(--card); color: var(--text-bright); }
.inst-sent-body { display: flex; align-items: center; gap: 28px; padding: 20px; }

/* ── Insider Detail Modal ── */
.inst-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: var(--overlay-bg); backdrop-filter: blur(6px);
  justify-content: center; align-items: center;
}
.inst-modal-overlay.open { display: flex; }
.inst-modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 580px; max-width: 92vw;
  max-height: 82vh; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: var(--overlay-shadow);
}
.inst-modal-head {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.inst-modal-title {
  font-family: var(--font-ui); font-size: 1.28rem; font-weight: 700;
  color: var(--text-bright);
}
.inst-modal-title .inst-modal-ticker { color: var(--blue); margin-right: 6px; }
.inst-modal-title .inst-modal-name {
  color: var(--text-dim); font-weight: 400; font-size: 1rem;
  display: block; margin-top: 2px;
}
.inst-modal-close {
  width: 26px; height: 26px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-dim); font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.inst-modal-close:hover { background: var(--hover-medium); color: var(--text-bright); }
.inst-modal-summary {
  padding: 12px 22px; display: flex; gap: 18px;
  border-bottom: 1px solid var(--border); font-size: .92rem;
}
.inst-modal-stat { display: flex; flex-direction: column; gap: 2px; }
.inst-modal-stat label {
  color: var(--text-muted); font-family: var(--font-ui);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .4px;
}
.inst-modal-stat .val {
  font-family: var(--font-ui); font-weight: 700; font-size: 1.02rem;
  color: var(--text-bright);
}
.inst-modal-stat .val.green { color: var(--green); }
.inst-modal-stat .val.red { color: var(--red); }
.inst-modal-body { flex: 1; overflow-y: auto; padding: 0; }
.inst-modal-section { padding: 14px 22px 6px; }
.inst-modal-section-title {
  font-family: var(--font-ui);
  font-size: .86rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--text-muted); margin-bottom: 8px;
}
.inst-insider-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--divider-soft);
}
.inst-insider-row:last-child { border-bottom: none; }
.inst-insider-icon {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: .84rem; font-weight: 700;
  flex-shrink: 0;
}
.inst-insider-icon.buy { background: var(--green-dim); color: var(--green); }
.inst-insider-icon.sell { background: var(--red-dim); color: var(--red); }
.inst-insider-info { flex: 1; min-width: 0; }
.inst-insider-name {
  font-family: var(--font-ui); font-size: .96rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text-bright);
}
.inst-insider-role {
  font-family: var(--font-ui); font-size: .82rem;
  color: var(--text-muted); margin-top: 1px;
}
.inst-insider-vals { text-align: right; flex-shrink: 0; }
.inst-insider-amt { font-family: var(--font-ui); font-size: .96rem; font-weight: 700; }
.inst-insider-shares {
  font-family: var(--font-ui); font-size: .82rem;
  color: var(--text-muted); margin-top: 1px;
}

/* Empty state */
.inst-empty {
  padding: 20px 0; text-align: center; font-family: var(--font-ui);
  font-size: .90rem; color: var(--text-muted);
}
