/* 13D/G — premium depth skin (glass cards). Scoped to institutional lane only. */
body.inst-product-mode {
  background-color: #020617;
  background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
}

.shell.shell--inst {
  max-width: 1100px;
  border-left: none;
  border-right: none;
  box-shadow: none;
}

#lane-inst {
  --inst-bg-deep: #020617;
  --inst-surface: rgba(30, 41, 59, 0.4);
  --inst-surface-hover: rgba(30, 41, 59, 0.6);
  --inst-border: rgba(255, 255, 255, 0.08);
  --inst-border-hi: rgba(96, 165, 250, 0.3);
  --inst-text: #f8fafc;
  --inst-muted: #94a3b8;
  --inst-dim: #64748b;
  --inst-blue: #60a5fa;
  --inst-emerald: #34d399;
  --inst-rose: #fb7185;
  --inst-amber: #fbbf24;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#lane-inst .inst-lane-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

#lane-inst .inst-lane-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

#lane-inst .inst-lane-head-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

#lane-inst .inst-lane-head-top .inst-lane-page-title {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  line-height: 1.2;
}

#lane-inst .inst-nav-tabs,
#lane-inst .inst-day-pager--head {
  display: inline-flex;
  align-items: center;
  height: 2.125rem;
  box-sizing: border-box;
  gap: 0.25rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--inst-border);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

#lane-inst .inst-nav-tabs {
  flex: 0 0 auto;
}

#lane-inst .inst-day-pager--head {
  flex: 0 0 auto;
  justify-content: center;
  padding: 0.2rem 0.35rem;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.08) 0%, rgba(15, 23, 42, 0.55) 100%);
}

#lane-inst .inst-day-pager--head .inst-day-page-label {
  min-width: 6.25rem;
  text-align: center;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  color: var(--inst-dim);
}

#lane-inst .inst-day-pager--head .inst-day-pager-day {
  color: #e2e8f0;
  font-weight: 600;
}

#lane-inst .inst-day-pager--head .inst-day-pager-meta,
#lane-inst .inst-day-pager--head .inst-day-pager-sep {
  color: var(--inst-dim);
}

#lane-inst .inst-day-pager--head .inst-page-btn {
  width: auto;
  min-width: 1.65rem;
  height: 100%;
  padding: 0 0.15rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--inst-muted);
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  backdrop-filter: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#lane-inst .inst-day-pager--head .inst-page-btn:hover:not(:disabled) {
  color: var(--inst-blue);
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.12);
}

#lane-inst .inst-day-pager--head .inst-page-btn:disabled {
  opacity: 0.35;
}

#lane-inst .inst-nav-tab {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 0.7rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--inst-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: Inter, system-ui, sans-serif;
  white-space: nowrap;
}

#lane-inst .inst-nav-tab:hover {
  color: var(--inst-text);
}

#lane-inst .inst-nav-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--inst-text);
  border-color: var(--inst-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#lane-inst .inst-loading {
  color: var(--inst-muted);
  font-size: 0.88rem;
  padding: 1.5rem 0;
  text-align: center;
}

#lane-inst .inst-page-meta {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--inst-muted);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

#lane-inst .inst-meta-dot {
  width: 7px;
  height: 7px;
  background: var(--inst-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--inst-emerald);
  flex-shrink: 0;
}

#lane-inst .inst-meta-sep {
  color: var(--inst-dim);
}

#lane-inst .inst-briefing-gap {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--inst-dim);
  margin: 0;
  line-height: 1.4;
}

#lane-inst .inst-page-sub {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--inst-dim);
  margin: 0;
  line-height: 1.35;
}

#lane-inst .inst-page-sub[hidden] {
  display: none;
}

#lane-inst .inst-briefing-gap[hidden],
#lane-inst #inst-cards[hidden],
#lane-inst #inst-day-pager[hidden] {
  display: none;
}

#lane-inst .inst-digest-hero,
#lane-inst .inst-digest-day {
  display: none;
}

/* Highlights strip — same panel chrome as Form 4 top signals */
#lane-inst #inst-cards.alist-strip {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.02) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0.75rem 0 0.5rem;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

#lane-inst #inst-cards .inst-loading,
#lane-inst #inst-cards .empty-state {
  padding: 0.65rem 0.95rem;
  margin: 0;
}

#lane-inst .inst-depth-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 0;
  padding: 8px 10px;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.9rem;
  align-items: center;
  transition: background 0.12s ease;
}

#lane-inst .inst-depth-card:nth-child(even) {
  background: transparent;
}

#lane-inst .inst-depth-card:last-child {
  border-bottom: none;
}

#lane-inst .inst-depth-card--clickable {
  cursor: pointer;
}

#lane-inst .inst-depth-card--clickable:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.55);
  outline-offset: -2px;
}

#lane-inst .inst-depth-card:hover,
#lane-inst .inst-depth-card--clickable:hover {
  background: rgba(96, 165, 250, 0.06);
}

#lane-inst .inst-depth-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

#lane-inst .inst-depth-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

#lane-inst .inst-depth-issuer {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

#lane-inst .inst-depth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 0.2rem;
}

#lane-inst .inst-depth-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

#lane-inst .inst-depth-actions {
  align-self: center;
  flex-shrink: 0;
}

#lane-inst .inst-depth-rank {
  display: none;
}

#lane-inst .inst-depth-company {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

#lane-inst .inst-depth-ticker {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #60a5fa !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
}

#lane-inst .inst-stat-label {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  color: #64748b;
  margin-right: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#lane-inst .inst-stat-value {
  color: #94a3b8;
  font-weight: 400;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: normal;
}

#lane-inst .inst-stat-num {
  color: #cbd5e1;
  font-weight: 500;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
}

#lane-inst .inst-delta-up {
  color: var(--inst-emerald);
  font-weight: 600;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

#lane-inst .inst-delta-down {
  color: var(--inst-rose);
  font-weight: 600;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

#lane-inst .inst-tag {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

#lane-inst .inst-tag-active {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

#lane-inst .inst-tag-neutral {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

#lane-inst .inst-depth-note {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

#lane-inst .inst-glance-warn {
  font-size: 11px;
  color: var(--inst-amber);
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-left: 2px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
  border-radius: 4px;
  flex: 1 1 100%;
}

#lane-inst .inst-depth-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--inst-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--inst-border-hi);
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#lane-inst .inst-depth-card--clickable:hover .inst-depth-btn,
#lane-inst .inst-depth-card--clickable:focus-visible .inst-depth-btn {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--inst-text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.12);
}

@media (max-width: 720px) {
  #lane-inst .inst-lane-head-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  #lane-inst .inst-lane-head-top .inst-lane-page-title {
    flex: 1 1 100%;
  }
  #lane-inst .inst-lane-head-controls {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  #lane-inst .inst-depth-card {
    grid-template-columns: 1fr;
  }
  #lane-inst .inst-depth-actions {
    justify-self: start;
  }
}

#lane-inst .inst-depth-filed {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--inst-dim);
}

#lane-inst .inst-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2.5rem 0 0.35rem;
}

#lane-inst .inst-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--inst-text);
  margin: 0;
}

#lane-inst .inst-section-title.inst-lane-page-title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
}

#lane-inst .inst-section-count {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--inst-muted);
  background: var(--inst-surface);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--inst-border);
}

/* Tables — Form 4 terminal grid chrome (Option A alignment) */
#lane-inst .inst-table-wrap,
#lane-inst .scanner-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  overflow-anchor: none;
  background: #0c1018;
  border: 1px solid #2a3548;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#lane-inst .inst-table-wrap .tape-table,
#lane-inst .scanner-wrap .tape-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

#lane-inst .inst-table-wrap .tape-table th,
#lane-inst .scanner-wrap .tape-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: left;
  padding: 0.55rem 0.65rem;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #141c28;
  border-bottom: 1px solid #2a3548;
  white-space: nowrap;
}

#lane-inst .inst-sort-btn {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  user-select: none;
}

#lane-inst .inst-sort-btn:hover {
  color: #94a3b8;
}

#lane-inst .inst-sort-th.is-sorted .inst-sort-btn {
  color: #cbd5e1;
}

#lane-inst .inst-sort-indicator {
  margin-left: 0.2rem;
  font-size: 9px;
  line-height: 1;
  opacity: 0.45;
}

#lane-inst .inst-sort-th.is-sorted .inst-sort-indicator {
  opacity: 0.95;
  color: var(--inst-emerald);
}

#lane-inst .inst-table-wrap .tape-table td,
#lane-inst .scanner-wrap .tape-table td {
  background: #0c1018;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
  border-bottom: 1px solid #1a2230;
  padding: 6px 9px;
  vertical-align: middle;
}

#lane-inst .inst-table-wrap .tape-table tbody tr,
#lane-inst .scanner-wrap .tape-table tbody tr {
  transition: background 0.12s ease, color 0.12s ease;
}

#lane-inst .inst-table-wrap .tape-table tbody tr:nth-child(even) td,
#lane-inst .scanner-wrap .tape-table tbody tr:nth-child(even) td {
  background: #0a0e16;
}

#lane-inst .inst-table-wrap .tape-table tbody tr:hover td,
#lane-inst .scanner-wrap .tape-table tbody tr:hover td {
  background: #141c28;
  color: #e2e8f0;
}

#lane-inst .inst-table-wrap .tape-table tbody tr:last-child td,
#lane-inst .scanner-wrap .tape-table tbody tr:last-child td {
  border-bottom: none;
}

#lane-inst .inst-table-wrap .tape-table thead th:first-child,
#lane-inst .scanner-wrap .tape-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #141c28;
  box-shadow: 1px 0 0 #2a3548;
}

#lane-inst .inst-table-wrap .tape-ticker,
#lane-inst .scanner-wrap .tape-ticker {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--inst-blue) !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0c1018;
  box-shadow: 1px 0 0 #1a2230;
}

#lane-inst .inst-table-wrap .tape-table tbody tr:nth-child(even) .tape-ticker,
#lane-inst .scanner-wrap .tape-table tbody tr:nth-child(even) .tape-ticker {
  background: #0a0e16;
}

#lane-inst .inst-table-wrap .tape-table tbody tr:hover .tape-ticker,
#lane-inst .scanner-wrap .tape-table tbody tr:hover .tape-ticker {
  background: #141c28;
}

#lane-inst .inst-table-wrap .tape-ticker--na,
#lane-inst .scanner-wrap .tape-ticker--na {
  color: var(--inst-dim) !important;
  font-weight: 500;
}

#lane-inst .inst-table-wrap .tape-stake,
#lane-inst .inst-table-wrap .inst-share-delta,
#lane-inst .scanner-wrap .tape-stake {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  text-align: right;
}

#lane-inst .inst-table-wrap .tape-company {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
}

#lane-inst .inst-table-wrap .v-clear,
#lane-inst .inst-table-wrap .verdict-clear,
#lane-inst .scanner-wrap .v-clear,
#lane-inst .scanner-wrap .verdict-clear {
  color: var(--inst-emerald) !important;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

#lane-inst .inst-table-wrap .v-watch,
#lane-inst .inst-table-wrap .verdict-watch,
#lane-inst .scanner-wrap .v-watch,
#lane-inst .scanner-wrap .verdict-watch {
  color: var(--inst-amber) !important;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

#lane-inst .inst-stake-viz {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

#lane-inst .inst-stake-viz--modal {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

#lane-inst .inst-stake-viz-svg,
#inst-modal .inst-stake-viz-svg {
  flex: 1;
  width: 100%;
  display: block;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#inst-modal .inst-stake-viz--modal .inst-stake-viz-svg {
  height: 56px;
}

#lane-inst .inst-stake-viz-labels,
#inst-modal .inst-stake-viz-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--inst-dim);
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

#lane-inst .inst-stake-viz-labels span:nth-child(2),
#inst-modal .inst-stake-viz-labels span:nth-child(2) {
  color: rgba(251, 191, 36, 0.8);
}

#lane-inst .inst-share-delta {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--inst-muted);
  white-space: nowrap;
}

#lane-inst .tape-row-clickable {
  cursor: pointer;
}

#lane-inst .inst-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--inst-muted);
}

#lane-inst .inst-lane-head-top .inst-pagination {
  margin-top: 0;
}

#lane-inst .inst-pagination--mid {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

#lane-inst .inst-page-label {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--inst-muted);
}

#lane-inst .inst-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 6px;
  color: var(--inst-text);
  font-size: 1rem;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s;
}

#lane-inst .inst-page-btn:hover:not(:disabled) {
  border-color: var(--inst-blue);
  color: var(--inst-blue);
}

#lane-inst .inst-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#lane-inst .inst-quarterly-caption {
  font-size: 0.88rem;
  color: var(--inst-muted);
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

#lane-inst .pager,
#lane-inst .pager-btn,
#lane-inst .inst-digest-page {
  display: none;
}

#lane-inst #inst-issuer-panel {
  background: var(--inst-surface);
  backdrop-filter: blur(12px);
  border-color: var(--inst-border-hi);
  border-radius: 12px;
}

#lane-inst .focus-lookup input {
  background: rgba(15, 23, 42, 0.65);
  border-color: var(--inst-border);
  border-radius: 6px;
  color: var(--inst-text);
  padding: 0.45rem 0.65rem;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  width: 100px;
}

#lane-inst #inst-ticker-go {
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--inst-border);
  color: var(--inst-text);
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

#inst-modal {
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#inst-modal .inst-modal-box {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 600px;
  width: min(600px, calc(100vw - 2rem));
  max-height: min(88vh, 820px);
  overflow-y: auto;
}

#inst-modal .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

#inst-modal .modal-title {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

#inst-modal .modal-close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

#inst-modal .modal-close:hover {
  color: #fb7185;
}

#inst-modal .modal-meta {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.45;
}

#inst-modal .modal-signal {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}

#inst-modal .modal-signal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

#inst-modal .modal-signal-score {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
}

#inst-modal .modal-signal-label {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c4b5fd;
}

#inst-modal .modal-signal-badge {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 99px;
  padding: 0.2rem 0.55rem;
}

#inst-modal .modal-signal-lead {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0 0 0.65rem;
}

#inst-modal .modal-signal-lead strong {
  color: #f8fafc;
  font-weight: 600;
}

#inst-modal .modal-signal-verdict {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

#inst-modal .modal-signal-action {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #93c5fd;
  margin: 0 0 0.75rem;
}

#inst-modal .modal-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

#inst-modal .modal-signal-stat {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
}

#inst-modal .modal-signal-k {
  display: block;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

#inst-modal .modal-signal-v {
  font-family: Inter, system-ui, sans-serif;
  color: #f1f5f9;
  font-weight: 500;
}

#inst-modal .modal-delta-up {
  color: #34d399;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

#inst-modal .modal-delta-down {
  color: #fb7185;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

#inst-modal .modal-signal-activity {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.35rem 0 0;
}

#inst-modal .modal-signal-history {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#inst-modal .modal-signal-history ul {
  font-family: Inter, system-ui, sans-serif;
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
}

#inst-modal .modal-signal-explainer {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid rgba(96, 165, 250, 0.45);
  background: rgba(30, 58, 95, 0.2);
  border-radius: 0 6px 6px 0;
}

#inst-modal .modal-signal-explainer strong {
  color: #e2e8f0;
}

#inst-modal .modal-signal-price {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0 0 0.65rem;
}

#inst-modal .modal-ownership {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#inst-modal .modal-ownership-chart {
  width: 100%;
  height: 100px;
  display: block;
  margin-top: 0.45rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#inst-modal .inst-stake-viz--modal {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#inst-modal .modal-ownership-snapshot {
  width: 100%;
  height: 56px;
  display: block;
  margin-top: 0.45rem;
}

#inst-modal .modal-ownership-caption {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0.35rem 0 0;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

#inst-modal .modal-ownership-cap {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

#inst-modal .modal-ownership-labels--snapshot span:nth-child(2) {
  color: rgba(251, 191, 36, 0.75);
}

#inst-modal .modal-ownership-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.35rem;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

#inst-modal .modal-intent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.65rem;
}

#inst-modal .modal-intent-pill {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

#inst-modal .modal-signal-price--na {
  color: #64748b;
  font-style: italic;
}

#inst-modal .modal-spac-warn {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  color: #fde68a;
  border-left: 2px solid rgba(251, 191, 36, 0.5);
  padding: 0.45rem 0 0.45rem 0.65rem;
  margin: 0.5rem 0 0;
  line-height: 1.45;
}

#inst-modal .modal-signal-note {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.65rem 0 0;
  font-style: italic;
  line-height: 1.45;
}

#inst-modal .modal-signal[hidden] {
  display: none;
}

#inst-modal .modal-signal-verdict .modal-signal-k,
#inst-modal .modal-signal-prior .modal-signal-k {
  display: inline;
  margin-right: 0.35rem;
}

#inst-modal .modal-signal-cluster,
#inst-modal .modal-signal-prior {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.84rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
  line-height: 1.45;
}

#inst-modal .modal-body {
  font-size: 0.9rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  color: #94a3b8;
  max-height: min(42vh, 360px);
  overflow-y: auto;
}

#inst-modal .modal-body-text {
  font-family: Inter, system-ui, sans-serif;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

#inst-modal .modal-body-kicker {
  display: block;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

#inst-modal .modal-body-tags {
  display: block;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

#inst-modal .modal-body-warn {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  color: #fde68a;
  border-left: 2px solid rgba(251, 191, 36, 0.5);
  padding-left: 0.65rem;
  margin: 0.65rem 0 0;
}

#inst-modal .modal-body-empty {
  font-family: Inter, system-ui, sans-serif;
  color: #64748b;
  font-size: 0.88rem;
}

#inst-modal .inst-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: Inter, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

#inst-modal .inst-modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #60a5fa;
  color: #60a5fa;
}

#lane-inst .inst-depth-footer .inst-tag + .inst-tag {
  margin-left: 0;
}
