/* === HYPERION CONSOLIDATED DEFI COMPONENTS ==*/
.hyperion-defi-shell {
  color: var(--hyper-text, #111827);
}
:root {
  --font-mono:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Courier New", monospace;
  --font-sans: "Space Grotesk", "Helvetica Neue", sans-serif;
}
.badge-defi {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f3f4f6;
  color: #111827;
}
.badge-defi-success,
.status-intact,
.ranked-side-long {
  background: #ecfdf5;
  color: #047857;
}
.badge-defi-danger,
.status-broken,
.ranked-side-short {
  background: #fef2f2;
  color: #b91c1c;
}
.badge-defi-warning,
.status-weakening {
  background: #fffbeb;
  color: #b45309;
}
.btn-defi-cta,
.defi-home-cta,
.defi-empty-state-cta,
.llm-generate-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--defi-line-strong, rgba(16, 207, 189, 0.34));
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-button-text, #ffffff) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.btn-defi-cta:hover,
.defi-home-cta:hover,
.defi-empty-state-cta:hover,
.llm-generate-trigger:hover {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.15);
  color: var(--defi-button-text, #ffffff) !important;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-defi-cta--secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--defi-muted, #94a3b8) !important;
}
.btn-defi-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

.card-defi {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 16px 18px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  color: #111827;
}
.card-defi:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.card-defi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f1f5;
}
.card-defi-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111827;
}
.stat-defi {
  display: flex;
  flex-direction: column;
}
.stat-defi-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}
.stat-defi-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tracking-wide {
  letter-spacing: 0.05em;
}
.uppercase {
  text-transform: uppercase;
}
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-thumb {
  background: #10cfbd;
  border-radius: 0;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.card-defi-dark .card-body {
  background: transparent;
  color: var(--hyper-text);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 991px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
}
.stat-defi-mini {
  background: #ffffff;
  border: 1px solid var(--hyper-border);
  border-radius: 5px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theses-list,
.pillars-grid,
.pillar-stocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pillars-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.thesis-card {
  padding: 14px 16px;
  border: 1px solid var(--hyper-border);
  border-radius: 5px;
  background: #ffffff;
}
.thesis-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.thesis-card-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.thesis-card-rank {
  display: flex;
  align-items: center;
  gap: 12px;
}
.thesis-card-rank-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--hyper-text);
  line-height: 1;
}
.thesis-card-impact {
  font-size: 14px;
  font-weight: 700;
  color: var(--hyper-text);
}
.thesis-card-composite {
  font-size: 10px;
  color: var(--hyper-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.thesis-card-statement {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hyper-text);
  margin: 8px 0 12px;
}
.thesis-card-confidences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.confidence-bar {
  display: grid;
  grid-template-columns: 92px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.confidence-bar-label {
  color: var(--hyper-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.confidence-bar-track {
  background: var(--hyper-border-2);
  border-radius: 4px;
  overflow: hidden;
  height: 5px;
}
.confidence-bar-fill {
  height: 100%;
  background: #111827;
  border-radius: 4px;
}
.confidence-bar-val {
  color: var(--hyper-text);
  font-weight: 600;
  text-align: right;
}
.thesis-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--hyper-border-2);
}
.thesis-card-llm,
.pillar-card-stockcount {
  font-size: 11px;
  color: var(--hyper-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.thesis-card-llm .material-symbols-outlined,
.pillar-card-stockcount .material-symbols-outlined {
  font-size: 14px;
}
.thesis-card-portfolio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 4px 0 12px;
  background: #fafbfc;
  border: 1px solid var(--hyper-border);
  border-radius: 4px;
}
.thesis-card-portfolio-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hyper-text-muted);
  font-weight: 600;
}
.thesis-card-portfolio-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--hyper-text);
  margin-left: 2px;
}
.thesis-card-portfolio-pnl {
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
}
.thesis-card-portfolio-foot {
  font-size: 10px;
  color: var(--hyper-text-muted);
  margin-left: 6px;
}
.pnl-up {
  color: #059669;
}
.pnl-down {
  color: #dc2626;
}
.pillar-card {
  padding: 14px 16px;
}
.pillar-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.pillar-card-index {
  font-size: 20px;
  font-weight: 800;
  color: var(--hyper-text);
  line-height: 1;
}
.pillar-card-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pillar-card-titles-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.pillar-card-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--hyper-text);
}
.pillar-card-scores {
  display: flex;
  gap: 8px;
}
.pillar-score-mini {
  background: #fafbfc;
  border: 1px solid var(--hyper-border);
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  min-width: 50px;
}
.pillar-score-mini-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--hyper-text);
  line-height: 1;
}
.pillar-score-mini-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--hyper-text-muted);
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.pillar-card-role {
  font-size: 12px;
  line-height: 1.5;
  color: var(--hyper-text-muted);
  margin: 6px 0;
}
.pillar-card-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 10px;
}
.sub-bottleneck-tag {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
}
.pillar-card-confidence {
  margin: 8px 0;
}
.pillar-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--hyper-border-2);
}
.stock-card {
  padding: 12px 14px;
  border: 1px solid var(--hyper-border);
  border-radius: 5px;
  border-left: 3px solid #059669;
  background: #ffffff;
}
.stock-card.side-short {
  border-left-color: #dc2626;
}
.empty-state-card {
  background: #fafbfc;
  border: 1px dashed #d1d5db;
  border-radius: 5px;
  padding: 24px 16px;
  text-align: center;
  color: var(--hyper-text-muted);
}
.empty-state-card .material-symbols-outlined {
  font-size: 32px;
  color: var(--hyper-text-dim);
}
.empty-state-card p {
  margin: 0;
}
.milestone-timeline {
  position: relative;
  padding-left: 28px;
}
.milestone-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--hyper-border);
}
.milestone-timeline-item {
  position: relative;
  margin-bottom: 14px;
}
.milestone-timeline-marker {
  position: absolute;
  left: -28px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--hyper-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.milestone-timeline-marker .material-symbols-outlined {
  font-size: 13px;
  color: var(--hyper-text-muted);
}
.milestone-timeline-item.status-observed .milestone-timeline-marker {
  border-color: var(--hyper-success);
}
.milestone-timeline-item.status-observed
  .milestone-timeline-marker
  .material-symbols-outlined {
  color: #047857;
}
.milestone-timeline-item.status-missed .milestone-timeline-marker {
  border-color: var(--hyper-danger);
}
.milestone-timeline-item.status-missed
  .milestone-timeline-marker
  .material-symbols-outlined {
  color: #b91c1c;
}
.milestone-timeline-date {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--hyper-text-muted);
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.milestone-timeline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hyper-text);
  margin-bottom: 2px;
}
.milestone-timeline-desc {
  font-size: 11px;
  color: var(--hyper-text-muted);
  line-height: 1.4;
}
.event-detail-chip.alt {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #dbeafe;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}
/* === Reusable LLM dropdown plumbing (BS3 compatible). Widgets own the action, context, and provider options; the menu keeps the clean provider picker. */
/* Gainers/Losers widget (used in AJAX partial + page-level styles) */
.btn-defi-primary {
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-defi-primary:hover {
  background: #1f2937;
  color: #fff;
  text-decoration: none;
}
.btn-defi-primary .material-symbols-outlined {
  font-size: 14px;
}
.btn-defi-ghost {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-defi-ghost:hover {
  border-color: #111827;
  color: #111827;
  text-decoration: none;
}
.btn-defi-ghost .material-symbols-outlined,
.fs-13 {
  font-size: 13px;
}
.gap-6 {
  gap: 6px;
}
.d-flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.full-height {
  height: 100%;
}
.m-0 {
  margin: 0;
}
.m-t-8 {
  margin-top: 8px;
}
.m-t-10 {
  margin-top: 10px;
}
.m-t-15 {
  margin-top: 15px;
}
.m-t-20 {
  margin-top: 20px;
}
.m-b-8 {
  margin-bottom: 8px;
}
.m-b-15 {
  margin-bottom: 15px;
}
.m-b-20 {
  margin-bottom: 20px;
}
.m-b-30 {
  margin-bottom: 30px;
}
.m-l-5 {
  margin-left: 5px;
}
.p-20 {
  padding: 20px;
}
.p-t-30 {
  padding-top: 30px;
}
.fs-10 {
  font-size: 10px;
}
.fs-11 {
  font-size: 11px;
}
.fs-12 {
  font-size: 12px;
}
.text-muted {
  color: var(--hyper-text-muted) !important;
}
.text-dim {
  color: var(--hyper-text-dim) !important;
}
.llm-generate-group {
  display: inline-block;
  position: relative;
}
.llm-generate-trigger,
.llm-generate-group > .btn,
.llm-generate-group > a.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none !important;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.llm-generate-trigger:hover,
.llm-generate-trigger:focus,
.llm-generate-group > .btn:hover,
.llm-generate-group > a.btn:hover {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.15);
  color: var(--defi-button-text) !important;
  text-decoration: none;
  transform: translateY(-1px);
}
.llm-generate-trigger-caret,
.llm-generate-trigger .material-symbols-outlined {
  font-size: 16px;
}
.defi-event-actions-trigger-caret {
  font-size: 16px;
  color: var(--defi-accent);
}
.defi-events-delete-all-trigger .defi-event-actions-trigger-caret {
  color: var(--defi-red, #ef4444);
}
.llm-dropdown-menu {
  min-width: 240px;
  padding: 0 0 12px;
  margin-top: 12px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface);
  color: var(--defi-text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.llm-dropdown-menu > .divider {
  margin: 0 0 12px;
  border-color: var(--defi-line);
  background: var(--defi-line);
}
.llm-dropdown-header {
  display: block;
  padding: 18px 22px 14px;
  color: var(--defi-accent) !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--defi-line);
  background: var(--defi-header-bg);
}
.llm-dropdown-menu > li > a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  color: var(--defi-text) !important;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  opacity: 1;
  text-decoration: none;
}
.llm-dropdown-menu > li > a:hover,
.llm-dropdown-menu > li > a:focus {
  background: var(--defi-row-hover);
  color: var(--defi-heading) !important;
  text-decoration: none;
}
.llm-dropdown-menu > li > a img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 auto;
}
.ranked-stocks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1199px) {
  .ranked-stocks-grid {
    grid-template-columns: 1fr;
  }
}

.ranked-col,
.defi-story-widget {
  min-width: 0;
}
.ranked-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f1f5;
}
.ranked-col-header .material-symbols-outlined {
  font-size: 18px;
}
.ranked-col-header .ranked-up,
.ranked-score-up {
  color: #059669;
}
.ranked-col-header .ranked-down,
.ranked-score-down {
  color: #dc2626;
}
.ranked-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ranked-col-sub {
  font-size: 11px;
  color: #6b7280;
  margin-left: auto;
}
.ranked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ranked-row {
  display: grid;
  grid-template-columns: 24px 1fr 1.2fr 56px;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #f3f4f6;
}
.ranked-row:last-child {
  border-bottom: none;
}
.ranked-rank {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
}
.ranked-ticker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}
.ranked-ticker:hover {
  color: #111827;
  text-decoration: underline;
}
.ranked-company {
  display: block;
  font-size: 10px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranked-side {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
  letter-spacing: 0.4px;
}
.ranked-pillar-name {
  display: block;
  font-size: 11px;
  color: #111827;
  font-weight: 600;
  margin-top: 2px;
}
.ranked-thesis-stmt {
  display: block;
  font-size: 10px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.ranked-score {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}
.ranked-empty {
  padding: 16px;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}
.defi-home-jumbotron {
  background: #050505 !important;
  border-bottom: 1px solid rgba(16, 207, 189, 0.12);
}
.defi-home-page {
  --defi-bg: #050505;
  --defi-surface: #0f1016;
  --defi-surface-2: #15161d;
  --defi-line: rgba(255, 255, 255, 0.1);
  --defi-line-strong: rgba(16, 207, 189, 0.34);
  --defi-text: #f7f8f8;
  --defi-heading: #ffffff;
  --defi-muted: rgba(247, 248, 248, 0.62);
  --defi-dim: rgba(247, 248, 248, 0.36);
  --defi-kicker: rgba(255, 255, 255, 0.74);
  --defi-sep: rgba(255, 255, 255, 0.22);
  --defi-title-mark: rgba(255, 255, 255, 0.25);
  --defi-label: rgba(255, 255, 255, 0.42);
  --defi-stat-border: rgba(255, 255, 255, 0.14);
  --defi-stat-border-soft: rgba(255, 255, 255, 0.08);
  --defi-header-bg: #14151c;
  --defi-scrollbar: rgba(255, 255, 255, 0.22);
  --defi-row-bg: #15161d;
  --defi-row-hover: #171b20;
  --defi-rank: rgba(255, 255, 255, 0.8);
  --defi-empty-icon: rgba(255, 255, 255, 0.18);
  --defi-empty-title: rgba(255, 255, 255, 0.82);
  --defi-button-text: #ffffff;
  --defi-accent: #10cfbd;
  --defi-accent-soft: rgba(16, 207, 189, 0.11);
  --defi-green: #36d399;
  --defi-red: #ff6b6b;
  background: #050505;
  color: var(--defi-text);
  font-family: var(--font-sans);
  margin-left: -15px;
  margin-right: -15px;
  overflow-x: clip;
  padding: 26px clamp(18px, 3vw, 44px) 64px;
}
html[data-defi-theme="light"] .defi-home-jumbotron {
  background: #f6f7f4 !important;
  border-bottom-color: rgba(5, 5, 5, 0.08);
}
html[data-defi-theme="light"] .defi-home-page {
  --defi-bg: #f6f7f4;
  --defi-surface: #fbfcf8;
  --defi-surface-2: #f1f3ee;
  --defi-line: rgba(5, 5, 5, 0.1);
  --defi-line-strong: rgba(15, 118, 110, 0.34);
  --defi-text: #171b18;
  --defi-heading: #050505;
  --defi-muted: rgba(23, 27, 24, 0.68);
  --defi-dim: rgba(23, 27, 24, 0.44);
  --defi-kicker: rgba(5, 5, 5, 0.72);
  --defi-sep: rgba(5, 5, 5, 0.22);
  --defi-title-mark: rgba(5, 5, 5, 0.2);
  --defi-label: rgba(23, 27, 24, 0.5);
  --defi-stat-border: rgba(5, 5, 5, 0.12);
  --defi-stat-border-soft: rgba(5, 5, 5, 0.08);
  --defi-header-bg: #f1f3ee;
  --defi-scrollbar: rgba(5, 5, 5, 0.22);
  --defi-row-bg: #f1f3ee;
  --defi-row-hover: #eef4ef;
  --defi-rank: rgba(5, 5, 5, 0.72);
  --defi-empty-icon: rgba(5, 5, 5, 0.18);
  --defi-empty-title: rgba(5, 5, 5, 0.78);
  --defi-button-text: #050505;
  --defi-accent: #0f766e;
  --defi-accent-soft: rgba(15, 118, 110, 0.1);
  --defi-green: #059669;
  --defi-red: #dc2626;
  background: #f6f7f4;
}
.defi-home-page a {
  color: inherit;
}
.defi-home-hero {
  max-width: 1480px;
  margin: 0 auto 16px;
  border-top: 1px solid var(--defi-line);
  border-bottom: 0;
}
.defi-home-hero .defi-home-stats {
  border-top: 0;
  border-bottom: 0;
}
.defi-home-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--defi-line);
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-home-statusbar-left,
.defi-home-statusbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.defi-home-statusbar-sep {
  color: var(--defi-sep);
}
.defi-section-kicker--with-created {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.defi-page-created-at {
  color: var(--defi-green, #36d399);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: help;
}
/* Right-side stack inside the kicker — keeps CREATED on top and the
   subtle LLM indicator directly below it. */
.defi-section-kicker-right {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  line-height: 1;
}
.defi-hero-llm-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: help;
}
.defi-hero-llm-logo {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}
.defi-home-kicker {
  color: var(--defi-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
}
.defi-home-kicker-num {
  color: rgba(16, 207, 189, 0.9);
  font-weight: 700;
}
.defi-home-cta,
.defi-empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-button-text) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.defi-home-cta:hover,
.defi-empty-state-cta:hover {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.15);
  color: var(--defi-button-text);
  text-decoration: none;
  transform: translateY(-1px);
}
.defi-home-cta .material-symbols-outlined,
.defi-empty-state-cta .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 15px;
}
.defi-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--defi-line);
  border-radius: 999px;
  background: var(--defi-surface-2);
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.defi-theme-toggle:hover,
.defi-theme-toggle:focus {
  border-color: var(--defi-line-strong);
  background: var(--defi-accent-soft);
  color: var(--defi-heading);
  outline: none;
  transform: translateY(-1px);
}
.defi-theme-toggle-icon {
  color: var(--defi-accent);
  font-size: 14px;
  line-height: 1;
}
.defi-home-hero-stage {
  display: block;
  padding: clamp(30px, 4.5vw, 60px) 0 clamp(28px, 3.6vw, 46px);
}
.defi-home-title {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin: 0;
  color: var(--defi-heading);
  font-size: clamp(54px, 8vw, 114px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}
.defi-home-title span {
  color: var(--defi-title-mark);
  font-family: var(--font-mono);
  font-size: 0.52em;
}
.defi-home-stats {
  border-top: 1px solid var(--defi-stat-border);
  border-bottom: 1px solid var(--defi-stat-border);
}
.defi-home-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px 16px 16px;
}
.defi-home-stat-value {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  font-feature-settings: "tnum" on;
  white-space: nowrap;
}
.defi-home-stat-value.is-pos,
.defi-home-page .pnl-up,
.defi-home-stat--pnl-lead .defi-home-stat-value.pnl-up {
  color: var(--defi-green);
}
.defi-home-stat-value.is-neg,
.defi-home-page .pnl-down,
.defi-home-stat--pnl-lead .defi-home-stat-value.pnl-down {
  color: var(--defi-red);
}
.defi-home-stat-label {
  color: var(--defi-label);
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}
.defi-home-stat-foot {
  color: rgba(16, 207, 189, 0.58);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}
.defi-home-stat--pnl-lead .defi-home-stat-value {
  color: var(--defi-heading);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.defi-home-stat--pnl-lead .defi-home-stat-pnl-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.defi-home-stat--pnl-lead .defi-home-stat-pnl-pct.pnl-up,
.defi-home-stat--pnl-lead .defi-home-stat-value.pnl-up .defi-home-stat-pnl-pct {
  color: var(--defi-green);
}
.defi-home-stat--pnl-lead .defi-home-stat-pnl-pct.pnl-down,
.defi-home-stat--pnl-lead .defi-home-stat-value.pnl-down .defi-home-stat-pnl-pct {
  color: var(--defi-red);
}
.defi-home-stat--pnl-lead .defi-home-stat-foot {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 10px;
  color: var(--defi-muted);
  font-family: var(--font-mono);
  opacity: 0.9;
}
.defi-home-stat--pnl-lead .defi-home-stat-foot .pnl-up {
  color: var(--defi-green);
  font-weight: 700;
}
.defi-home-stat--pnl-lead .defi-home-stat-foot .pnl-down {
  color: var(--defi-red);
  font-weight: 700;
}
.defi-home-stat-notice-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  vertical-align: middle;
}
.defi-home-stat--needs-activation .defi-home-stat-foot {
  opacity: 1 !important;
  margin-top: 4px;
}
.defi-activate-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.14);
  border: 1px solid rgba(16, 207, 189, 0.5);
  color: #10cfbd !important;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 0 10px rgba(16, 207, 189, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.defi-activate-header-btn:hover {
  background: rgba(16, 207, 189, 0.28);
  border-color: #10cfbd;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(16, 207, 189, 0.4);
  transform: translateY(-1px);
}
.defi-activate-header-btn .material-symbols-outlined {
  font-size: 15px;
  line-height: 1;
  color: #10cfbd;
  transition: color 0.2s ease;
}
.defi-activate-header-btn:hover .material-symbols-outlined {
  color: #ffffff;
}
.defi-activate-header-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--defi-primary, #10cfbd);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s ease, color 0.18s ease;
}
.defi-activate-header-link:hover {
  color: #28f3df;
  text-decoration: underline;
}
.defi-activate-header-link .material-symbols-outlined {
  font-size: 13px;
  line-height: 1;
}
.defi-home-stats--three .defi-home-stat {
  padding: 12px 12px 10px;
}
.defi-home-stats--three .defi-home-stat-value,
.defi-home-stats--four .defi-home-stat-value {
  font-size: 22px;
}
.defi-home-stats--three .defi-home-stat-label,
.defi-home-stats--three .defi-home-stat-foot {
  font-size: 8px;
  letter-spacing: 0.14em;
}
.defi-home-stats--four .defi-home-stat {
  padding: 12px 10px 10px;
}
.defi-home-stats--four .defi-home-stat-label,
.defi-home-stats--four .defi-home-stat-foot {
  font-size: 8px;
  letter-spacing: 0.12em;
}
.defi-home-stat-value.is-mute {
  color: #94a3b8;
}
.defi-home-stat-value.is-active {
  color: #22c55e;
}
.defi-home-stat-value.is-stale {
  color: #f87171;
}
.defi-home-stat-value.is-complete {
  color: #818cf8;
}
.defi-home-stat-value.is-paper {
  color: #38bdf8;
}
.defi-home-stat-value.is-prod {
  color: #10b981;
}
.defi-portfolio-pulse-page .defi-report-hero > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.defi-portfolio-pulse-page .defi-home-hero-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.defi-portfolio-pulse-page .defi-portfolio-pulse-lifecycle {
  margin-top: auto;
}
.defi-portfolio-index-page .defi-home-hero-copy .defi-event-hero-actions,
.defi-all-theses-page .defi-home-hero-copy .defi-event-hero-actions {
  margin-top: 12px;
}
.defi-section-stage {
  max-width: 1480px;
  margin: 46px auto 18px;
  padding: 28px 0 10px;
  border-top: 1px solid var(--defi-line);
}
.defi-section-stage--no-border {
  border-top: 0 !important;
  padding-top: 0;
  margin-top: 24px;
}
.defi-section-stage .defi-home-title {
  font-size: clamp(38px, 4vw, 56px) !important;
  line-height: 1;
}
.defi-section-stage .defi-section-kicker,
.portfolio-landing-kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 8px;
  margin-bottom: 14px;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--defi-dim);
}
.defi-section-stage .portfolio-landing-kicker-num,
.portfolio-landing-kicker .portfolio-landing-kicker-num {
  opacity: 0.7;
}
.defi-section-stage .defi-section-lede {
  max-width: 680px;
  margin-top: 14px;
}
.defi-story-section,
.defi-portfolio-section,
.defi-section-heading {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}
.defi-story-section {
  margin-bottom: 76px;
}
.defi-story-section > .row {
  align-items: start;
}
.defi-story-widget > .defi-home-card,
.defi-story-widget .defi-home-events-card {
  display: flex;
  flex-direction: column;
  min-height: 820px;
  height: auto;
}
.defi-story-widget--theses > .defi-home-card {
  min-height: 960px;
}
.defi-story-copy {
  min-width: 0;
  padding-top: clamp(8px, 2vw, 34px);
}
.defi-section-lede,
.defi-section-heading p {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--defi-muted);
  font-size: 16px;
  font-weight: 300;
  font-family: "Space Grotesk", "Open Sans", sans-serif;
  line-height: 1.7;
}
.defi-story-points {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--defi-line);
}
.defi-story-point {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 18px;
  align-items: baseline;
}
.defi-story-point span {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.defi-story-point strong {
  color: var(--defi-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.defi-story-point p {
  grid-column: 2;
  margin: 5px 0 0;
  color: var(--defi-muted);
  font-size: 13px;
  line-height: 1.55;
}
.defi-story-copy--events .defi-section-kicker {
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.defi-story-copy--events .defi-section-title {
  max-width: 620px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.18;
}
.defi-story-copy--events .defi-section-lede {
  max-width: 620px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 16px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.58;
}
.defi-story-copy--events .defi-story-points {
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
}
.defi-story-copy--events .defi-story-point span {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.defi-story-copy--events .defi-story-point strong {
  font-family: var(--font-sans);
  font-size: 13px;
}
.defi-story-copy--events .defi-story-point p {
  max-width: 540px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
}
.defi-section-title {
  color: var(--defi-heading);
}
.defi-story-copy--home .defi-story-points {
  gap: 22px;
  margin-top: 40px;
  padding-top: 36px;
}
.defi-story-copy--home .defi-section-kicker {
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--defi-dim);
}
.defi-story-copy--home .portfolio-landing-kicker-num {
  opacity: 0.7;
}
.defi-story-copy--home .defi-section-title {
  max-width: 620px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.18;
}
.defi-story-copy--home .defi-section-lede {
  max-width: 620px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1vw, 15px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.6;
}
.defi-story-copy--home .defi-story-point span {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.defi-story-copy--home .defi-story-point strong {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.defi-story-copy--home .defi-story-point p {
  max-width: 540px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.55;
}
.defi-home-card--regime {
  margin-top: 28px;
}
.defi-thesis-side-grid {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}
.defi-data-story {
  padding: 6px 0 20px;
  border: 0;
  border-bottom: 1px solid var(--defi-line);
  background: transparent;
  box-shadow: none;
}
.defi-data-story:last-child {
  border-bottom: 0;
}
.defi-data-story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.defi-data-story-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--defi-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}
.defi-data-story-header h3 .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 18px;
}
.defi-data-story-header span {
  color: var(--defi-dim);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}
.defi-data-story .defi-home-chart-wrap {
  height: 230px;
}
.defi-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: 18px;
}
.defi-section-heading p {
  max-width: 560px;
  margin: 0;
}
.defi-portfolio-section {
  margin-bottom: 34px;
}
.defi-home-dual {
  max-width: 1480px;
  margin: 0 auto 64px;
}
.defi-home-card--milestones,
.defi-home-milestones-shell {
  height: 100%;
}
.defi-home-milestones-template {
  display: flex;
  flex-direction: column;
  height: 630px;
  overflow-y: auto;
  scrollbar-color: var(--defi-accent) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}
.defi-home-milestones-template:has(.dropdown-menu.show) {
  overflow: visible;
}
.defi-home-milestones-template__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.defi-home-milestones-template__content--1month {
  margin-top: auto;
  padding-top: 12px;
}
.defi-home-milestones-template::-webkit-scrollbar {
  width: 6px;
}
.defi-home-milestones-template::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.defi-home-milestones-template::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--defi-accent);
}
html[data-defi-theme="light"] .defi-home-milestones-template {
  scrollbar-color: var(--defi-accent) rgba(5, 5, 5, 0.08);
}
html[data-defi-theme="light"]
  .defi-home-milestones-template::-webkit-scrollbar-track {
  background: rgba(5, 5, 5, 0.08);
}
.defi-home-milestones-template .defi-thesis-milestones-horizontal {
  margin-top: 0;
  padding: 0 0 4px;
  border-top: 0;
  max-width: 100%;
}
.defi-home-milestones-template .defi-thesis-milestones-detail {
  margin-top: 0;
  padding-top: 0;
}
.defi-home-milestones-template .defi-thesis-milestones-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--defi-line);
  border-bottom: 1px solid var(--defi-line);
}
.defi-home-milestones-template .defi-thesis-milestones-header-left {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.defi-home-milestones-template .defi-thesis-milestones-header-left h3 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-home-milestones-template
  .defi-thesis-milestones-header-left
  .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 20px;
}
.defi-home-milestones-template .defi-thesis-milestones-meta {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-home-milestones-template .empty-state-card {
  border: 1px dashed var(--defi-line);
  border-radius: 6px;
  background: transparent;
  color: var(--defi-muted);
  padding: 34px 18px;
  text-align: center;
}
.defi-home-milestones-template .empty-state-card .material-symbols-outlined {
  color: var(--defi-empty-icon);
  font-size: 34px;
}
.defi-home-milestone-fallback-note {
  margin: -2px 0 14px;
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .defi-portfolio-layout {
    display: flex;
    align-items: stretch;
  }
  .defi-portfolio-layout > [class*="col-"] {
    float: none;
  }
}
/* === PNL-lead keeps the big number big in compact mode, but caps the supporting pills into a 2-col grid so the compact block stays readable. */
/* === Open dropdowns (e.g. the milestone actions menu) need to escape the card's overflow clipping. When a Bootstrap 3 dropdown is showing inside a .defi-home-card, lift the overflow so the menu can render outside the card boundaries. The .defi-home-card-header still inherits the rounded corners via its own border-top-radius so the background keeps its shape. */
/* === PNL-lead summary: PNL is the headline number (clamp 38-58px), with portfolio value, baseline, theses and positions as smaller supporting pills. Used everywhere portfolio is summarised. */
/* === Reusable scroll reveal. Apply .defi-scroll-pop to any block that should gently lift into place as it enters the viewport or a scroll container. */
.defi-portfolio-separator-col {
  display: flex;
  justify-content: center;
  align-self: stretch;
}
.defi-portfolio-separator {
  width: 1px;
  min-height: 100%;
  background: var(--defi-line);
}
.defi-home-portfolio--compact {
  margin-bottom: 0;
}
.defi-home-portfolio--compact .defi-home-portfolio-summary {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
}
.defi-home-portfolio--compact .defi-home-portfolio-total-value {
  font-size: clamp(40px, 5vw, 72px);
}
.defi-home-portfolio--compact .defi-home-portfolio-summary--pnl-lead {
  display: flex;
  flex-direction: column;
}
.defi-home-portfolio--compact .defi-home-portfolio-row {
  grid-template-columns: 32px minmax(0, 1fr) auto auto 18px;
}
.defi-home-main,
.defi-home-signals,
.defi-home-charts,
.defi-home-portfolio,
.defi-home-divider {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}
.defi-home-core > .defi-home-card,
.defi-home-core .defi-home-events-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.defi-home-card,
.defi-home-portfolio {
  background: var(--defi-surface);
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  color: var(--defi-text);
  overflow: hidden;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
}
.defi-home-card:has(.dropdown-menu.show),
.defi-story-widget--theses > .defi-home-card:has(.defi-scroll-pop),
.defi-story-widget--theses
  > .defi-home-card:has(.defi-scroll-pop)
  .defi-home-card-body,
.defi-story-widget--theses
  > .defi-home-card:has(.defi-scroll-pop)
  .defi-home-core-body,
.defi-story-widget--theses
  > .defi-home-card:has(.defi-scroll-pop)
  .defi-home-theses-list,
.defi-home-portfolio:has(.defi-scroll-pop),
.defi-home-portfolio:has(.defi-scroll-pop) > .defi-home-card-body,
.defi-home-portfolio:has(.defi-scroll-pop) #displayPortfolio-container,
.defi-home-portfolio:has(.defi-scroll-pop) .defi-portfolio-list,
.defi-all-theses-card:has(.defi-scroll-pop),
.defi-all-theses-card:has(.defi-scroll-pop) > .defi-home-card-body,
.defi-events-index-card:has(.defi-scroll-pop),
.defi-events-index-card:has(.defi-scroll-pop) > .defi-home-card-body,
.defi-portfolio-pulse-card:has(.defi-scroll-pop),
.defi-portfolio-pulse-card:has(.defi-scroll-pop) > .defi-home-card-body,
.defi-portfolio-pulse-card:has(.defi-scroll-pop) .defi-portfolio-list {
  overflow: visible;
}
.defi-home-card-header,
.defi-home-portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 0 17px;
  border-bottom: 1px solid var(--defi-line);
  background: var(--defi-header-bg);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.defi-home-card-header h3,
.defi-home-card-title a,
.defi-home-portfolio-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--defi-text) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.defi-home-card-header h3 .material-symbols-outlined,
.defi-home-card-title .material-symbols-outlined,
.defi-home-portfolio-title .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 17px;
}
.defi-home-card-header .meta,
.defi-home-portfolio-meta {
  color: var(--defi-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-home-card-header .meta:hover,
.defi-home-icon-control:hover {
  color: var(--defi-accent);
  text-decoration: none;
}
.defi-home-card-header [data-toggle="click-replace-display-content-reusable"],
.defi-home-portfolio-header
  [data-toggle="click-replace-display-content-reusable"] {
  cursor: pointer;
}
.defi-home-card-body {
  padding: 16px;
}
.defi-home-core-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.defi-home-core-body::-webkit-scrollbar,
.defi-home-portfolio-rows::-webkit-scrollbar {
  width: 6px;
}
.defi-home-core-body::-webkit-scrollbar-thumb,
.defi-home-portfolio-rows::-webkit-scrollbar-thumb {
  background: var(--defi-scrollbar);
  border-radius: 3px;
}
.defi-home-core-body::-webkit-scrollbar-track,
.defi-home-portfolio-rows::-webkit-scrollbar-track {
  background: transparent;
}
.defi-home-portfolio {
  margin-bottom: 16px;
}
.defi-home-portfolio-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--defi-line);
}
.defi-home-portfolio-total-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.defi-home-portfolio-total-label,
.defi-home-portfolio-total-foot,
.defi-home-portfolio-pill-label,
.defi-home-portfolio-row-meta,
.defi-home-portfolio-row-stocks,
.defi-home-thesis-row-kicker,
.defi-home-thesis-row-stats,
.defi-home-thesis-row-portfolio-label {
  color: var(--defi-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-home-portfolio-total-value {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  font-feature-settings: "tnum" on;
}
.defi-home-portfolio-total-pct {
  font-size: 13px;
  font-weight: 700;
}
.defi-home-portfolio-summary--pnl-lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 18px;
}
.defi-home-portfolio-summary--pnl-lead .defi-home-portfolio-total-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.defi-home-portfolio-summary--pnl-lead .defi-home-portfolio-total-label {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-home-portfolio-summary--pnl-lead .defi-home-portfolio-total-value {
  font-family: var(--font-mono);
  font-size: clamp(38px, 4.4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" on;
}
.defi-home-portfolio-summary--pnl-lead .defi-home-portfolio-total-pct {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-home-portfolio-summary--pnl-lead .defi-home-portfolio-total-pct.pnl-up {
  color: var(--defi-green);
}
.defi-home-portfolio-summary--pnl-lead .defi-home-portfolio-total-pct.pnl-down {
  color: var(--defi-red);
}
.defi-home-portfolio-summary--pnl-lead .defi-home-portfolio-total-foot {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--defi-dim);
}
.defi-home-portfolio-supporting {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 20px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--defi-line);
}
.defi-home-portfolio-supporting > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.defi-home-portfolio-supporting span {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-home-portfolio-supporting strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" on;
}
@media (max-width: 767px) {
  .defi-home-portfolio-supporting {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
}
.defi-home-portfolio-row-rank,
.defi-home-thesis-row-num {
  color: var(--defi-rank);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.defi-scroll-pop {
  --defi-scroll-pop-distance: 18px;
  --defi-scroll-pop-scale: 0.985;
  --defi-scroll-pop-hover-scale: 1.015;
  --defi-scroll-pop-hover-lift: -10px;
  --defi-scroll-pop-delay: 0ms;
  transform-origin: center;
  will-change: opacity, transform, filter;
}
.defi-scroll-pop-enabled .defi-scroll-pop {
  opacity: 0;
  transform: translate3d(0, var(--defi-scroll-pop-distance), 0)
    scale(var(--defi-scroll-pop-scale));
  filter: blur(1px);
  transition:
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.18, 0.9, 0.22, 1.08),
    filter 0.26s ease,
    background-color 0.18s ease,
    color 0.16s ease;
  transition-delay:
    var(--defi-scroll-pop-delay), var(--defi-scroll-pop-delay),
    var(--defi-scroll-pop-delay), 0ms, 0ms;
}
.defi-scroll-pop-enabled .defi-scroll-pop.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.defi-scroll-pop-enabled .defi-scroll-pop.is-visible:hover,
.defi-scroll-pop-enabled .defi-scroll-pop.is-visible:focus-visible {
  transform: translate3d(0, var(--defi-scroll-pop-hover-lift), 0)
    scale(var(--defi-scroll-pop-hover-scale));
  transition-delay: 0.5ms, 0.5ms, 0.5ms, 0.5ms, 0.5ms;
  z-index: 20;
}
.defi-scroll-pop-enabled .defi-scroll-pop.is-visible:last-child:hover,
.defi-scroll-pop-enabled .defi-scroll-pop.is-visible:last-child:focus-visible {
  transform: translate3d(0, 0, 0) scale(var(--defi-scroll-pop-hover-scale));
}
.defi-scroll-pop-enabled
  .defi-report-effect-chain
  .defi-scroll-pop.is-visible:last-child:hover,
.defi-scroll-pop-enabled
  .defi-report-effect-chain
  .defi-scroll-pop.is-visible:last-child:focus-visible {
  transform: translate3d(0, var(--defi-scroll-pop-hover-lift), 0)
    scale(var(--defi-scroll-pop-hover-scale));
}
.defi-scroll-pop-enabled
  .defi-thesis-milestone-graph-point
  .defi-scroll-pop.is-visible:last-child:hover,
.defi-scroll-pop-enabled
  .defi-thesis-milestone-graph-point
  .defi-scroll-pop.is-visible:last-child:focus-visible,
.defi-scroll-pop-enabled
  .defi-events-list
  .defi-scroll-pop.is-visible:last-child:hover,
.defi-scroll-pop-enabled
  .defi-events-list
  .defi-scroll-pop.is-visible:last-child:focus-visible {
  transform: translate3d(0, var(--defi-scroll-pop-hover-lift), 0)
    scale(var(--defi-scroll-pop-hover-scale));
}
@media (prefers-reduced-motion: reduce) {
  .defi-scroll-pop-enabled .defi-scroll-pop,
  .defi-scroll-pop-enabled .defi-scroll-pop.is-visible:hover,
  .defi-scroll-pop-enabled .defi-scroll-pop.is-visible:focus-visible,
  .defi-scroll-pop-enabled .defi-scroll-pop.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
/* === Compact thesis row used by the home "Top Theses" widget. Two clean rows per thesis — title (full width) and a meta line with the event name (left) and the portfolio P&L (right). No border on the P&L block, no card chrome — the parent list provides a hairline between theses. */
/* === Thesis compact row — flex layout, 75/25 split on md+: left column (main) stacks the full thesis statement and the linked event title; right column (pnl) holds the portfolio P&L block. On mobile (<md) the row collapses to a single column with the P&L block sitting under the main stack. */
.defi-home-theses-list .defi-home-thesis-row {
  border-top: 1px solid var(--defi-line);
}
.defi-home-theses-list .defi-home-thesis-row:first-child {
  border-top: 0;
}
.defi-all-theses-list .defi-home-thesis-row {
  border-top: 1px solid var(--defi-line);
  padding: 34px 30px 30px;
}
.defi-all-theses-list .defi-home-thesis-row:first-child {
  border-top: 0;
  padding-top: 26px;
}
.defi-home-thesis-row {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 18px 20px;
  border: 0;
  background: transparent;
  color: var(--defi-text);
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
  cursor: pointer;
  outline: none;
}
.defi-home-thesis-row:hover,
.defi-home-thesis-row:focus-visible {
  background: var(--defi-surface);
  border-radius: 0;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--defi-line);
  color: var(--defi-heading);
  text-decoration: none;
}
.defi-all-theses-list .defi-home-thesis-row:hover,
.defi-all-theses-list .defi-home-thesis-row:focus-visible,
.defi-all-theses-list .defi-home-thesis-row:focus-within {
  z-index: 20;
}
.defi-home-theses-list .defi-home-thesis-row:hover + .defi-home-thesis-row,
.defi-home-theses-list
  .defi-home-thesis-row:focus-visible
  + .defi-home-thesis-row,
.defi-all-theses-list .defi-home-thesis-row:hover + .defi-home-thesis-row,
.defi-all-theses-list
  .defi-home-thesis-row:focus-visible
  + .defi-home-thesis-row,
.defi-portfolio-list .defi-home-thesis-row:hover + .defi-home-thesis-row,
.defi-portfolio-list
  .defi-home-thesis-row:focus-visible
  + .defi-home-thesis-row {
  border-top-color: transparent;
}
.defi-story-widget--theses
  > .defi-home-card:has(
    .defi-home-theses-list .defi-home-thesis-row:last-child:hover
  ),
.defi-story-widget--theses
  > .defi-home-card:has(
    .defi-home-theses-list .defi-home-thesis-row:last-child:focus-visible
  ),
.defi-home-portfolio:has(
  .defi-portfolio-list .defi-home-thesis-row:last-child:hover
),
.defi-home-portfolio:has(
  .defi-portfolio-list .defi-home-thesis-row:last-child:focus-visible
),
.defi-portfolio-pulse-card:has(
  .defi-portfolio-list .defi-home-thesis-row:last-child:hover
),
.defi-portfolio-pulse-card:has(
  .defi-portfolio-list .defi-home-thesis-row:last-child:focus-visible
) {
  border-bottom-color: transparent;
}
.defi-home-thesis-row:focus-visible {
  background: rgba(54, 211, 153, 0.04);
}
.defi-home-thesis-row-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: stretch;
}
@media (min-width: 768px) {
  .defi-home-thesis-row-grid {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}
.defi-home-thesis-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.defi-home-thesis-row-main:not([class*="col-"]) {
  width: 100%;
}
@media (min-width: 768px) {
  .defi-home-thesis-row-main:not([class*="col-"]) {
    flex: 1 1 0;
    width: auto;
  }
}
/* === Title line — rank on the left, thesis statement flowing right. Statement wraps freely; never truncates. */
.defi-home-thesis-row-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--defi-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
}
.defi-home-thesis-row-num {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: var(--defi-rank);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  flex-shrink: 0;
  min-width: 28px;
}
.defi-home-thesis-row-statement {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--defi-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  font-family: var(--font-sans);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.defi-home-thesis-row--detail {
  padding: 30px 28px 32px;
}
.defi-home-thesis-row--detail,
.defi-home-portfolio-row--compact {
  position: relative;
}
.defi-home-thesis-row--detail .defi-home-thesis-row-grid {
  flex-direction: column;
  align-items: flex-start;
}
.defi-home-thesis-row--detail .defi-home-thesis-row-main {
  width: 100%;
}
.defi-home-thesis-row--detail .defi-section-kicker {
  margin: 0;
}
.defi-home-thesis-detail-main {
  gap: 12px;
}
.defi-home-thesis-detail-title {
  margin: 0;
  color: var(--defi-heading);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.24;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}
.defi-home-thesis-row--detail:hover .defi-home-thesis-detail-title,
.defi-home-thesis-row--detail:focus-within .defi-home-thesis-detail-title {
  color: var(--defi-accent);
}
.defi-home-thesis-row--detail .defi-thesis-statement-link,
.defi-home-portfolio-row--compact .defi-thesis-statement-link {
  color: inherit;
  text-decoration: none;
}
.defi-home-thesis-row--detail .defi-thesis-statement-link::after,
.defi-home-portfolio-row--compact .defi-thesis-statement-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Inner event/side links must sit above the stretched-link overlay. */
.defi-home-thesis-row--detail .defi-thesis-event-link,
.defi-home-portfolio-row--compact .defi-thesis-event-link,
.defi-home-portfolio-row--compact .defi-all-theses-side-link {
  position: relative;
  z-index: 2;
}
.defi-home-thesis-detail-event .defi-thesis-event-link {
  margin-top: 0;
}
.defi-home-thesis-row .defi-thesis-event-link {
  color: #f87171 !important;
}
.defi-home-thesis-row .defi-thesis-event-link:hover,
.defi-home-thesis-row .defi-thesis-event-link:focus-visible {
  color: #f87171 !important;
  opacity: 0.82;
}
.defi-home-thesis-row--detail .defi-all-theses-falsification {
  padding-top: 0;
}
.defi-home-thesis-detail-pnl {
  align-items: flex-end;
  align-self: flex-end;
  width: auto;
  padding-top: 4px;
}
@media (max-width: 767px) {
  .defi-home-thesis-row--detail {
    padding: 24px 18px 26px;
  }
  .defi-home-thesis-detail-title {
    font-size: 22px;
  }
  .defi-home-thesis-detail-pnl {
    align-self: stretch;
    width: 100%;
  }
}
/* === Event line — sits under the statement, aligned to the statement's left edge (offset by the rank + gap so it lines up with the text, not the rank number). Title wraps freely; never truncates. */
/* === P&L block — lives in the right column, right-aligned. Top row: amount + percent. Bottom row: "Portfolio P&L" label and "Market $X" subline. */
.defi-home-thesis-row-event {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  min-width: 0;
  padding-left: 0;
  margin-top: 12px;
  width: 100%;
}
.defi-home-thesis-row-event a {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--defi-accent);
  text-decoration: none;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.defi-home-thesis-row-event a:hover {
  color: var(--defi-heading);
  text-decoration: none;
}
.defi-home-thesis-row-event .material-symbols-outlined {
  font-size: 14px;
  color: var(--defi-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.defi-home-thesis-row-event span {
  min-width: 0;
  flex: 1 1 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.defi-home-thesis-row-pnl {
  text-align: right;
  color: var(--defi-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .defi-home-thesis-row-pnl {
    width: auto;
  }
}
.defi-home-thesis-row-pnl-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.defi-home-thesis-row-pnl-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-home-thesis-row-pnl-label {
  color: var(--defi-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-home-thesis-row-pnl-amount {
  font-size: 20px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-feature-settings: "tnum" on;
  letter-spacing: -0.01em;
}
.defi-home-thesis-row-pnl-pct {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.defi-home-thesis-row-pnl-market {
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-home-thesis-row-pnl-amount.pnl-up,
.defi-home-thesis-row-pnl-pct.pnl-up {
  color: var(--defi-green);
}
.defi-home-thesis-row-pnl-amount.pnl-down,
.defi-home-thesis-row-pnl-pct.pnl-down {
  color: var(--defi-red);
}
.defi-home-thesis-row-pnl-amount.is-flat,
.defi-home-thesis-row-pnl-pct.is-flat {
  color: var(--defi-muted);
}
/* Half-size thesis row inside the event detail Thesis Intelligence card. */
.defi-event-thesis-list .defi-home-thesis-row--detail {
  padding: 14px 16px 16px;
  background: var(--defi-surface);
  border-radius: 4px;
}
.defi-event-thesis-list .defi-home-thesis-row--detail:hover,
.defi-event-thesis-list .defi-home-thesis-row--detail:focus-visible {
  background: var(--defi-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.defi-event-thesis-list .defi-home-thesis-detail-main {
  gap: 6px;
}
.defi-event-thesis-list .defi-home-thesis-detail-title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}
.defi-event-thesis-list .defi-all-theses-thesis-meta {
  font-size: 9px;
  letter-spacing: 0.1em;
}
.defi-event-thesis-list .defi-all-theses-falsification {
  font-size: 15px;
  line-height: 1.55;
  padding-top: 6px;
}
.defi-event-thesis-list .defi-all-theses-falsification-label {
  font-size: 8px;
  letter-spacing: 0.14em;
}
.defi-event-thesis-list .defi-home-thesis-row-pnl-amount {
  font-size: 12px;
}
.defi-event-thesis-list .defi-home-thesis-row-pnl-pct {
  font-size: 9px;
}
.defi-event-thesis-list .defi-home-thesis-row-pnl-label,
.defi-event-thesis-list .defi-home-thesis-row-pnl-market {
  font-size: 8px;
}
.defi-portfolio-list .defi-home-thesis-row {
  border-top: 1px solid var(--defi-line);
}
.defi-portfolio-list .defi-home-thesis-row:first-child {
  border-top: 0;
}
.defi-home-portfolio-row--compact {
  min-height: 132px;
}
.defi-home-portfolio-row--compact .defi-home-thesis-row-grid {
  align-items: flex-start;
}
.defi-home-portfolio-row--compact .defi-all-theses-thesis-side {
  border: none;
  border-left: 1px solid var(--defi-line);
  border-radius: 0;
  background: transparent;
  padding: 2px 0 2px 20px;
}
@media (max-width: 991px) {
  .defi-home-portfolio-row--compact .defi-all-theses-thesis-side {
    border-left: none;
    border-top: 1px solid var(--defi-line);
    padding: 14px 0 0 0;
    margin-top: 12px;
  }
}
.defi-home-portfolio-row-side:not([class*="col-"]) {
  width: 100%;
  flex-shrink: 0;
}
.defi-home-portfolio-row-footer {
  margin-top: 12px;
  width: 100%;
}
.defi-home-portfolio-row-compact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .defi-home-portfolio-row-compact-meta {
    padding-left: 0;
  }
}
.defi-portfolio-row-change-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.defi-portfolio-change-title {
  color: var(--defi-muted, rgba(255, 255, 255, 0.45));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.defi-portfolio-change-grid {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.defi-portfolio-change-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.defi-portfolio-change-label {
  color: var(--defi-muted, rgba(255, 255, 255, 0.45));
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.defi-portfolio-change-val {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.defi-portfolio-change-val.is-up {
  color: var(--defi-green, #36d399);
}
.defi-portfolio-change-val.is-down {
  color: var(--defi-red, #f87171);
}
.defi-portfolio-change-val.is-flat,
.defi-portfolio-change-val.is-null {
  color: var(--defi-muted, rgba(255, 255, 255, 0.4));
}
@media (max-width: 767px) {
  .defi-portfolio-row-change-strip {
    gap: 8px 12px;
    padding: 8px 10px;
  }
  .defi-portfolio-change-grid {
    gap: 8px 12px;
  }
}

/* Sortable Table Styles for Portfolio Widgets */
/* === SIGNIFICANT EVENTS — INDEX LANDING (deployed into defi-events-page and the home page defi-home-events-card widget via the same AJAX) */

.defi-home-regime {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px 22px;
}
.defi-home-regime-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--defi-line);
  font-size: 12px;
}
.defi-home-regime-row:last-child,
.defi-home-page .ranked-row:last-child {
  border-bottom: 0;
}
.defi-home-regime-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--defi-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-home-regime-label .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 15px;
  line-height: 1.05;
  margin-top: 1px;
}
.defi-home-regime-label-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.defi-home-regime-hint {
  max-width: 260px;
  color: var(--defi-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
.defi-home-regime-value {
  color: var(--defi-text);
  font-weight: 600;
}
.defi-home-regime-note {
  margin-left: 4px;
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 500;
}
.defi-home-regime-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface-2);
  color: var(--defi-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-home-regime-tag.bull {
  border-color: rgba(54, 211, 153, 0.3);
  background: rgba(54, 211, 153, 0.1);
  color: var(--defi-green);
}
.defi-home-regime-tag.bear {
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.1);
  color: var(--defi-red);
}
.defi-home-regime-section .defi-home-regime-label {
  margin-bottom: 6px;
}
.defi-home-chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}
.defi-home-page .ranked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.defi-home-page .ranked-row {
  display: grid;
  grid-template-columns: 24px 1fr minmax(120px, 1.15fr) 52px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--defi-line);
}
.defi-home-page .ranked-rank {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.defi-home-page .ranked-ticker {
  display: block;
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.defi-home-page .ranked-ticker:hover {
  color: var(--defi-accent);
  text-decoration: none;
}
.defi-home-page .ranked-company,
.defi-home-page .ranked-thesis-stmt,
.defi-home-page .ranked-empty {
  color: var(--defi-dim);
  font-size: 10px;
}
.defi-home-page .ranked-company,
.defi-home-page .ranked-thesis-stmt {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defi-home-page .ranked-side {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.defi-home-page .ranked-side-long {
  border: 1px solid rgba(54, 211, 153, 0.3);
  background: rgba(54, 211, 153, 0.1);
  color: var(--defi-green);
}
.defi-home-page .ranked-side-short {
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.1);
  color: var(--defi-red);
}
.defi-home-page .ranked-pillar-name {
  display: block;
  color: var(--defi-text);
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px;
}
.defi-home-page .ranked-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.defi-portfolio-pressure-col .defi-home-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 460px;
}
.defi-portfolio-pressure-col .defi-home-card-body {
  flex: 1 1 auto;
  height: auto;
  padding: 0;
}
.defi-card-header--tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.defi-card-timeframe-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-space-grotesk, sans-serif);
}
.defi-timeframe-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.defi-timeframe-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}
.defi-timeframe-tab.active {
  color: #10b981;
  font-weight: 700;
}
.defi-card-timeframe-tabs .tab-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  user-select: none;
}
.defi-card-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.defi-card-sort-buttons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid var(--defi-line);
  padding-left: 10px;
  margin-left: 2px;
  font-family: var(--font-space-grotesk, sans-serif);
}
.defi-sort-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.defi-sort-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}
.defi-sort-btn.is-active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}
.defi-sort-btn-axis {
  font-size: 10px;
  letter-spacing: 0.05em;
}
.defi-sort-btn-arrow {
  font-size: 14px !important;
  font-weight: 400;
}
.defi-portfolio-sort-buttons {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
  gap: 3px;
}
.defi-portfolio-sort-buttons .defi-sort-btn {
  padding: 3px 7px;
  font-size: 11px;
}
.defi-portfolio-sort-buttons .defi-sort-btn-axis {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ranked-score .ranked-sub-label {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  margin-top: 2px;
}
.defi-portfolio-pressure-col .defi-home-card-body::-webkit-scrollbar {
  width: 3px;
}
.defi-portfolio-pressure-col .defi-home-card-body::-webkit-scrollbar-thumb {
  background: var(--defi-accent, #10cfbd);
  border-radius: 0;
}
.defi-portfolio-pressure-col .defi-home-card-body::-webkit-scrollbar-track {
  background: transparent;
}
.defi-portfolio-pressure-col .ranked-row {
  grid-template-columns: 20px minmax(62px, 0.78fr) minmax(0, 1.2fr) 42px;
  gap: 8px;
  padding: 8px 0;
}
.defi-portfolio-pressure-col .ranked-ticker-block,
.defi-portfolio-pressure-col .ranked-thesis {
  min-width: 0;
}
.defi-portfolio-pressure-col .ranked-ticker {
  font-size: 12px;
  line-height: 1.2;
}
.defi-portfolio-pressure-col .ranked-company,
.defi-portfolio-pressure-col .ranked-thesis-stmt {
  font-size: 9px;
  line-height: 1.25;
}
.defi-portfolio-pressure-col .ranked-side {
  padding: 1px 5px;
  font-size: 7px;
}
.defi-portfolio-pressure-col .ranked-pillar-name {
  display: inline-block;
  max-width: calc(100% - 46px);
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.25;
}
.defi-portfolio-pressure-col .ranked-score,
.defi-empty-state--sm .defi-empty-state-subtitle {
  font-size: 12px;
}
.defi-home-page .ranked-score-up,
.defi-home-page .ranked-up {
  color: var(--defi-green);
}
.defi-home-page .ranked-score-down,
.defi-home-page .ranked-down {
  color: var(--defi-red);
}
.defi-home-page .ranked-empty {
  padding: 28px 12px;
  text-align: center;
}
.defi-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 44px 24px;
  text-align: center;
  color: var(--defi-muted);
}
.defi-empty-state--sm {
  min-height: 180px;
  padding: 34px 20px;
}
.defi-empty-state--lg {
  min-height: 540px;
}
.defi-empty-state-icon {
  color: var(--defi-empty-icon);
  line-height: 1;
}
.defi-empty-state-icon .material-symbols-outlined {
  font-size: 58px;
  font-weight: 200;
}
.defi-empty-state-title {
  margin: 18px 0 0;
  color: var(--defi-empty-title);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
}
.defi-empty-state--sm .defi-empty-state-title {
  font-size: 20px;
}
.defi-empty-state-subtitle {
  max-width: 480px;
  margin: 10px auto 0;
  color: var(--defi-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}
.defi-empty-state-cta {
  margin-top: 24px;
  min-height: 42px;
  padding: 0 18px;
}
.defi-empty-state .llm-generate-group {
  margin-top: 24px;
}
.defi-home-events-card .panel-body {
  min-height: 900px !important;
  padding: 0 !important;
  background: transparent;
}
.defi-home-events-card .defi-empty-state--lg {
  min-height: 640px;
}
.defi-home-events-card .nav-tabs {
  border-bottom-color: var(--defi-line);
}
.defi-home-events-card .nav-tabs > li > a,
.defi-home-events-card #significant-events-details.nav-tabs > li > a {
  border: 0 !important;
  border-radius: 0;
  color: #fff;
  background: transparent !important;
  font-family: var(--font-sans) !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.defi-home-events-card .nav-tabs > li.active > a,
.defi-home-events-card .nav-tabs > li > a:hover {
  color: var(--defi-heading) !important;
  background: rgba(16, 207, 189, 0.075) !important;
}
.defi-home-events-card #significant-events-details {
  border-right: 1px solid var(--defi-line);
}
.defi-home-events-card .tab-content {
  color: var(--defi-muted);
  background: transparent;
}
.defi-home-events-card .tab-pane {
  color: var(--defi-muted);
}
.defi-home-events-card .tab-pane .font-apple,
.defi-home-events-card .tab-pane .text-primary {
  color: var(--defi-text) !important;
}
.defi-home-events-card .badge-danger {
  border: 1px solid rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb4b4;
}
.defi-events-page .defi-home-statusbar,
.defi-events-page .defi-report-hero,
.defi-events-page .defi-report-section {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}
.defi-events-page .defi-report-hero {
  padding: 70px 0 48px;
  border-bottom: 1px solid var(--defi-line);
}
.defi-events-page .defi-report-hero .defi-home-title {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: 72px;
}
.defi-events-page .defi-report-lede {
  max-width: 720px;
  margin: 0;
  color: var(--defi-muted);
  font-size: 16px;
  line-height: 1.7;
}
.defi-events-page .defi-report-section {
  padding: 44px 0 0;
}
.defi-events-page .defi-home-card.defi-events-index-card {
  min-height: 840px;
}
.defi-events-page .defi-events-side-rail {
  position: sticky;
  top: 90px;
  padding: 18px 0 0 20px;
}
.defi-events-stack {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  min-height: 800px;
}
@media (max-width: 1199px) {
  .defi-events-stack {
    grid-template-columns: minmax(0, 1fr);
  }
  .defi-events-page .defi-events-side-rail {
    position: static;
    padding: 0;
  }
}
.defi-events-list {
  border-right: 1px solid var(--defi-line);
  max-height: 820px;
  overflow-y: auto;
  scrollbar-color: var(--defi-accent) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}
@media (max-width: 1199px) {
  .defi-events-list {
    border-right: 0;
    border-bottom: 1px solid var(--defi-line);
    max-height: 520px;
  }
}

  .defi-events-list::-webkit-scrollbar {
  width: 7px;
}
.defi-events-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.defi-events-list::-webkit-scrollbar-thumb {
  background: var(--defi-accent);
  border-radius: 999px;
}
.defi-events-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 110px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--defi-line);
  color: var(--defi-text) !important;
  text-decoration: none !important;
  cursor: pointer;
  outline: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}
.defi-events-row.defi-scroll-pop {
  --defi-scroll-pop-distance: 14px;
  --defi-scroll-pop-scale: 0.985;
  --defi-scroll-pop-hover-scale: 1.015;
  --defi-scroll-pop-hover-lift: -4px;
}
.defi-events-row:last-child,
.defi-events-detail-snapshot {
  border-bottom: 0;
}
.defi-events-row:hover,
.defi-events-row:focus-visible {
  background: var(--defi-row-hover);
  color: var(--defi-heading) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--defi-line);
  z-index: 20;
  outline: none;
}
.defi-events-row.is-selected {
  background: rgba(16, 207, 189, 0.075);
  border-left: 2px solid var(--defi-accent);
  padding-left: 16px;
}
.defi-events-row.is-selected:hover,
.defi-events-row.is-selected:focus-visible {
  background: rgba(16, 207, 189, 0.12);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--defi-accent);
  z-index: 20;
}
.defi-events-row-rank {
  color: var(--defi-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.defi-events-row.is-selected .defi-events-row-rank,
.defi-events-year-tab.is-active em {
  color: var(--defi-accent);
}
.defi-events-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.defi-events-row-title {
  display: block;
  color: var(--defi-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.defi-events-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-events-row-meta .defi-home-meta-sep {
  color: var(--defi-sep);
}
.defi-events-detail {
  padding: 26px 26px 30px;
  min-width: 0;
}
.defi-events-detail-head,
.defi-events-detail-snapshot {
  margin-bottom: 18px;
}
.defi-events-detail-head .defi-section-kicker {
  margin-bottom: 8px;
  color: var(--defi-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-events-detail-title {
  margin: 0;
  color: var(--defi-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}
.defi-events-detail-title-link {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 160ms ease;
}
.defi-events-detail-title-link:hover,
.defi-events-detail-title-link:focus-visible {
  color: var(--defi-accent) !important;
  outline: none;
}
.defi-events-detail-lede {
  margin: 0 0 18px;
  color: var(--defi-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}
.defi-events-detail-lede-mark {
  display: inline-block;
  margin-right: 6px;
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-events-detail-snapshot > div {
  min-height: 60px;
}
.defi-events-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--defi-line);
}
.defi-events-detail-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 30px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  color: var(--defi-muted) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}
.defi-events-detail-edit:hover,
.defi-events-detail-edit:focus,
.defi-events-year-tab:hover,
.defi-events-year-tab:focus,
.defi-events-pager-link:hover,
.defi-events-pager-link:focus,
.defi-events-pager-num:hover,
.defi-events-pager-num:focus {
  border-color: var(--defi-line-strong);
  color: var(--defi-heading) !important;
  background: var(--defi-accent-soft);
  outline: none;
}
.defi-events-detail-edit .material-symbols-outlined {
  font-size: 14px;
}
.defi-events-year-tabs,
.defi-event-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.defi-events-year-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface);
  color: var(--defi-muted) !important;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}
.defi-events-year-tab[disabled] {
  cursor: progress;
  opacity: 0.6;
}
.defi-events-year-tab em {
  font-style: normal;
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 600;
}
.defi-events-year-tab.is-active,
.defi-events-pager-num.is-active {
  border-color: var(--defi-accent);
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-heading) !important;
}
.defi-events-year-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--defi-line);
  border-bottom: 1px solid var(--defi-line);
  background: rgba(255, 255, 255, 0.015);
}
.defi-all-theses-year-bar .defi-events-year-bar {
  border-top: 0;
  border-bottom: 0;
}
.defi-all-theses-year-bar {
  padding: 0;
  margin: 0;
}
.defi-all-theses-create .defi-event-edit {
  margin-top: 0;
  padding-top: 14px;
}
.defi-events-year-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--defi-label, #9ca3af);
  padding-right: 6px;
  border-right: 1px solid var(--defi-line);
  margin-right: 4px;
}
.defi-events-year-bar-label .material-symbols-outlined {
  font-size: 16px;
}
.defi-events-year-bar > .defi-events-year-tab {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}
.defi-events-year-tab-num {
  font-weight: 700;
  letter-spacing: 0.05em;
}
.defi-events-year-tab-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--defi-muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.defi-events-year-tab.is-active .defi-events-year-tab-count {
  background: var(--defi-accent);
  color: #0a0a0a;
}
.defi-events-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.defi-events-actions-stack > .llm-generate-group {
  width: 100%;
}
.defi-events-actions-stack > .llm-generate-group > .llm-generate-trigger,
.defi-events-actions-stack > .defi-event-actions-trigger,
.defi-events-actions-stack .defi-events-delete-all-trigger {
  width: 100%;
  justify-content: space-between;
}
.defi-events-actions-stack > .defi-events-delete-all {
  width: 100%;
  margin: 4px 0 0;
}
.defi-events-delete-all-btn .material-symbols-outlined {
  font-size: 18px;
}
.defi-events-page .defi-events-index-card {
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}
.defi-events-page .defi-events-index-card > .defi-home-card-body {
  max-height: none;
  overflow: visible;
  padding: 0;
}
.defi-events-page .defi-events-page-bottom {
  max-width: 1480px;
  margin: 28px auto 0;
}
.defi-events-page .defi-events-page-bottom > .row {
  align-items: start;
}
.defi-events-page .defi-events-page-copy {
  position: static;
  padding: 0;
}
.defi-events-page .defi-events-page-copy .defi-section-kicker {
  margin-bottom: 12px;
}
.defi-events-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px;
  border-top: 1px solid var(--defi-line);
  background: var(--defi-header-bg);
  font-family: var(--font-mono);
}
.defi-events-pager-info {
  color: var(--defi-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-events-pager-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.defi-events-pager-link,
.defi-events-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface);
  color: var(--defi-muted) !important;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}
.defi-events-pager-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}
.defi-events-pager-ellipsis {
  color: var(--defi-dim);
  padding: 0 4px;
}
.defi-home-events-card .defi-events-stack {
  min-height: 800px;
}
.defi-home-events-card .defi-events-list {
  max-height: 920px;
}
.defi-event-detail-page {
  min-height: calc(100vh - 55px);
}
.defi-event-detail-page .defi-home-statusbar,
.defi-event-stats {
  max-width: 1480px;
  margin: 0 auto;
}
.defi-event-crumb {
  color: var(--defi-muted) !important;
  text-decoration: none;
}
.defi-event-crumb:hover {
  color: var(--defi-accent) !important;
  text-decoration: none;
}
.defi-event-hero,
.defi-event-grid {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}
.defi-event-edit-host {
  max-width: 1480px;
  margin: 32px auto 0;
  padding: 0 30px;
}
.defi-event-hero {
  padding: clamp(46px, 6vw, 92px) 0 clamp(30px, 4.5vw, 58px);
  border-bottom: 1px solid var(--defi-line);
}
.defi-event-title {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 24px);
  max-width: 1060px;
  margin: 16px 0 0;
  color: var(--defi-heading);
  font-size: clamp(42px, 5.4vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  overflow-wrap: anywhere;
}
.defi-event-title span {
  color: var(--defi-title-mark);
  font-family: var(--font-mono);
  font-size: 0.52em;
}
.defi-event-lede {
  max-width: 820px;
  margin: 26px 0 0;
  color: var(--defi-muted);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
}
/* Event detail hero — industry chips + Impact-lede, matching the events index rows. */
.defi-event-detail-chips {
  margin-top: 20px;
}
.defi-event-detail-impact {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--defi-muted);
}
.defi-event-detail-impact .defi-all-theses-falsification-label {
  margin-right: 10px;
  vertical-align: 0.18em;
}
.defi-event-snapshot {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--defi-stat-border);
  border-bottom: 1px solid var(--defi-stat-border);
}
.defi-event-snapshot > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  border-top: 1px solid var(--defi-stat-border-soft);
}
.defi-event-snapshot > div:first-child,
.defi-events-detail .defi-event-mini-panel:not(:first-of-type) {
  border-top: 0;
}
/* When two snapshot stats share one row, wrap them in this. Each child
   gets its own label/value pair; the row itself still gets the top border
   and 74px min-height from .defi-event-snapshot > div. */
.defi-event-snapshot-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.defi-event-snapshot-pair > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  border-top: 0;
  min-height: 0;
}
.defi-event-snapshot-label {
  color: var(--defi-label);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.defi-event-snapshot-desc {
  display: block;
  color: var(--defi-muted, #9ca3af);
  font-size: 10px;
  font-style: italic;
  margin-top: 2px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.78;
}
.defi-event-snapshot strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}
.defi-event-snapshot-llm {
  align-items: center;
}
.defi-event-llm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--defi-line-strong, #1f2937);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.defi-event-llm-pill img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1220;
}
.defi-event-llm-pill--manual {
  border-style: dashed;
}
.defi-event-llm-pill--manual .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
  color: var(--defi-muted, #9ca3af);
}
.defi-event-hero-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.defi-portfolio-actions-menu-block {
  justify-content: space-between;
  margin-top: 18px;
}
.defi-portfolio-view-thesis {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--defi-accent) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.defi-portfolio-view-thesis:hover,
.defi-portfolio-view-thesis:focus {
  color: var(--defi-heading) !important;
  text-decoration: none !important;
}
.defi-portfolio-trade-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
/* Gate note sits above algo panels. */
.defi-portfolio-trade-note {
  width: 100%;
}
.defi-portfolio-algoapp-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.defi-portfolio-algoapp-panel {
  position: relative;
  background: transparent !important;
  border: none;
  border-radius: 0;
  padding: 4px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.defi-portfolio-algoapp-panel-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.defi-portfolio-algoapp-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.defi-portfolio-algoapp-panel-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.defi-portfolio-algoapp-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--defi-heading) !important;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.defi-portfolio-algoapp-panel-title:hover,
.defi-portfolio-algoapp-panel-title:focus {
  color: var(--defi-accent) !important;
  text-decoration: none !important;
}
.defi-portfolio-algoapp-link-icon {
  font-size: 13px;
  color: var(--defi-dim);
  opacity: 0.7;
  transition:
    color 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}
.defi-portfolio-algoapp-panel-title:hover .defi-portfolio-algoapp-link-icon,
.defi-portfolio-algoapp-panel-title:focus .defi-portfolio-algoapp-link-icon {
  color: var(--defi-accent);
  opacity: 1;
  transform: translate(1px, -1px);
}
.defi-portfolio-algoapp-panel-kicker {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-portfolio-algoapp-panel-desc {
  font-family: var(--font-space-grotesk, "Space Grotesk", "Open Sans", sans-serif) !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  color: var(--defi-muted, rgba(247, 248, 248, 0.65)) !important;
  margin: 0 !important;
}
.defi-portfolio-algoapp-panel-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 2px;
}
.defi-algoapp-trade-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 12px;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}
.defi-algoapp-trade-btn > * {
  position: relative;
  z-index: 1;
}
.defi-algoapp-trade-btn .material-symbols-outlined {
  font-size: 15px;
  line-height: 1;
}
.defi-algoapp-trade-btn--live {
  border-color: rgba(239, 68, 68, 0.86);
}
.defi-algoapp-trade-btn--paper {
  border-color: rgba(59, 130, 246, 0.86);
}
.defi-algoapp-trade-btn:hover,
.defi-algoapp-trade-btn:focus {
  background: rgba(248, 250, 252, 0.06);
  color: var(--defi-heading) !important;
  outline: none;
}
.defi-algoapp-trade-btn--live:hover,
.defi-algoapp-trade-btn--live:focus {
  background: rgba(239, 68, 68, 0.1);
}
.defi-algoapp-trade-btn--paper:hover,
.defi-algoapp-trade-btn--paper:focus {
  background: rgba(59, 130, 246, 0.1);
}
.defi-algoapp-trade-btn.is-trading {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-accent, #10cfbd) !important;
}
.defi-algoapp-trade-btn.is-disabled {
  border-color: var(--defi-line);
  background: transparent;
  color: var(--defi-muted) !important;
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}
.defi-algoapp-trade-btn.is-loading {
  border-color: rgba(16, 207, 189, 0.78);
  background: rgba(16, 207, 189, 0.12);
  color: var(--defi-accent, #10cfbd) !important;
  opacity: 0.92;
  pointer-events: none;
}
.defi-algoapp-trade-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 207, 189, 0.24) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: defi-algoapp-trade-sweep 1s linear infinite;
}
.defi-algoapp-trade-btn.is-loading .material-symbols-outlined {
  animation: defi-algoapp-trade-spin 0.85s linear infinite;
}
.defi-algoapp-trade-btn:link,
.defi-algoapp-trade-btn:visited,
.defi-algoapp-trade-btn:hover,
.defi-algoapp-trade-btn:focus {
  text-decoration: none;
}
@keyframes defi-algoapp-trade-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes defi-algoapp-trade-sweep {
  to {
    transform: translateX(100%);
  }
}
.defi-event-submenu,
.defi-event-actions-menu > li {
  position: relative;
}
.defi-event-submenu-panel > li > a:hover,
.defi-event-submenu-panel > li > a:focus,
.defi-event-actions-menu > li > a:hover,
.defi-event-actions-menu > li > a:focus,
.defi-event-actions-menu .llm-generate-trigger:hover,
.defi-event-actions-menu .llm-generate-trigger:focus,
.defi-event-actions-menu > li > form > button:hover,
.defi-event-actions-menu > li > form > button:focus {
  background: var(--defi-accent-soft);
  color: var(--defi-heading) !important;
  outline: none;
  text-decoration: none;
}
.defi-events-delete-all-trigger,
.defi-events-delete-all-trigger:hover,
.defi-events-delete-all-trigger:focus {
  border-color: var(--defi-red, #ef4444) !important;
  color: var(--defi-red, #ef4444) !important;
  background: rgba(239, 68, 68, 0.06) !important;
}
.defi-events-delete-all-trigger .material-symbols-outlined,
.defi-event-actions-menu > li > a.defi-event-action-danger,
.defi-event-actions-menu
  > li
  > a.defi-event-action-danger
  .material-symbols-outlined,
.defi-event-actions-menu
  > li
  > a.defi-event-action-danger:hover
  .material-symbols-outlined,
.defi-event-actions-menu
  > li
  > a.defi-event-action-danger:focus
  .material-symbols-outlined {
  color: var(--defi-red, #ef4444) !important;
}
.defi-event-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.defi-event-card-actions .llm-generate-trigger,
.defi-event-actions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 3px;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 12px;
  text-transform: uppercase;
}
.defi-event-card-actions .llm-generate-trigger:hover,
.defi-event-card-actions .llm-generate-trigger:focus,
.defi-event-actions-trigger:hover,
.defi-event-actions-trigger:focus {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.15);
  color: var(--defi-button-text) !important;
  outline: none;
  text-decoration: none;
}
.defi-event-actions-trigger .material-symbols-outlined,
.defi-event-card-actions .llm-generate-trigger .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 15px;
}
.defi-event-actions-dropdown {
  display: inline-block;
  position: relative;
}
.defi-event-actions-menu {
  min-width: 220px;
  margin-top: 10px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  overflow: visible;
  padding: 7px;
}
.defi-event-actions-menu > li > a,
.defi-event-actions-menu .llm-generate-trigger,
.defi-event-actions-menu > li > form > button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--defi-muted) !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
.defi-event-actions-menu > li > a.defi-event-action-danger:hover,
.defi-event-actions-menu > li > a.defi-event-action-danger:focus {
  background: rgba(239, 68, 68, 0.1);
  color: var(--defi-red, #ef4444) !important;
}
.defi-event-actions-menu > li > .defi-event-action-disabled {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--defi-muted);
  opacity: 0.45;
  cursor: not-allowed;
}
.defi-event-actions-menu
  > li
  > .defi-event-action-disabled
  .material-symbols-outlined,
.defi-event-actions-menu .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 16px;
}
.defi-portfolio-meta-timestamps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  width: 100%;
}
.defi-portfolio-last-reset,
.defi-portfolio-last-update {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-event-actions-menu .llm-generate-group {
  display: block;
  width: 100%;
}
.defi-event-actions-menu .llm-dropdown-menu {
  right: 100%;
  top: -8px;
  margin-top: 0;
  margin-right: 10px;
  border-radius: 3px;
}
.defi-event-grid {
  padding-top: 34px;
}
.defi-event-detail-page .defi-event-theses-card {
  min-height: 760px;
  background: transparent;
  box-shadow: none;
}
.defi-event-detail-page .defi-event-theses-card > .defi-home-card-header {
  background: transparent;
  border-bottom: 1px solid var(--defi-line);
  margin-bottom: 0;
}
.defi-event-theses-card > .defi-home-card-body {
  padding: 18px 20px 22px;
}
.defi-event-detail-page .theses-list {
  gap: 14px;
}
.defi-event-detail-page .card-defi.thesis-card {
  margin-bottom: 0;
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background: var(--defi-row-bg);
  box-shadow: none;
  color: var(--defi-text);
  padding: 22px 24px;
}
.defi-event-detail-page .card-defi.thesis-card:hover {
  border-color: var(--defi-line-strong);
  background: var(--defi-row-hover);
  box-shadow: none;
}
.defi-event-detail-page .thesis-card-rank-num,
.defi-event-detail-page .thesis-card-impact,
.defi-event-detail-page .thesis-card-statement,
.defi-event-detail-page .confidence-bar-val,
.defi-event-detail-page .thesis-card-portfolio-value {
  color: var(--defi-heading);
}
.defi-event-detail-page .thesis-card-composite,
.defi-event-detail-page .confidence-bar-label,
.defi-event-detail-page .thesis-card-llm,
.defi-event-detail-page .thesis-card-portfolio-label,
.defi-event-detail-page .text-muted {
  color: var(--defi-muted) !important;
}
.defi-event-detail-page .thesis-card-pill,
.defi-event-detail-page .thesis-card-portfolio {
  border-color: var(--defi-line);
  background: var(--defi-surface-2);
  color: var(--defi-text);
}
.defi-event-detail-page .thesis-card-footer {
  border-top-color: var(--defi-line);
}
.defi-event-detail-page .confidence-bar-track {
  background: rgba(255, 255, 255, 0.08);
}
.defi-event-detail-page .confidence-bar-fill {
  background: var(--defi-accent);
}
.defi-event-detail-page .btn-defi-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 5px;
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-event-detail-page .btn-defi-primary:hover {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.16);
  color: var(--defi-button-text) !important;
  text-decoration: none;
}
.defi-event-detail-page #displayThesesForEvent-container > .m-t-20 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.defi-event-detail-page .empty-state-card {
  min-height: 440px;
  border: 1px dashed var(--defi-line);
  border-radius: 6px;
  background: transparent;
  color: var(--defi-muted);
}
.defi-event-detail-page .empty-state-card .material-symbols-outlined {
  color: var(--defi-empty-icon);
}
.defi-event-column-separator {
  min-height: 760px;
  border-left: 1px solid var(--defi-line);
}
.defi-event-side-rail {
  display: grid;
  gap: 22px;
}
.defi-event-side-copy {
  padding-top: 0;
}
.defi-event-side-copy .defi-section-kicker {
  margin-bottom: 18px;
}
.defi-event-side-copy .defi-section-title {
  max-width: 620px;
  margin: 0;
}
.defi-event-side-copy .defi-section-lede {
  max-width: 620px;
  margin-top: 18px;
}
.defi-event-mini-panel {
  border-top: 1px solid var(--defi-line);
  padding-top: 20px;
}
.defi-events-detail .defi-event-mini-panel:first-of-type .defi-event-chip-list {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--defi-line);
}
.defi-event-mini-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--defi-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.defi-event-mini-panel-title .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 17px;
}
.defi-event-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface-2);
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 10px;
  text-transform: uppercase;
}
.defi-event-chip--ticker {
  border-color: var(--defi-line-strong);
  color: var(--defi-accent);
}
.defi-event-muted {
  color: var(--defi-dim);
  font-size: 13px;
}
.defi-event-mini-panel--edit .defi-event-edit {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.defi-event-mini-panel--edit .defi-event-edit summary {
  min-height: 38px;
}
.defi-event-mini-panel--edit .defi-event-edit-grid {
  grid-template-columns: 1fr;
}
.defi-event-mini-panel--edit .defi-event-field,
.defi-event-mini-panel--edit .defi-event-field--wide,
.defi-event-mini-panel--edit .defi-event-field--full {
  grid-column: 1 / -1;
}
.defi-event-chart-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--defi-text);
  overflow: visible;
  box-shadow: none;
  padding-top: 18px;
}
.defi-event-chart-card .defi-home-card-header {
  min-height: 0;
  border-bottom: 0;
  background: transparent;
  padding: 0;
}
.defi-event-chart-wrap {
  position: relative;
  height: 230px;
  padding: 18px 0 0;
}
.defi-event-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.defi-event-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  color: var(--defi-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
}
html[data-defi-theme="light"] .defi-event-detail-page .confidence-bar-track {
  background: rgba(5, 5, 5, 0.08);
}
@media (max-width: 767px) {
  .defi-event-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: 40px;
    line-height: 1.03;
  }
  .defi-event-lede {
    font-size: 15px;
  }
  .defi-event-snapshot,
  .defi-event-side-rail {
    margin-top: 28px;
  }
  .defi-event-grid {
    padding-top: 24px;
  }
  .defi-event-theses-card {
    min-height: 620px;
  }
  .defi-event-detail-page .card-defi.thesis-card {
    padding: 18px;
  }
  .defi-event-detail-page .thesis-card-confidences {
    grid-template-columns: 1fr;
  }
  .defi-event-detail-page #displayThesesForEvent-container > .m-t-20 {
    align-items: flex-start;
    flex-direction: column;
  }
  .defi-event-chart-card {
    margin-bottom: 18px;
  }
  .defi-event-chart-wrap {
    height: 280px;
    padding: 18px;
  }
}
/* === THESIS DETAIL — DEFI RESEARCH STACK */
/* === Sits in the right column, below the status pill, above the Impact/Composite/Pillars snapshot. Status-aware via the Thesis model — queued/complete show $0. */
/* Default (legacy): Portfolio Value is the big number. */
/* === PNL-lead variant: PNL is the headline (bigger), Portfolio Value is a small supporting line below the percent tag. */
/* Milestone graph and detail sections */
.defi-thesis-detail-page {
  min-height: calc(100vh - 55px);
}
.defi-thesis-detail-page .defi-home-statusbar,
.defi-thesis-hero,
.defi-thesis-story,
.defi-thesis-milestones-section,
.defi-thesis-pillar-graph-section,
.defi-thesis-pillars-section {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}
.defi-thesis-hero {
  padding: clamp(46px, 6vw, 92px) 0 clamp(28px, 4.5vw, 54px);
  border-bottom: 1px solid var(--defi-line);
}
.defi-thesis-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  max-width: 1160px;
  margin: 16px 0 0;
  color: var(--defi-heading);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.defi-thesis-title-link {
  color: inherit !important;
  text-decoration: none;
  transition: color 160ms ease;
}
.defi-thesis-title-link:hover {
  color: var(--defi-accent, #10cfbd) !important;
  text-decoration: none;
}
.defi-thesis-title span {
  color: var(--defi-title-mark);
  font-family: var(--font-mono);
  font-size: 0.52em;
}
.defi-portfolio-detail-hero-card {
  margin: 0 0 clamp(30px, 4vw, 58px);
}
.defi-portfolio-detail-hero-card .defi-home-title {
  max-width: 980px;
  margin-bottom: 18px;
}
.defi-portfolio-detail-hero-card .defi-report-lede {
  max-width: 1120px;
}
.defi-thesis-lede {
  max-width: 900px;
  margin: 24px 0 0;
  color: var(--defi-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.68;
}
.defi-thesis-lede strong {
  color: var(--defi-heading);
  font-weight: 600;
}
.defi-thesis-event-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--defi-accent) !important;
  font-size: 13px;
  text-decoration: none;
}
.defi-thesis-event-link:hover,
.defi-activity-title a {
  color: var(--defi-heading) !important;
  text-decoration: none;
}
.defi-thesis-event-link .material-symbols-outlined,
.defi-activity-link .material-symbols-outlined {
  font-size: 16px;
}
.defi-thesis-hero-side-stack {
  display: grid;
  gap: 18px;
}
.defi-thesis-snapshot {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--defi-stat-border);
  border-bottom: 1px solid var(--defi-stat-border);
}
.defi-thesis-snapshot--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.defi-thesis-snapshot > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 14px;
  min-height: 74px;
  padding: 8px 0;
  border-top: 1px solid var(--defi-stat-border-soft);
}
.defi-thesis-snapshot > div:first-child,
.defi-thesis-pillar-overview-row:first-child,
.defi-thesis-pillar-stack-item:first-child {
  border-top: 0;
}
.defi-thesis-snapshot strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  grid-column: 2;
  grid-row: 1 / span 2;
}
.defi-thesis-portfolio--pnl-lead .defi-thesis-portfolio-pnl.is-up,
.defi-thesis-milestone-graph-label em.lean-good,
.defi-thesis-detail-page
  .defi-thesis-milestone-card.status-observed
  .defi-thesis-milestone-card-marker,
.defi-thesis-detail-page
  .defi-thesis-milestone-obs-bull
  .defi-thesis-milestone-obs-label {
  color: var(--defi-green);
}
.defi-thesis-portfolio--pnl-lead .defi-thesis-portfolio-pnl.is-down,
.defi-thesis-milestone-graph-label em.lean-fail,
.defi-thesis-detail-page .milestone-obs-bear .milestone-obs-label,
.defi-thesis-detail-page
  .defi-thesis-milestone-card.status-missed
  .defi-thesis-milestone-card-marker,
.defi-thesis-detail-page
  .defi-thesis-milestone-obs-bear
  .defi-thesis-milestone-obs-label {
  color: var(--defi-red);
}
.defi-thesis-portfolio--pnl-lead
  .defi-thesis-portfolio-supporting
  .supporting-value {
  color: var(--defi-heading);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.defi-thesis-chip-row {
  margin-top: 28px;
}
.defi-thesis-rail-panel,
.defi-activity-widget {
  border-top: 1px solid var(--defi-line);
  padding-top: 18px;
}
.defi-thesis-rail-panel-header,
.defi-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.defi-thesis-rail-panel-header h3,
.defi-activity-header h3,
.defi-thesis-pillar-overview-header h3,
.defi-thesis-detail-page .defi-thesis-milestones-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--defi-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.defi-thesis-rail-panel-header h3 .material-symbols-outlined,
.defi-activity-header h3 .material-symbols-outlined,
.defi-thesis-pillar-overview-header h3 .material-symbols-outlined,
.defi-thesis-detail-page .defi-card-inner-header .material-symbols-outlined,
.defi-pillar-detail-page .defi-card-inner-header .material-symbols-outlined,
.defi-thesis-detail-page
  .defi-thesis-milestones-header
  h3
  .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 17px;
}
.defi-activity-header span,
.defi-thesis-pillar-overview-header > span {
  color: var(--defi-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-thesis-rail-panel .llm-generate-trigger .material-symbols-outlined,
.defi-thesis-detail-page
  .defi-thesis-milestones-header-right
  .llm-generate-trigger
  .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 15px;
}
.defi-thesis-rail-panel .llm-dropdown-menu,
.defi-thesis-detail-page .defi-thesis-pillar-actions .llm-dropdown-menu,
.defi-thesis-detail-page
  .defi-thesis-milestones-header-right
  .llm-dropdown-menu {
  border-radius: 3px;
}
.defi-thesis-rail-panel-body::-webkit-scrollbar,
.defi-activity-feed::-webkit-scrollbar {
  width: 6px;
}
.defi-activity-feed {
  scrollbar-color: var(--defi-accent) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}
.defi-activity-feed::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--defi-accent);
}
.defi-activity-feed::-webkit-scrollbar-track,
.defi-thesis-stock-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
html[data-defi-theme="light"] .defi-activity-feed {
  scrollbar-color: var(--defi-accent) rgba(5, 5, 5, 0.08);
}
html[data-defi-theme="light"] .defi-activity-feed::-webkit-scrollbar-track,
html[data-defi-theme="light"]
  .defi-thesis-stock-table-wrap::-webkit-scrollbar-track {
  background: rgba(5, 5, 5, 0.08);
}
.defi-thesis-rail-panel--milestones .empty-state-card {
  padding: 26px 16px;
}
.defi-activity-feed {
  position: relative;
  max-height: 630px;
  overflow-y: auto;
  padding: 4px 4px 2px 30px;
}
.defi-activity-feed::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: 1px;
  background: var(--defi-line);
}
.defi-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 0 0 18px;
}
.defi-activity-marker {
  position: absolute;
  top: 1px;
  left: -29px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 50%;
  background: var(--defi-bg);
  color: var(--defi-accent);
}
.defi-activity-marker .material-symbols-outlined,
.defi-thesis-detail-page .milestone-timeline-marker .material-symbols-outlined {
  color: currentColor;
  font-size: 14px;
}
.defi-activity-date {
  margin-bottom: 6px;
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-activity-title {
  color: var(--defi-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.defi-activity-title a:hover {
  color: var(--defi-accent) !important;
  text-decoration: none;
}
.defi-activity-title span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 7px;
  border-radius: 3px;
  background: var(--defi-surface-2);
  color: var(--defi-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 7px;
  text-transform: uppercase;
}
.defi-activity-body {
  margin-top: 5px;
  color: var(--defi-muted);
  font-size: 13px;
  line-height: 1.5;
}
.defi-activity-link {
  color: var(--defi-muted) !important;
  text-decoration: none;
}
.defi-activity-link:hover {
  color: var(--defi-accent) !important;
}
.defi-activity-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--defi-muted);
  font-size: 13px;
}
.defi-activity-empty .material-symbols-outlined {
  color: var(--defi-empty-icon);
  font-size: 20px;
}
.defi-portfolio-algo-trades-card {
  margin-top: 6px;
}
.defi-algo-trades-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: none;
}
.defi-algo-trades-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.defi-algo-trades-table th,
.defi-algo-trades-table td {
  border-bottom: 1px solid var(--defi-stat-border-soft);
  padding: 13px 14px;
  vertical-align: top;
}
.defi-algo-trades-table th {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
}
.defi-algo-trades-table td {
  color: var(--defi-text);
  font-size: 12px;
}
.defi-algo-trades-table tbody tr:last-child td {
  border-bottom: 0;
}
.defi-algo-trade-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}
.defi-algo-trade-app-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(16, 207, 189, 0.45);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.defi-algo-trade-app-badge strong {
  display: block;
  color: var(--defi-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.defi-algo-trade-app-badge small {
  display: block;
  margin-top: 2px;
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.defi-algo-trades-table em {
  display: block;
  margin-top: 6px;
  padding-left: 37px;
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
}
.defi-algo-trade-env,
.defi-algo-trade-status,
.defi-algo-trade-side {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 3px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-algo-trade-env--paper {
  border: 1px solid rgba(16, 207, 189, 0.45);
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-accent);
}
.defi-algo-trade-env--live {
  border: 1px solid rgba(255, 82, 82, 0.45);
  background: rgba(255, 82, 82, 0.1);
  color: var(--defi-red);
}
.defi-algo-trade-status--accepted {
  background: rgba(16, 207, 189, 0.12);
  color: var(--defi-accent);
}
.defi-algo-trade-status--trading,
.defi-algo-trade-status--partial {
  background: rgba(46, 204, 113, 0.14);
  color: var(--defi-green);
}
.defi-algo-trade-status--requested,
.defi-algo-trade-status--sent {
  background: rgba(52, 152, 219, 0.14);
  color: #55c7ff;
}
.defi-algo-trade-status--failed,
.defi-algo-trade-status--stopped {
  background: rgba(255, 82, 82, 0.12);
  color: var(--defi-red);
}
.defi-algo-trade-status-cell {
  min-width: 155px;
}
.defi-algo-trade-status-time {
  display: block;
  margin-top: 7px;
  color: var(--defi-muted);
  font-size: 10px;
  line-height: 1.4;
}
.defi-algo-trade-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 280px;
}
.defi-algo-trade-tickers a,
.defi-algo-trade-tickers span {
  border: 1px solid var(--defi-stat-border);
  border-radius: 3px;
  color: var(--defi-accent) !important;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  text-decoration: none;
}
.defi-algo-trade-tickers a:hover {
  border-color: var(--defi-accent);
  color: var(--defi-heading) !important;
}
.defi-algo-trades-pager {
  margin-top: 16px;
}
.defi-algo-trade-stocks {
  margin-top: 22px;
  border-top: 1px solid var(--defi-line);
  padding-top: 18px;
}
.defi-algo-trade-stocks-header {
  margin-bottom: 12px;
  color: var(--defi-dim);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-algo-trade-stock-grid {
  display: grid;
  gap: 8px;
}
.defi-algo-trade-stock-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: none;
  border-bottom: 1px solid var(--defi-stat-border-soft);
  padding: 10px 4px;
}
.defi-algo-trade-stock-grid .defi-algo-trade-stock-row:last-child {
  border-bottom: none;
}
.defi-algo-trade-stock-row a {
  display: inline-block;
  margin-right: 8px;
  color: var(--defi-accent) !important;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
}
.defi-algo-trade-stock-row span {
  color: var(--defi-muted);
  font-size: 11px;
}
.defi-algo-trade-stock-row strong {
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}
.defi-algo-trade-stock-row strong.is-up {
  color: var(--defi-green);
}
.defi-algo-trade-stock-row strong.is-down {
  color: var(--defi-red);
}
.defi-algo-trade-side--long {
  background: rgba(52, 152, 219, 0.16);
  color: #55c7ff;
}
.defi-algo-trade-side--short {
  background: rgba(255, 82, 82, 0.14);
  color: var(--defi-red);
}
@media (max-width: 767px) {
  .defi-algo-trade-stock-row {
    grid-template-columns: 1fr;
  }
  .defi-algo-trade-stock-row {
    align-items: flex-start;
  }
  .defi-algo-trade-stock-row strong {
    text-align: left;
  }
}
.defi-thesis-detail-page .thesis-ai-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: 100%;
  margin-top: 18px;
  border-top: none;
  border-bottom: none;
  background: transparent;
  color: var(--defi-text);
  padding: 14px 0;
  box-shadow: none;
}
.defi-thesis-detail-page .thesis-ai-actions-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}
.defi-thesis-detail-page .thesis-ai-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  margin-left: auto;
}
.defi-thesis-detail-page .thesis-ai-actions-status,
.defi-thesis-detail-page .thesis-ai-actions-menu {
  display: inline-flex;
  align-items: center;
}
.defi-thesis-detail-page .thesis-ai-actions-info,
.defi-thesis-detail-page .thesis-ai-actions-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.defi-thesis-detail-page .thesis-ai-actions-info {
  flex: 0 1 auto;
}
.defi-thesis-detail-page .thesis-ai-actions-buttons {
  flex: 0 0 auto;
  justify-content: flex-start;
}
.defi-thesis-detail-page .thesis-ai-actions .defi-event-actions-trigger {
  min-height: 38px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-event-actions-menu > li > form {
  margin: 0;
  padding: 0;
}
.defi-thesis-detail-page .thesis-ai-actions-info .material-symbols-outlined {
  color: var(--defi-accent) !important;
  font-size: 18px;
}
.defi-thesis-detail-page .thesis-ai-actions-label {
  color: var(--defi-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .thesis-ai-actions-sub {
  color: var(--defi-muted);
  font-size: 12px;
}
.defi-thesis-detail-page .thesis-ai-actions .llm-generate-group,
.defi-thesis-pillar-actions .llm-generate-group {
  flex: 0 0 auto;
}
.defi-thesis-detail-page .thesis-ai-actions .llm-generate-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  min-height: 38px;
  border: 1px solid var(--defi-line-strong) !important;
  border-radius: 3px !important;
  background: rgba(16, 207, 189, 0.08) !important;
  color: var(--defi-heading) !important;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0 16px;
  text-transform: uppercase;
  box-shadow: none !important;
  opacity: 1 !important;
}
.defi-thesis-detail-page .thesis-ai-actions .llm-generate-trigger:hover,
.defi-thesis-detail-page .thesis-ai-actions .llm-generate-trigger:focus {
  border-color: rgba(16, 207, 189, 0.72) !important;
  background: rgba(16, 207, 189, 0.14) !important;
  color: var(--defi-heading) !important;
  text-decoration: none;
}
.defi-thesis-detail-page
  .thesis-ai-actions
  .llm-generate-trigger
  .material-symbols-outlined,
.defi-thesis-detail-page
  .defi-thesis-pillar-actions
  .llm-generate-trigger
  .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 16px;
}
.defi-thesis-detail-page .thesis-ai-actions .llm-generate-trigger-caret {
  margin-left: 2px;
}
.defi-thesis-detail-page .thesis-ai-actions .llm-dropdown-menu {
  left: 0;
  right: auto;
}
.defi-thesis-story {
  padding-top: 28px;
}
.defi-thesis-principles-card,
.defi-thesis-confidence-card {
  min-height: 100%;
}
.defi-thesis-confidence-chart {
  height: 230px;
  position: relative;
}
.defi-score-breakdown-caption {
  margin-top: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--defi-muted, #9ca3af);
}
.defi-confidence-summary-text {
  margin: 10px 0 4px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--defi-muted, #9ca3af);
  text-align: center;
}
.m-b-100 {
  margin-bottom: 100px !important;
}
.defi-thesis-column-separator {
  min-height: 100%;
  border-left: 1px solid var(--defi-line);
}
.defi-thesis-detail-page .defi-thesis-thinking-block {
  margin-bottom: 22px;
}
.defi-thesis-detail-page .defi-thesis-thinking-block:last-child,
.defi-thesis-pillar-info-col,
.defi-thesis-pillar-stocks-col {
  margin-bottom: 0;
}
.defi-thesis-detail-page .defi-thesis-thinking-label {
  margin-bottom: 9px;
  color: var(--defi-label);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .defi-thesis-thinking-text,
.defi-thesis-detail-page .defi-thesis-question-list {
  color: var(--defi-text);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.72;
}
.defi-thesis-detail-page .defi-thesis-question-list {
  margin: 0;
  padding-left: 20px;
}
.defi-thesis-detail-page .defi-thesis-question-list li {
  margin-bottom: 8px;
}
.defi-thesis-lean-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.defi-thesis-detail-page .defi-thesis-leaning-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 10px;
  text-transform: uppercase;
}
.defi-thesis-detail-page .defi-thesis-leaning-fail,
.defi-thesis-detail-page .status-broken,
.defi-thesis-detail-page .side-short .stock-card-side {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.1);
  color: var(--defi-red);
}
.defi-thesis-detail-page .defi-thesis-leaning-profit,
.defi-thesis-detail-page .defi-thesis-leaning-true {
  color: var(--defi-accent);
}
.defi-thesis-confidence-bar {
  display: grid;
  grid-template-columns: minmax(96px, 0.75fr) minmax(120px, 1fr) 34px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.defi-thesis-confidence-label {
  color: var(--defi-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-thesis-confidence-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.defi-thesis-confidence-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--defi-accent);
}
.defi-thesis-confidence-val {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.defi-thesis-milestones-section,
.defi-thesis-pillar-graph-section,
.defi-thesis-pillars-section {
  margin-top: 30px;
}
.defi-thesis-milestone-graph-section {
  border-top: 1px solid var(--defi-line);
  margin-top: 16px;
  padding: 16px 0 0;
}
.defi-thesis-milestone-graph {
  position: relative;
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(16, 207, 189, 0.08), transparent 32%),
    var(--defi-row-bg);
  overflow: hidden;
}
.defi-thesis-milestone-graph::before {
  content: "";
  position: absolute;
  inset: 12px 14px;
  background-image:
    linear-gradient(to right, var(--defi-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--defi-line) 1px, transparent 1px);
  background-size:
    25% 100%,
    100% 25%;
  opacity: 0.22;
  pointer-events: none;
}
.defi-thesis-milestone-graph-canvas {
  position: relative;
  min-height: clamp(410px, 24vw, 500px);
  padding: clamp(18px, 2.8vw, 30px);
}
.defi-thesis-milestone-graph-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.defi-thesis-milestone-graph-line,
.defi-thesis-milestone-graph-line-shadow {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.defi-thesis-milestone-graph-line-shadow {
  stroke: rgba(16, 207, 189, 0.12);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}
.defi-thesis-milestone-graph-line {
  stroke: url("#milestone-path-gradient");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}
.defi-thesis-milestone-graph-point {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.defi-thesis-milestone-graph-pop {
  position: relative;
  width: 24px;
  height: 24px;
}
.defi-thesis-milestone-graph-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 50%;
  background: var(--defi-bg);
  color: var(--defi-accent);
  box-shadow:
    0 0 0 4px var(--defi-bg),
    0 0 18px rgba(16, 207, 189, 0.16);
}
.defi-thesis-milestone-graph-node span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.defi-thesis-milestone-graph-point.status-observed
  .defi-thesis-milestone-graph-node {
  border-color: var(--defi-green);
  color: var(--defi-green);
}
.defi-thesis-milestone-graph-point.status-missed
  .defi-thesis-milestone-graph-node {
  border-color: var(--defi-red);
  color: var(--defi-red);
}
.defi-thesis-milestone-graph-point.status-superseded
  .defi-thesis-milestone-graph-node {
  border-color: var(--defi-muted);
  color: var(--defi-muted);
}
.defi-thesis-milestone-graph-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 3px;
  width: min(160px, 18vw);
  min-width: 118px;
  transform: translateX(-20%);
}
.defi-thesis-milestone-graph-point.is-odd .defi-thesis-milestone-graph-label {
  top: calc(100% + 8px);
  bottom: auto;
}
.defi-thesis-milestone-graph-point.is-first .defi-thesis-milestone-graph-label {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  transform: none;
}
.defi-thesis-milestone-graph-point.is-last .defi-thesis-milestone-graph-label {
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  bottom: auto;
  transform: none;
  text-align: right;
}
.defi-thesis-milestone-graph-date {
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.defi-thesis-milestone-graph-label strong {
  color: var(--defi-heading);
  font-size: clamp(10px, 0.92vw, 12px);
  font-weight: 600;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.defi-thesis-milestone-graph-label em {
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-thesis-hero
  .defi-thesis-milestone-graph-section
  .defi-thesis-milestones-header {
  margin-bottom: 12px;
}
.defi-thesis-hero
  .defi-thesis-milestone-graph-section
  .defi-thesis-milestones-header
  h3 {
  font-size: 9px;
  letter-spacing: 0.14em;
}
.defi-thesis-hero
  .defi-thesis-milestone-graph-section
  .defi-thesis-milestones-header
  h3
  .material-symbols-outlined {
  font-size: 14px;
}
.defi-thesis-hero
  .defi-thesis-milestone-graph-section
  .defi-thesis-milestones-meta {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.defi-thesis-hero
  .defi-thesis-milestone-graph-section
  .defi-thesis-milestones-header-right
  .llm-generate-trigger {
  min-height: 26px;
  font-size: 8px;
  padding: 0 9px;
}
.defi-thesis-pillars-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.defi-pillar-graph-widget .defi-section-stage,
.defi-thesis-pillar-graph-section .defi-section-stage,
.defi-thesis-milestones-section .defi-section-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}
.defi-pillar-graph-widget .defi-home-hero-copy,
.defi-thesis-pillar-graph-section .defi-home-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.defi-pillar-graph-widget .defi-home-title,
.defi-thesis-pillar-graph-section .defi-home-title {
  margin: 0;
}
.defi-thesis-pillar-graph-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.defi-thesis-pillar-overview {
  margin: 0 0 22px;
  border-top: 1px solid var(--defi-line);
  border-bottom: 1px solid var(--defi-line);
  padding: 18px 0;
}
.defi-thesis-pillar-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.defi-thesis-pillar-overview-list {
  display: grid;
  gap: 0;
}
.defi-thesis-pillar-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding-bottom: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--defi-line);
  color: var(--defi-text) !important;
  text-decoration: none !important;
}
.defi-thesis-pillar-overview-row:hover {
  color: var(--defi-heading) !important;
  text-decoration: none !important;
}
.defi-thesis-pillar-overview-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.defi-thesis-pillar-overview-main span {
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-thesis-pillar-overview-main strong {
  display: block;
  color: var(--defi-heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.24;
}
.defi-thesis-pillar-overview-main em {
  display: block;
  color: var(--defi-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 2px;
}
.defi-thesis-pillar-overview-stocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.defi-thesis-pillar-overview-stocks span,
.defi-thesis-pillar-overview-stocks em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface-2);
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0 9px;
  text-transform: uppercase;
}
.defi-thesis-pillar-overview-stocks span {
  border-color: var(--defi-line-strong);
  color: var(--defi-accent);
}
.defi-thesis-pillar-overview-stocks .defi-pillar-side--long {
  border-color: var(--defi-line-strong);
  color: var(--defi-accent);
}
.defi-thesis-pillar-overview-stocks .defi-pillar-side--short {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--defi-red, #ef4444);
  background: rgba(239, 68, 68, 0.08);
}
.defi-stock-detail-page .defi-thesis-pillar-overview-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.defi-thesis-pillar-overview-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--defi-muted, #71717a) !important;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-thesis-pillar-overview-meta .defi-home-meta-sep {
  color: var(--defi-dim, #52525b) !important;
  opacity: 0.6;
}
.defi-pillar-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--defi-muted, #71717a) !important;
}
.defi-pillar-meta-label {
  color: var(--defi-muted, #71717a) !important;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-pillar-meta-value {
  color: var(--defi-muted, #71717a) !important;
  font-weight: 500;
  font-feature-settings: "tnum" on;
}
.defi-pillar-meta-value.is-up {
  color: var(--defi-green, #10b981) !important;
}
.defi-pillar-meta-value.is-down {
  color: var(--defi-red, #ef4444) !important;
}
.defi-pillar-meta-value.is-flat {
  color: var(--defi-muted, #71717a) !important;
}
.defi-pillar-meta-pct {
  font-weight: 500;
  margin-left: 2px;
}
.defi-thesis-pillar-overview-empty {
  color: var(--defi-muted);
  font-size: 14px;
  padding: 14px 0 4px;
}
.defi-thesis-pillars-card > .defi-home-card-header {
  border-bottom: 1px solid var(--defi-line);
}
.defi-thesis-pillar-stack {
  display: grid;
  gap: 18px;
  padding: 20px;
}
.defi-thesis-pillar-stack-item {
  border-top: 1px solid var(--defi-line);
  background: transparent;
  overflow: visible;
}
.defi-thesis-pillar-row {
  padding: 20px;
}
.defi-thesis-pillar-row > .row {
  display: flex;
  flex-wrap: wrap;
}
.defi-thesis-pillar-info-col {
  padding-right: 22px;
}
.defi-thesis-pillar-stocks-col {
  padding-left: 22px;
}
.defi-thesis-detail-page .defi-card-inner,
.defi-pillar-detail-page .defi-card-inner {
  height: 100%;
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background: #0d0d0f;
  color: var(--defi-text);
  padding: 18px;
  box-shadow: none;
}
.defi-thesis-detail-page .defi-thesis-pillar-row .defi-card-inner,
.defi-pillar-detail-page .defi-card-inner {
  height: auto;
  border: 0;
  background: transparent;
  padding: 0;
}
.defi-thesis-detail-page .defi-card-inner-header,
.defi-pillar-detail-page .defi-card-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--defi-line);
}
.defi-thesis-detail-page .defi-card-inner-header h4,
.defi-pillar-detail-page .defi-card-inner-header h4 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--defi-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .text-muted {
  color: var(--defi-muted) !important;
}
.defi-thesis-detail-page .pillar-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--defi-line);
}
/* PILLAR #01 label on the left, LLM indicator pushed to the right edge of the
   same row, above the pillar name. */
.defi-thesis-detail-page .pillar-tab-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.defi-thesis-detail-page .pillar-tab-meta-row > .defi-hero-llm-indicator {
  margin-left: auto;
  margin-bottom: 0;
}
.defi-thesis-detail-page .pillar-tab-index {
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .pillar-tab-name {
  margin: 8px 0 8px;
  color: var(--defi-heading);
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  transition: color 160ms ease;
}
.defi-thesis-detail-page .defi-pillar-tab-row {
  position: relative;
}
.defi-thesis-detail-page .defi-pillar-tab-row .defi-pillar-tab-name-link {
  color: inherit;
  text-decoration: none;
}
.defi-thesis-detail-page
  .defi-pillar-tab-row
  .defi-pillar-tab-name-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.defi-thesis-detail-page .defi-pillar-tab-row:hover .pillar-tab-name,
.defi-thesis-detail-page .defi-pillar-tab-row:focus-within .pillar-tab-name {
  color: var(--defi-accent);
}
/* Inner links (Robinhood tickers) must sit above the stretched-link overlay. */
.defi-thesis-detail-page .defi-pillar-tab-row .defi-thesis-stock-symbol-link {
  position: relative;
  z-index: 2;
}
.defi-thesis-detail-page .pillar-tab-role {
  max-width: 760px;
  margin: 0;
  color: var(--defi-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.62;
}
.defi-thesis-detail-page .pillar-tab-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.defi-thesis-sub-bottlenecks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.defi-thesis-pillar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}
.defi-thesis-detail-page .defi-thesis-pillar-actions .llm-generate-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  min-width: 190px;
  border: 1px solid var(--defi-line-strong) !important;
  border-radius: 3px;
  background: rgba(16, 207, 189, 0.08) !important;
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 12px;
  text-transform: uppercase;
}
.defi-thesis-detail-page .defi-thesis-pillar-actions .btn-defi-ghost {
  justify-content: center;
  min-width: 150px;
  border-radius: 3px;
}
.defi-thesis-detail-page
  .defi-thesis-pillar-actions
  .llm-generate-trigger:hover,
.defi-thesis-detail-page
  .defi-thesis-pillar-actions
  .llm-generate-trigger:focus {
  border-color: rgba(16, 207, 189, 0.72) !important;
  background: rgba(16, 207, 189, 0.15) !important;
  color: var(--defi-button-text) !important;
  outline: none;
}
.defi-thesis-detail-page .sub-bottleneck-tag,
.defi-thesis-detail-page .milestone-order-pill,
.defi-thesis-detail-page .milestone-lean-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface-2);
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 8px;
  text-transform: uppercase;
}
.defi-thesis-detail-page .pillar-status-block {
  display: grid;
  gap: 10px;
  max-width: 640px;
  padding: 2px 0 0;
  text-align: left;
}
.defi-thesis-detail-page .pillar-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  justify-self: start;
  margin: 0;
  padding: 0 12px;
  text-transform: uppercase;
}
.defi-thesis-detail-page .status-weakening {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.defi-thesis-detail-page .pillar-status-note {
  max-width: 100%;
  margin: 0;
  color: var(--defi-muted);
  font-size: 13px;
  line-height: 1.55;
}
.defi-thesis-detail-page .pillars-summary-grid,
.defi-thesis-detail-page .pillar-stocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.defi-thesis-detail-page .pillar-summary-card,
.defi-thesis-detail-page .stock-card {
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background: var(--defi-row-bg);
  color: var(--defi-text);
  text-decoration: none;
}
.defi-thesis-detail-page .pillar-summary-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}
.defi-thesis-detail-page .pillar-summary-card:hover {
  border-color: var(--defi-line-strong);
  background: var(--defi-row-hover);
  color: var(--defi-text);
  text-decoration: none;
}
.defi-thesis-detail-page .pillar-summary-index,
.defi-thesis-detail-page .pillar-summary-scores .num,
.defi-thesis-detail-page .stock-card-ticker {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-weight: 700;
}
.defi-thesis-detail-page .pillar-summary-name {
  color: var(--defi-heading);
  font-size: 13px;
  font-weight: 700;
}
.defi-thesis-detail-page .pillar-summary-role,
.defi-thesis-detail-page .pillar-summary-scores .lbl,
.defi-thesis-detail-page .stock-card-name,
.defi-thesis-detail-page .stock-card-scores,
.defi-thesis-detail-page .stock-card-rationale,
.defi-thesis-detail-page
  .defi-thesis-milestone-card.status-superseded
  .defi-thesis-milestone-card-marker {
  color: var(--defi-muted);
}
.defi-thesis-detail-page .stock-card {
  border-left: 3px solid var(--defi-accent);
  padding: 14px;
}
.defi-thesis-detail-page .stock-card.side-short {
  border-left-color: var(--defi-red);
}
.defi-thesis-detail-page .stock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.defi-thesis-detail-page .stock-card-side {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 8px;
}
.defi-thesis-detail-page .stock-card-rationale {
  margin-top: 10px;
  border-left: 2px solid var(--defi-accent);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.06);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.defi-thesis-detail-page .stock-card-scores {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--defi-line);
  font-size: 10px;
}
.defi-thesis-pillar-score-chart {
  height: 220px;
}
.defi-pillar-score-breakdown-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.defi-pillar-score-breakdown-row {
  display: grid;
  gap: 7px;
}
.defi-pillar-score-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-pillar-score-breakdown-head strong {
  color: var(--defi-heading);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.defi-pillar-score-breakdown-track {
  height: 6px;
  overflow: hidden;
  border: 1px solid var(--defi-line);
  background: rgba(255, 255, 255, 0.04);
}
.defi-pillar-score-breakdown-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--defi-accent), var(--defi-green));
}
.defi-thesis-pillar-stocks-col .pillar-stocks-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.defi-thesis-stock-table-wrap {
  --defi-stock-accent: var(--defi-accent, #10cfbd);
  --defi-stock-bg: var(--defi-bg, #ffffff);
  --defi-stock-dim: var(--defi-dim, #6b7280);
  --defi-stock-heading: var(--defi-heading, #111827);
  --defi-stock-line: var(--defi-line, rgba(17, 24, 39, 0.12));
  --defi-stock-line-strong: var(--defi-line-strong, rgba(16, 207, 189, 0.4));
  --defi-stock-muted: var(--defi-muted, #6b7280);
  --defi-stock-red: var(--defi-red, #ff6b6b);
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: var(--defi-stock-accent) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}
html[data-defi-theme="light"] .defi-thesis-stock-table-wrap {
  scrollbar-color: var(--defi-stock-accent) rgba(5, 5, 5, 0.08);
}
.defi-thesis-stock-table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.defi-thesis-stock-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--defi-stock-accent);
}
.defi-thesis-stock-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.defi-thesis-stock-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--defi-stock-line);
  background: var(--defi-stock-bg);
  color: var(--defi-stock-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 14px 10px 12px;
  text-align: left;
  text-transform: uppercase;
}
.defi-thesis-stock-table td {
  border-bottom: 1px solid var(--defi-stock-line);
  color: var(--defi-stock-muted);
  padding: 14px 10px;
  vertical-align: top;
}
.defi-thesis-stock-table th:first-child,
.defi-thesis-stock-table td:first-child {
  padding-left: 0;
}
.defi-thesis-stock-table th:nth-child(1) {
  width: 25%;
}
.defi-thesis-stock-table th:nth-child(2),
.defi-thesis-stock-table th:nth-child(3) {
  width: 12%;
}
.defi-thesis-stock-symbol {
  color: var(--defi-stock-heading);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.defi-thesis-stock-company {
  margin-top: 4px;
  color: var(--defi-stock-muted);
  font-size: 12px;
  line-height: 1.35;
}
.defi-thesis-stock-side {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 3px;
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 9px;
}
.defi-thesis-stock-side--short,
.defi-thesis-stock-table .side-short .defi-thesis-stock-side {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.1);
  color: var(--defi-stock-red);
}
.defi-thesis-stock-score {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--defi-stock-heading);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.defi-thesis-stock-score small {
  color: var(--defi-stock-dim);
  font-size: 10px;
  font-weight: 800;
}
.defi-thesis-stock-rationale {
  max-width: 460px;
  color: var(--defi-stock-muted);
  font-size: 13px;
  line-height: 1.5;
}
.defi-thesis-detail-page .milestone-timeline {
  position: relative;
  padding-left: 34px;
}
.defi-thesis-detail-page .milestone-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 12px;
  width: 1px;
  background: var(--defi-line);
}
.defi-thesis-detail-page .milestone-timeline-item {
  position: relative;
  margin-bottom: 18px;
}
.defi-thesis-detail-page .milestone-timeline-marker {
  position: absolute;
  top: 0;
  left: -34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 50%;
  background: var(--defi-bg);
  color: var(--defi-accent);
}
.defi-thesis-detail-page .milestone-timeline-content {
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background: var(--defi-row-bg);
  padding: 14px 16px;
}
.defi-thesis-detail-page .milestone-timeline-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.defi-thesis-detail-page .milestone-timeline-date {
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .milestone-timeline-title {
  color: var(--defi-heading);
  font-size: 15px;
  font-weight: 700;
}
.defi-thesis-detail-page .milestone-timeline-desc {
  margin-top: 5px;
  color: var(--defi-muted);
  font-size: 13px;
  line-height: 1.55;
}
.defi-thesis-detail-page .milestone-checkpoint {
  margin-top: 10px;
  border-left: 2px solid var(--defi-accent);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.06);
  color: var(--defi-text);
  font-size: 12px;
  line-height: 1.5;
  padding: 9px 10px;
}
.defi-thesis-detail-page .milestone-checkpoint-label,
.defi-thesis-detail-page .defi-thesis-milestone-checkpoint-label {
  color: var(--defi-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .milestone-observations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.defi-thesis-detail-page .milestone-obs {
  border: 1px solid var(--defi-line);
  border-radius: 5px;
  background: var(--defi-surface-2);
  padding: 9px;
}
.defi-thesis-detail-page .milestone-obs-label {
  display: block;
  margin-bottom: 4px;
  color: var(--defi-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .milestone-obs-text {
  color: var(--defi-muted);
  font-size: 12px;
  line-height: 1.45;
}
.defi-thesis-detail-page .defi-thesis-milestones-horizontal {
  margin-top: 26px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--defi-line);
  max-width: 100%;
}
.defi-thesis-detail-page .defi-thesis-milestones-detail {
  margin-top: 24px;
  padding-top: 24px;
}
.defi-thesis-detail-page .defi-thesis-milestones-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.defi-thesis-detail-page .defi-thesis-milestones-header-left {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.defi-thesis-detail-page .defi-thesis-milestones-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-header-right
  .llm-generate-trigger {
  min-height: 30px;
  border: 1px solid var(--defi-line-strong) !important;
  border-radius: 3px !important;
  background: rgba(16, 207, 189, 0.08) !important;
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 12px;
  text-transform: uppercase;
  box-shadow: none !important;
  opacity: 1 !important;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-header-right
  .llm-generate-trigger:hover,
.defi-thesis-detail-page
  .defi-thesis-milestones-header-right
  .llm-generate-trigger:focus {
  border-color: rgba(16, 207, 189, 0.72) !important;
  background: rgba(16, 207, 189, 0.14) !important;
  color: var(--defi-button-text) !important;
  text-decoration: none;
}
.defi-thesis-detail-page .defi-thesis-milestones-meta {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .defi-thesis-milestones-scroll {
  position: relative;
  padding: 6px 4px 18px;
}
.defi-thesis-detail-page .defi-thesis-milestones-cards-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--defi-line-strong) transparent;
  padding-bottom: 4px;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-detail
  .defi-thesis-milestones-cards-scroll {
  overflow: visible;
  padding-bottom: 0;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-cards-scroll::-webkit-scrollbar {
  height: 8px;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-cards-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-cards-scroll::-webkit-scrollbar-thumb {
  background: var(--defi-line-strong);
  border-radius: 4px;
}
.defi-thesis-detail-page .defi-thesis-milestones-cards {
  display: flex;
  align-items: stretch;
  gap: 18px;
  min-width: 100%;
  width: max-content;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-detail
  .defi-thesis-milestones-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  width: 100%;
}
.defi-thesis-detail-page .defi-thesis-milestone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background: var(--defi-row-bg);
  padding: 14px 16px 16px;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-detail
  .defi-thesis-milestone-card {
  width: auto;
  min-width: 0;
  max-width: none;
}
.defi-thesis-detail-page .defi-thesis-milestone-card::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 1px;
  height: 16px;
  background: var(--defi-line);
  transform: translateX(-50%);
  opacity: 0.6;
}
.defi-thesis-detail-page
  .defi-thesis-milestones-detail
  .defi-thesis-milestone-card::before {
  display: none;
}
.defi-thesis-detail-page .defi-thesis-milestone-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.defi-thesis-detail-page .defi-thesis-milestone-card-date {
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .defi-thesis-milestone-card-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--defi-accent);
  font-size: 16px;
}
.defi-thesis-detail-page .defi-thesis-milestone-card-title {
  margin: 0 0 6px;
  color: var(--defi-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.defi-thesis-detail-page .defi-thesis-milestone-card-desc {
  margin: 0 0 10px;
  color: var(--defi-muted);
  font-size: 12px;
  line-height: 1.5;
}
.defi-thesis-detail-page .defi-thesis-milestone-checkpoint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--defi-accent);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.06);
  padding: 9px 10px;
  margin-bottom: 10px;
  color: var(--defi-text);
  font-size: 12px;
  line-height: 1.5;
}
.defi-thesis-detail-page .defi-thesis-milestone-obs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.defi-thesis-detail-page .defi-thesis-milestone-obs-row {
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface-2);
  padding: 7px 9px;
}
.defi-thesis-detail-page .defi-thesis-milestone-obs-label {
  display: block;
  margin-bottom: 3px;
  color: var(--defi-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-thesis-detail-page .defi-thesis-milestone-obs-text {
  color: var(--defi-muted);
  font-size: 11px;
  line-height: 1.45;
}
@media (max-width: 768px) {
  .defi-thesis-detail-page .defi-thesis-milestone-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
  .defi-thesis-detail-page
    .defi-thesis-milestones-detail
    .defi-thesis-milestone-card {
    width: auto;
    min-width: 0;
    max-width: none;
  }
}
.defi-thesis-detail-page .empty-state-card {
  border: 1px dashed var(--defi-line);
  border-radius: 6px;
  background: transparent;
  color: var(--defi-muted);
  padding: 34px 18px;
  text-align: center;
}
.defi-thesis-detail-page .empty-state-card .material-symbols-outlined {
  color: var(--defi-empty-icon);
  font-size: 34px;
}
.defi-thesis-detail-page .btn-defi-primary,
.defi-thesis-detail-page .btn-defi-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 5px;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 12px;
  text-transform: uppercase;
}
.defi-thesis-detail-page .btn-defi-primary:hover,
.defi-thesis-detail-page .btn-defi-ghost:hover {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.15);
  color: var(--defi-button-text) !important;
  text-decoration: none;
}
html[data-defi-theme="light"]
  .defi-thesis-detail-page
  .defi-thesis-confidence-track {
  background: rgba(5, 5, 5, 0.08);
}
html[data-defi-theme="light"] .defi-thesis-detail-page .defi-card-inner {
  background: var(--defi-surface);
}
html[data-defi-theme="light"]
  .defi-thesis-detail-page
  .defi-thesis-pillar-row
  .defi-card-inner {
  background: transparent;
}
@media (max-width: 991px) {
  .defi-thesis-detail-page .pillar-tab-header,
  .defi-thesis-detail-page .thesis-ai-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .defi-thesis-detail-page .pillar-tab-actions,
  .defi-thesis-pillar-overview-stocks {
    justify-content: flex-start;
  }
  .defi-thesis-pillar-row > .row {
    display: block;
  }
  .defi-thesis-pillar-info-col {
    border-right: 0;
    padding-right: 15px;
    padding-bottom: 22px;
    margin-bottom: 22px;
  }
  .defi-thesis-pillar-stocks-col {
    padding-left: 15px;
  }
  .defi-thesis-pillar-overview-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 14px 0;
  }
  .defi-thesis-pillars-section .defi-section-stage {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 767px) {
  .defi-thesis-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: 24px;
    line-height: 1.32;
  }
  .defi-thesis-lede {
    font-size: 15px;
  }
  .defi-thesis-snapshot {
    margin-top: 28px;
  }
  .defi-thesis-story {
    padding-top: 22px;
  }
  .defi-thesis-detail-page .defi-home-card-header,
  .defi-thesis-detail-page .defi-card-inner-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .defi-thesis-confidence-bar {
    grid-template-columns: 1fr 34px;
  }
  .defi-thesis-confidence-label {
    grid-column: 1 / -1;
  }
  .defi-thesis-detail-page .milestone-observations,
  .defi-thesis-detail-page .pillars-summary-grid,
  .defi-thesis-detail-page .pillar-stocks-grid {
    grid-template-columns: 1fr;
  }
  .defi-thesis-lean-row {
    flex-direction: column;
  }
  .defi-thesis-milestone-graph {
    overflow-x: auto;
    scrollbar-color: var(--defi-line-strong) transparent;
    scrollbar-width: thin;
  }
  .defi-thesis-milestone-graph::-webkit-scrollbar {
    height: 8px;
  }
  .defi-thesis-milestone-graph::-webkit-scrollbar-track {
    background: transparent;
  }
  .defi-thesis-milestone-graph::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--defi-line-strong);
  }
  .defi-thesis-milestone-graph-canvas {
    min-width: 560px;
    min-height: 500px;
  }
  .defi-thesis-milestone-graph-label {
    width: 118px;
    min-width: 118px;
  }
}
/* === Modal context: more vertical breathing room between fields and a slightly more comfortable input padding so the form feels less crowded. */
/* === Light-gray subject box used inside confirm modals to display a long thesis statement / item name without breaking the layout. */
/* === Section divider label inside the defi-event-edit grid (e.g. "Confidence Scores (0–100)"). Caps + letter-spaced, sits on its own row. */
.defi-event-edit {
  --defi-event-edit-bg: var(--defi-surface-2, #15161d);
  --defi-event-edit-line: var(--defi-line, rgba(255, 255, 255, 0.12));
  --defi-event-edit-text: var(--defi-text, #f7f8f8);
  --defi-event-edit-muted: var(--defi-muted, rgba(247, 248, 248, 0.62));
  --defi-event-edit-accent: var(--defi-accent, #10cfbd);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--defi-event-edit-line);
}
.event-page-header .defi-event-edit,
.modal .defi-event-edit {
  --defi-event-edit-bg: #ffffff;
  --defi-event-edit-line: #e5e7eb;
  --defi-event-edit-text: #111827;
  --defi-event-edit-muted: #374151;
  --defi-event-edit-accent: #0f766e;
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.modal .defi-event-edit-grid {
  gap: 18px;
}
.modal .defi-event-field {
  gap: 9px;
}
.modal .defi-event-field input,
.modal .defi-event-field textarea,
.modal .defi-event-field select {
  padding: 11px 13px;
}
.defi-event-edit summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--defi-event-edit-accent);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  list-style: none;
  text-transform: uppercase;
}
.defi-event-edit summary::-webkit-details-marker,
.defi-event-edit-host--inline[hidden] {
  display: none;
}
.defi-event-edit summary .material-symbols-outlined,
.defi-event-save-btn .material-symbols-outlined,
.defi-event-cancel-btn .material-symbols-outlined {
  font-size: 17px;
}
.defi-event-edit-form {
  margin-top: 16px;
}
.defi-event-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.defi-event-edit-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.defi-event-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.defi-event-field--wide {
  grid-column: span 2;
}
.defi-event-field--full {
  grid-column: 1 / -1;
}
.defi-event-field span {
  color: var(--defi-event-edit-muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.defi-event-field-desc {
  color: var(--defi-event-edit-muted, #6b7280) !important;
  font-family: var(--font-space-grotesk, "Space Grotesk", "Open Sans", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin-top: 3px;
  display: block;
}
.defi-event-edit-card {
  grid-column: 1 / -1;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--defi-event-edit-line, #e2e8f0);
  border-radius: 6px;
  padding: 16px 18px;
  margin-top: 8px;
}
.defi-event-edit-card-header {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--defi-event-edit-line, #e2e8f0);
}
.defi-event-edit-card-title {
  display: block;
  color: var(--defi-event-edit-accent, #0f766e);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-event-edit-card-desc {
  color: var(--defi-event-edit-muted, #4b5563);
  font-family: var(--font-space-grotesk, "Space Grotesk", "Open Sans", sans-serif) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin: 4px 0 0;
}
.defi-event-edit-card .defi-event-field input,
.defi-event-edit-card .defi-event-field select,
.defi-event-edit-card .defi-event-field .select2-container .select2-choice {
  background: var(--defi-event-edit-bg, #ffffff);
}
.defi-event-field input,
.defi-event-field textarea,
.defi-event-field select {
  width: 100%;
  border: 1px solid var(--defi-event-edit-line);
  border-radius: 5px;
  background: var(--defi-event-edit-bg);
  color: var(--defi-event-edit-text);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.45;
  padding: 10px 12px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.defi-event-field textarea {
  min-height: 84px;
  resize: vertical;
}
.defi-event-field input:focus,
.defi-event-field textarea:focus,
.defi-event-field select:focus {
  border-color: var(--defi-event-edit-accent);
  box-shadow: 0 0 0 3px rgba(16, 207, 189, 0.1);
}
.defi-event-field .select2-container {
  width: 100% !important;
}
.defi-event-field .select2-container .select2-choice {
  height: 42px;
  line-height: 40px;
  border-radius: 5px;
  border: 1px solid var(--defi-event-edit-line, #e5e7eb);
  background: var(--defi-event-edit-bg, #ffffff);
  color: var(--defi-event-edit-text, #111827);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 0 12px;
}
.defi-event-field .select2-container .select2-choice .select2-arrow {
  top: 5px;
  right: 6px;
}
.defi-milestones-select-wrapper .select2-container {
  min-width: 130px;
}
.datepicker.datepicker-dropdown {
  z-index: 1060 !important;
}
.defi-event-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.defi-event-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(16, 207, 189, 0.42);
  border-radius: 5px;
  background: rgba(16, 207, 189, 0.1);
  color: var(--defi-event-edit-accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 16px;
  text-transform: uppercase;
}
.defi-event-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--defi-event-edit-line);
  border-radius: 5px;
  background: transparent;
  color: var(--defi-event-edit-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}
.defi-event-cancel-btn:hover,
.defi-event-cancel-btn:focus {
  border-color: var(--defi-stat-border);
  color: var(--defi-event-edit-text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.defi-event-subject {
  background: #f4f5f0;
  border-radius: 5px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: #1a1d18;
  margin: 14px 0 0;
  word-break: break-word;
}
.defi-event-section-label {
  grid-column: 1 / -1;
  width: 100%;
  margin: 12px 0 2px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--defi-event-edit-muted, #6b7280);
}
.defi-event-edit-host--inline {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 44px) 0;
  border-top: 1px solid var(--defi-line);
}
.defi-pillar-edit-unified-form > .tab-content > .tab-pane {
  max-height: 80vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 4px 4px 0;
}
.defi-pillar-edit-unified-form > .tab-content > .tab-pane::-webkit-scrollbar {
  width: 7px;
}
.defi-pillar-edit-unified-form
  > .tab-content
  > .tab-pane::-webkit-scrollbar-track {
  background: transparent;
}
.defi-pillar-edit-unified-form
  > .tab-content
  > .tab-pane::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(16, 207, 189, 0.42);
}
.defi-pillar-edit-stocks {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--defi-event-edit-line);
}
.defi-pillar-edit-stocks-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.defi-pillar-edit-stocks-head .material-symbols-outlined {
  font-size: 17px;
  color: var(--defi-event-edit-accent);
}
.defi-pillar-edit-stocks-head h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--defi-event-edit-text);
}
.defi-pillar-edit-stocks-count {
  margin-left: auto;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--defi-event-edit-muted);
}
.defi-pillar-edit-stocks-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.defi-pillar-edit-stock-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--defi-event-edit-line);
  border-radius: 5px;
  background: var(--defi-event-edit-bg);
}
.defi-pillar-edit-stock-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.defi-pillar-edit-stock-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.defi-pillar-edit-stock-ticker {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--defi-event-edit-text);
}
.defi-pillar-edit-stock-side {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid var(--defi-event-edit-line);
  color: var(--defi-event-edit-muted);
}
.defi-pillar-edit-stock-side--long {
  color: #10cfbd;
  border-color: rgba(16, 207, 189, 0.42);
  background: rgba(16, 207, 189, 0.08);
}
.defi-pillar-edit-stock-side--short {
  color: #ef6b6b;
  border-color: rgba(239, 107, 107, 0.42);
  background: rgba(239, 107, 107, 0.08);
}
.defi-pillar-edit-stock-company {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--defi-event-edit-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.defi-pillar-edit-stock-remove {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--defi-event-edit-line);
  border-radius: 4px;
  background: transparent;
  color: var(--defi-event-edit-muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}
.defi-pillar-edit-stock-remove .material-symbols-outlined {
  font-size: 16px;
}
.defi-pillar-edit-stock-remove:hover,
.defi-pillar-edit-stock-remove:focus {
  border-color: rgba(239, 107, 107, 0.42);
  color: #ef6b6b;
  outline: none;
}
.defi-pillar-edit-stock-rationale-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.defi-pillar-edit-stock-rationale-label .defi-event-field-caption {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--defi-event-edit-muted);
}
.defi-pillar-edit-stock-rationale-label textarea {
  width: 100%;
  min-height: 44px;
  resize: vertical;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--defi-event-edit-text);
  background: var(--defi-event-edit-input-bg, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--defi-event-edit-line);
  border-radius: 4px;
  padding: 6px 8px;
}
.defi-pillar-edit-stock-rationale-label textarea:focus {
  outline: none;
  border-color: rgba(16, 207, 189, 0.6);
}
.defi-pillar-edit-stock-empty {
  padding: 10px 12px;
  border: 1px dashed var(--defi-event-edit-line);
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--defi-event-edit-muted);
  text-align: center;
  list-style: none;
}
.defi-pillar-edit-add-stock {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--defi-event-edit-line);
}
@media (max-width: 1199px) {
  .defi-thesis-side-grid,
  .defi-home-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .defi-home-card--regime {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .defi-portfolio-pressure-col {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--defi-line);
  }
}
@media (max-width: 767px) {
  .defi-home-page {
    padding-left: 18px;
    padding-right: 18px;
  }
  .defi-home-statusbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .defi-home-statusbar-left,
  .defi-home-statusbar-right {
    flex-wrap: wrap;
  }
  .defi-home-signals,
  .defi-home-charts,
  .defi-home-portfolio-summary,
  .defi-thesis-side-grid,
  .defi-home-portfolio--compact .defi-home-portfolio-pills,
  .defi-section-heading,
  .defi-event-edit-grid,
  .defi-event-edit-grid--2col {
    grid-template-columns: 1fr;
  }
  .defi-section-heading {
    display: grid;
    align-items: start;
  }
  .defi-section-stage {
    margin-top: 30px;
    padding-top: 22px;
  }
  .defi-story-section {
    margin-bottom: 44px;
  }
  .defi-story-widget > .defi-home-card,
  .defi-story-widget .defi-home-events-card {
    min-height: 760px;
  }
  .defi-data-story .defi-home-chart-wrap {
    height: 240px;
  }
  .defi-home-stat {
    padding-left: 0;
  }
  .defi-home-portfolio-row,
  .defi-home-portfolio--compact .defi-home-portfolio-row {
    grid-template-columns: 28px 1fr;
  }
  .defi-home-portfolio-row .material-symbols-outlined {
    display: none;
  }
  .defi-event-field--wide,
  .defi-event-field--full {
    grid-column: 1 / -1;
  }
  .defi-event-edit-actions {
    justify-content: stretch;
  }
  .defi-event-save-btn {
    width: 100%;
  }
}
/* Milestones filter toolbar */
/* === Lift the thesis block's overflow when a dropdown is open so the action menu can drop below the row instead of being clipped. The header below carries its own top-radius so the visual stays the same when the block is closed. */
.defi-report-page {
  min-height: calc(100vh - 80px);
}
.defi-report-page .defi-home-statusbar,
.defi-report-hero,
.defi-report-section {
  max-width: 1480px;
  margin: 0 auto;
}
.defi-report-hero {
  padding: 70px 0 48px;
  border-bottom: 1px solid var(--defi-line);
}
.defi-report-hero .defi-home-title {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: 72px;
}
.defi-report-subtitle {
  max-width: 1180px;
  margin: 0 0 22px;
  color: var(--defi-heading);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.25;
}
.defi-report-lede {
  max-width: 860px;
  margin: 0;
  color: var(--defi-muted);
  font-size: 16px;
  line-height: 1.7;
}
.defi-report-lede strong,
.defi-report-stock-tags strong {
  color: var(--defi-heading);
}
.defi-report-chip-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-report-back {
  display: inline-flex;
  margin: 0 16px 22px 0;
  color: var(--defi-accent) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
}
/* Top row of the detail hero: holds the green sub-breadcrumb back/next
   links on the left and pushes the LLM indicator to the right edge.
   Sits one line above the kicker ("Thesis detail" / CREATED). */
.defi-hero-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.defi-hero-top-row > .defi-hero-llm-indicator {
  margin-left: auto;
  margin-bottom: 0;
}
.defi-report-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.defi-report-stat {
  position: relative;
  min-height: 92px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface);
  padding: 18px;
}
.defi-report-stat span {
  display: block;
  margin-bottom: 12px;
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-report-stat strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
/* Tiny green LLM info pill that sits in the bottom-right of a stat tile.
   Used on the significant-events index Active Events tile — the badge that
   used to live in the Section 1 header is rendered here instead, so the
   section header reads clean. */
.defi-report-stat-llm {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--defi-green, #2ea44f);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}
.defi-report-stat-llm .material-symbols-outlined {
  font-size: 12px;
  font-weight: 200;
  line-height: 1;
}
.defi-report-section {
  padding: 14px 0 0;
}
.defi-report-reader {
  color: var(--defi-text);
}
.defi-report-reader .defi-scroll-pop {
  --defi-scroll-pop-hover-lift: 0px;
  --defi-scroll-pop-hover-scale: 1;
}
.defi-report-reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--defi-line);
  border-bottom: 1px solid var(--defi-line);
}
.defi-report-section .defi-report-reader-head,
.defi-report-stack-option:first-child,
.defi-report-panel-stage,
.defi-report-pillar-line:first-child,
.defi-report-milestone-line:first-child,
.defi-report-index-row:first-child,
.defi-report-thesis-row:first-child,
.defi-report-thesis-card:first-child {
  border-top: 0;
}
.defi-report-reader-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-report-reader-head h3 .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 20px;
}
.defi-report-reader-head .meta {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-report-stack-option:hover,
.defi-report-stack-option:focus-visible,
.defi-report-stack-option.is-active {
  background: transparent;
  outline: 0;
}
.defi-report-stack-option.is-active {
  box-shadow: inset 2px 0 0 var(--defi-accent);
}
.defi-report-stack-option.is-active .defi-report-stack-num,
.defi-report-stack-option:hover .defi-report-stack-num,
.defi-report-stack-option.is-active .defi-report-stack-copy strong,
.defi-report-stack-option:hover .defi-report-stack-copy strong,
.defi-milestones-key-row:hover .defi-milestones-key-arrow {
  color: var(--defi-accent);
}
.defi-report-stack-copy > span,
.defi-report-panel-meta,
.defi-report-panel-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--defi-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-report-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}
.defi-report-tab {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--defi-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.defi-report-tab:hover,
.defi-report-tab:focus-visible,
.defi-report-tab.is-active {
  color: var(--defi-accent);
  outline: 0;
}
.defi-report-tab-sep {
  color: var(--defi-dim);
  font-size: 15px;
}
.defi-report-panel {
  display: none;
  padding: 22px 0 20px;
}
.defi-report-panel.is-active {
  display: block;
}
.defi-scroll-pop-enabled .defi-report-panel.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}
.defi-report-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}
.defi-report-panel-main {
  min-width: 0;
}
.defi-report-panel-title {
  max-width: 1120px;
  margin: 14px 0 12px;
  color: var(--defi-heading);
  font-size: clamp(30px, 2.8vw, 46px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0;
}
.defi-report-editorial-line {
  margin: 18px 0 0;
  color: var(--defi-muted);
  font-size: 15px;
  line-height: 1.62;
}
.defi-report-editorial-line span,
.defi-report-section-label {
  margin-right: 10px;
  color: var(--defi-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-report-editorial-section {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--defi-line);
}
.defi-report-mini-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.defi-report-mini-chip-row > span {
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-report-mini-chip-row em {
  padding: 5px 8px;
  border: 1px solid var(--defi-line);
  color: var(--defi-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-report-effect-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
}
.defi-report-effect-node {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 118px;
  padding-top: 12px;
  border-top: 1px solid var(--defi-line);
}
.defi-report-effect-node:first-child {
  border-top-color: var(--defi-accent);
}
.defi-report-effect-node span {
  color: var(--defi-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-report-effect-node p {
  margin: 0;
  color: var(--defi-text);
  font-size: 14px;
  line-height: 1.58;
}
.defi-thesis-principles-report-stack {
  display: grid;
  gap: 28px;
}
.defi-thesis-detail-page .defi-thesis-principles-report-stack {
  padding-top: 4px;
}
.defi-thesis-detail-page
  .defi-thesis-principles-report-stack
  .defi-report-effects-section {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.defi-thesis-detail-page
  .defi-thesis-principles-report-stack
  .defi-report-effect-node {
  border-top: 0;
  padding-top: 0;
}
.defi-thesis-detail-page
  .defi-thesis-principles-report-stack
  .defi-report-effect-node:first-child {
  border-top: 0;
}
.defi-report-bullet-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.defi-report-bullet-list li {
  position: relative;
  padding-left: 19px;
  color: var(--defi-muted);
  font-size: 15px;
  line-height: 1.55;
}
.defi-report-bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--defi-accent);
}
.defi-report-bullet-list strong {
  margin-right: 8px;
  color: var(--defi-heading);
}
.defi-report-bottleneck-list {
  gap: 7px;
  margin-top: 12px;
}
.defi-report-bottleneck-list li {
  font-size: 13px;
}
.defi-report-pillar-lines,
.defi-report-milestone-lines {
  display: grid;
  gap: 0;
  margin-top: 12px;
}
.defi-report-pillar-line,
.defi-report-milestone-line {
  display: grid;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.defi-report-milestone-line {
  gap: 20px;
  padding: 26px 0 34px;
}
.defi-report-milestone-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.defi-report-milestone-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  min-width: 0;
}
.defi-report-milestone-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--defi-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.defi-report-milestone-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.defi-report-pillar-line {
  grid-template-columns: 1fr;
  align-items: start;
}
.defi-report-pillar-line span,
.defi-report-milestone-line span {
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-report-milestone-line .defi-report-milestone-date {
  color: var(--defi-green);
  font-weight: 800;
  white-space: nowrap;
}
.defi-report-milestone-line .defi-report-milestone-order {
  color: var(--defi-dim);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--defi-line);
  white-space: nowrap;
}
.defi-report-milestone-line .defi-report-milestone-lean {
  color: var(--defi-accent);
  font-weight: 800;
  white-space: nowrap;
}
.defi-report-milestone-line .defi-report-milestone-lean.lean-failing {
  color: var(--defi-red);
}
.defi-report-milestone-line .defi-report-milestone-lean.lean-neutral,
.defi-report-milestone-line .defi-report-milestone-lean.lean-pending {
  color: var(--defi-dim);
}
.defi-report-pillar-line strong,
.defi-report-milestone-line strong {
  display: block;
  margin-top: 0;
  color: var(--defi-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.defi-report-pillar-line p {
  margin: 6px 0 0;
  color: var(--defi-muted);
  font-size: 13px;
  line-height: 1.5;
}
.defi-report-milestone-line p,
.defi-report-milestone-desc {
  margin: 0;
  color: var(--defi-muted);
  font-size: 14px;
  line-height: 1.6;
}
.defi-report-milestone-desc .defi-report-milestone-order {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.defi-report-milestone-line p em {
  color: var(--defi-heading);
  font-style: normal;
  font-weight: 800;
}
.defi-report-milestone-line .defi-thesis-milestone-checkpoint {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--defi-accent);
  border-radius: 4px;
  background: rgba(16, 207, 189, 0.06);
  color: var(--defi-text);
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 14px;
  max-width: 100%;
  margin-bottom: 0;
}
.defi-thesis-milestone-checkpoint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.defi-thesis-milestone-checkpoint-q {
  color: var(--defi-text);
  font-size: 12px;
  line-height: 1.5;
}
.defi-report-milestone-line .defi-thesis-milestone-checkpoint span {
  color: var(--defi-text);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.defi-report-milestone-line .defi-thesis-milestone-checkpoint-label {
  color: var(--defi-muted) !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
}
.defi-report-observation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.defi-report-observation-grid div {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.defi-report-observation-grid span {
  color: var(--defi-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-report-observation-case--base span {
  color: var(--defi-accent);
}
.defi-report-observation-case--bear span {
  color: var(--defi-red);
}
.defi-report-observation-case--bull span {
  color: var(--defi-green);
}
.defi-report-observation-grid p {
  margin-top: 7px;
  font-size: 13px;
}
.defi-report-observation-grid--actual span,
.defi-milestones-key-lean.lean-true,
.defi-milestones-key-lean.lean-profitable {
  color: var(--defi-green);
}
.defi-report-pillar-scorecard,
.defi-report-stock-score-grid {
  display: grid;
  gap: 9px;
}
.defi-report-score-bar {
  display: grid;
  grid-template-columns: 92px minmax(70px, 1fr) 28px;
  align-items: center;
  gap: 10px;
}
.defi-report-score-bar span,
.defi-report-stock-exposure span,
.defi-report-inline-bar span,
.defi-report-inline-bar strong,
.defi-report-aside-stats span {
  color: var(--defi-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-report-score-bar i {
  display: block;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.defi-report-score-bar b,
.defi-report-inline-bar i {
  display: block;
  height: 100%;
  background: var(--defi-accent);
}
.defi-report-score-bar strong {
  color: var(--defi-heading);
  font-size: 11px;
  text-align: right;
}
.defi-report-stock-exposure-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}
.defi-thesis-stock-tabs-card .defi-report-stock-exposure-list {
  margin-top: 0;
  border-top: 0;
}
.defi-thesis-stock-tabs-card .defi-report-stock-exposure {
  grid-template-columns: minmax(0, 0.75fr) 92px minmax(220px, 0.9fr);
}
.defi-thesis-stock-tabs-card .defi-thesis-stock-symbol-link {
  color: inherit;
}
.defi-report-stock-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.defi-report-stock-tabs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: start;
  gap: 22px;
}
.defi-report-stock-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--defi-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0;
  text-transform: uppercase;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}
.defi-report-stock-tab:hover,
.defi-report-stock-tab:focus,
.defi-report-stock-tab.is-active {
  color: var(--defi-accent);
  outline: none;
}
.defi-report-stock-tab-sep {
  color: rgba(255, 255, 255, 0.26);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.defi-report-stock-side-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.defi-report-stock-side-tab {
  color: #60a5fa;
}
.defi-report-stock-side-tab[data-report-stock-select$="-short"] {
  color: var(--defi-stock-red, #ff6b6b);
}
.defi-report-stock-side-tab:hover,
.defi-report-stock-side-tab:focus,
.defi-report-stock-side-tab.is-active {
  color: #60a5fa;
}
.defi-report-stock-side-tab[data-report-stock-select$="-short"]:hover,
.defi-report-stock-side-tab[data-report-stock-select$="-short"]:focus,
.defi-report-stock-side-tab[data-report-stock-select$="-short"].is-active {
  color: var(--defi-stock-red, #ff6b6b);
}
.defi-report-stock-side-panel {
  display: none;
  gap: 18px;
}
.defi-report-stock-side-panel.is-active {
  display: grid;
}
.defi-report-stock-side-panel.is-active .defi-report-stock-exposure {
  display: grid;
}
.defi-report-stock-side-empty-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--defi-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding-top: 18px;
  text-transform: uppercase;
}
.defi-report-stock-exposure {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) 92px minmax(260px, 0.7fr);
  gap: 20px;
  padding: 8px 0 6px;
  border-top: 0;
}
.defi-report-stock-exposure.is-active,
.defi-report-index-list {
  display: grid;
}
.defi-report-stock-exposure strong {
  display: block;
  margin-top: 5px;
  color: var(--defi-heading);
  font-size: 16px;
}
.defi-report-stock-exposure p {
  margin: 7px 0 0;
  color: var(--defi-muted);
  font-size: 13px;
  line-height: 1.5;
}
.defi-report-stock-score {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 5px;
  color: var(--defi-muted);
}
.defi-report-stock-score strong {
  margin: 0;
  color: var(--defi-heading);
  font-size: 26px;
}
.defi-report-stock-strip {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.defi-report-pillar-tickers span,
.defi-report-stock-strip span {
  color: var(--defi-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.defi-report-panel-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
  padding-top: 3px;
}
.defi-report-inline-bars {
  display: grid;
  gap: 13px;
  padding-top: 8px;
}
.defi-report-inline-bar {
  display: grid;
  grid-template-columns: 104px minmax(70px, 1fr) 30px;
  align-items: center;
  gap: 14px;
}
.defi-report-inline-bar div {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.defi-report-inline-bar strong {
  color: var(--defi-heading);
  text-align: right;
}
.defi-report-aside-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--defi-line);
}
.defi-report-aside-stats div {
  display: grid;
  gap: 8px;
}
.defi-report-aside-stats strong {
  color: var(--defi-heading);
  font-size: 22px;
}
.defi-report-stock-strip {
  justify-content: flex-start;
  padding-top: 18px;
  border-top: 1px solid var(--defi-line);
}
.defi-report-index-card,
.defi-report-card {
  border-radius: 3px;
}
.defi-report-index-card > .defi-home-card-body {
  max-height: 690px;
  overflow: auto;
  padding: 0;
  scrollbar-color: var(--defi-accent) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}
.defi-report-index-card:has(.defi-scroll-pop),
.defi-report-index-card:has(.defi-scroll-pop) > .defi-home-card-body,
.defi-milestones-thesis-block:has(.dropdown-menu.show) {
  overflow: visible;
}
.defi-report-index-card > .defi-home-card-body::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
.defi-report-index-card > .defi-home-card-body::-webkit-scrollbar-track,
.defi-report-milestones::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.defi-report-index-card > .defi-home-card-body::-webkit-scrollbar-thumb,
.defi-report-milestones::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--defi-accent);
}
.defi-report-index-row,
.defi-report-thesis-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  border-top: 1px solid var(--defi-line);
  color: var(--defi-text) !important;
  text-decoration: none !important;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}
.defi-report-index-row {
  grid-template-columns: 48px minmax(0, 1fr) 110px 128px 26px;
  padding: 0 16px;
}
.defi-report-index-row:hover,
.defi-report-thesis-row:hover {
  background: var(--defi-row-hover);
  color: var(--defi-heading) !important;
}
.defi-report-index-row .material-symbols-outlined,
.defi-report-thesis-row .material-symbols-outlined {
  color: var(--defi-dim);
  font-size: 18px;
}
.defi-report-thesis-card.defi-scroll-pop:hover,
.defi-report-thesis-card.defi-scroll-pop:focus-within {
  background: var(--defi-surface);
  border-radius: 0;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--defi-line);
  z-index: 20;
}
.defi-report-thesis-card.defi-scroll-pop:hover + .defi-report-thesis-card,
.defi-report-thesis-card.defi-scroll-pop:focus-within
  + .defi-report-thesis-card {
  border-top-color: transparent;
}
.defi-report-index-card:has(
  .defi-report-thesis-card.defi-scroll-pop:last-child:hover
),
.defi-report-index-card:has(
  .defi-report-thesis-card.defi-scroll-pop:last-child:focus-within
) {
  border-bottom-color: transparent;
}
.defi-report-thesis-card-title:hover,
.defi-report-thesis-card:focus-within .defi-report-thesis-card-title,
.defi-report-empty a {
  color: var(--defi-accent) !important;
}
.defi-report-thesis-option .defi-all-theses-thesis-title {
  font-size: 22px;
}
.defi-report-thesis-option-link .material-symbols-outlined {
  font-size: 18px;
}
.defi-report-row-rank {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.defi-report-row-title,
.defi-report-thesis-main strong {
  min-width: 0;
  color: var(--defi-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.defi-report-row-meta,
.defi-report-thesis-main span {
  color: var(--defi-muted);
  font-size: 11px;
}
.defi-report-row-score {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.defi-report-copy-block {
  position: sticky;
  top: 90px;
  padding: 26px 0 0 20px;
}
.defi-report-copy-block h2 {
  max-width: 520px;
  margin: 18px 0 18px;
  color: var(--defi-heading);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.22;
}
.defi-report-copy-block p {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--defi-muted);
  font-size: 16px;
  line-height: 1.75;
}
.defi-report-steps {
  display: grid;
  gap: 10px;
  max-width: 440px;
  border-top: 1px solid var(--defi-line);
  padding-top: 18px;
}
.defi-report-steps span {
  color: var(--defi-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-report-empty {
  padding: 30px 18px;
  color: var(--defi-muted);
  font-size: 14px;
  text-align: center;
}
.defi-report-meta-line,
.defi-report-lean-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}
.defi-report-meta-line span {
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface-2);
  color: var(--defi-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 7px 10px;
  text-transform: uppercase;
}
.defi-report-lean-line {
  align-items: center;
  color: var(--defi-muted);
  font-size: 14px;
}
.defi-report-lean {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 9px;
  text-transform: uppercase;
}
html[data-defi-theme="light"]
  .defi-report-index-card
  > .defi-home-card-body::-webkit-scrollbar-track,
html[data-defi-theme="light"] .defi-report-milestones::-webkit-scrollbar-track {
  background: rgba(5, 5, 5, 0.08);
}
.defi-milestones-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 10px 0 24px;
  margin: 38px 0 30px;
  border-bottom: 1px solid var(--defi-line);
}
.defi-milestones-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.defi-milestones-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--defi-dim);
}
.defi-milestones-filter-label .material-symbols-outlined {
  font-size: 14px;
  color: var(--defi-accent);
}
.defi-milestones-status-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.defi-milestones-status-pill-tab {
  padding: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--defi-muted, #94a3b8);
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none !important;
}
.defi-milestones-status-pill-tab:hover {
  color: var(--defi-heading, #fff);
}
.defi-milestones-status-pill-tab.is-active {
  color: var(--defi-accent, #00e599);
  border-bottom-color: var(--defi-accent, #00e599);
}
.defi-milestones-filter-dropdowns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.defi-milestones-select-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  color: var(--defi-dim);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0;
}
.defi-milestones-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--defi-line);
  border-radius: 0;
  padding: 1px 22px 3px 0;
  color: var(--defi-heading, #e2e8f0);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--defi-dim) 50%),
    linear-gradient(135deg, var(--defi-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 7px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  transition: border-color 0.15s ease;
}
.defi-milestones-select-wrapper select:focus,
.defi-milestones-select-wrapper select:hover,
.defi-milestones-filter select:focus {
  outline: none;
  border-color: var(--defi-accent);
}
.defi-milestones-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--defi-red, #ff5c5c);
  border-bottom: 1px solid rgba(255, 92, 92, 0.32);
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.defi-milestones-filter-reset .material-symbols-outlined {
  font-size: 14px;
}
.defi-milestones-filter-reset:hover {
  color: #fff;
}
.defi-milestones-key-list .defi-report-empty {
  padding: 22px 16px;
  color: var(--defi-dim);
  font-size: 13px;
}
.defi-milestones-key-card,
.defi-milestones-table-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 16px;
}
.defi-milestones-key-card > .defi-home-card-header,
.defi-milestones-table-card > .defi-home-card-header {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--defi-line);
  background: transparent;
}
.defi-milestones-key-card > .defi-home-card-body,
.defi-milestones-table-card > .defi-home-card-body {
  padding: 0;
}
.defi-milestones-pager {
  margin-top: 36px;
  padding: 22px 0 0;
  border-top: 1px solid var(--defi-line);
  background: transparent;
}
.defi-milestones-key-list,
.defi-milestones-key-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.defi-milestones-key-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--defi-line);
  text-decoration: none;
  color: inherit;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.defi-milestones-key-row:last-child {
  border-bottom: 0;
}
.defi-milestones-key-row:hover {
  background: transparent;
  color: var(--defi-heading);
  text-decoration: none;
}
.defi-milestones-key-date {
  font-size: 12px;
  font-weight: 800;
  color: var(--defi-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-milestones-key-title {
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--defi-heading);
  line-height: 1.3;
  margin-bottom: 4px;
}
.defi-milestones-key-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 9px;
  color: var(--defi-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-milestones-key-lean {
  font-weight: 800;
}
.defi-milestones-key-lean.lean-failing {
  color: var(--defi-red);
}
.defi-milestones-key-lean.lean-neutral,
.defi-milestones-key-lean.lean-pending,
.defi-milestones-lean-pill.lean-neutral,
.defi-milestones-lean-pill.lean-pending,
.defi-milestones-status-pill.status-superseded {
  color: var(--defi-dim);
}
.defi-milestones-key-arrow {
  color: var(--defi-dim);
  font-size: 18px;
  justify-self: end;
}
.defi-milestones-key-group + .defi-milestones-key-group {
  margin-top: 22px;
}
.defi-milestones-key-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}
.defi-milestones-key-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--defi-heading);
}
.defi-milestones-key-group-count {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--defi-dim);
}
.defi-milestones-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 52px;
  margin-top: 30px;
}
.defi-milestones-thesis-block {
  overflow: visible;
  background: transparent;
}
.defi-milestones-thesis-header {
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  background: transparent;
  border-bottom: 1px solid var(--defi-line);
  margin-bottom: 10px;
}
.defi-milestones-thesis-kicker {
  font-size: 9px;
  font-weight: 800;
  color: var(--defi-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.defi-milestones-thesis-title {
  display: block;
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--defi-green);
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 14px;
}
.defi-milestones-thesis-title:hover {
  color: var(--defi-accent);
  text-decoration: none;
  opacity: 0.9;
}
.defi-milestones-thesis-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  color: var(--defi-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-milestones-thesis-event {
  color: var(--defi-dim);
}
.defi-milestones-thesis-count {
  color: var(--defi-dim);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.defi-milestones-items-list {
  display: flex;
  flex-direction: column;
}
.defi-milestones-item-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--defi-line);
  transition: all 0.15s ease;
}
.defi-milestones-item-row:last-child {
  border-bottom: 0;
}
.defi-milestones-item-date-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.defi-milestones-item-date {
  font-size: 12px;
  font-weight: 800;
  color: var(--defi-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.defi-milestones-item-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-accent);
  border: 1px solid rgba(16, 207, 189, 0.25);
}
.defi-milestones-item-status.status-observed {
  background: rgba(40, 167, 69, 0.1);
  color: var(--defi-green);
  border-color: rgba(40, 167, 69, 0.3);
}
.defi-milestones-item-status.status-missed {
  background: rgba(220, 53, 69, 0.1);
  color: var(--defi-red);
  border-color: rgba(220, 53, 69, 0.3);
}
.defi-milestones-item-status.status-superseded {
  background: rgba(255, 255, 255, 0.04);
  color: var(--defi-dim);
  border-color: var(--defi-line);
}
.defi-milestones-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.defi-milestones-item-title {
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--defi-heading);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.defi-milestones-item-q {
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 12px;
  color: var(--defi-muted);
  line-height: 1.4;
  opacity: 0.85;
}
.defi-milestones-item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.defi-milestones-item-lean {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.defi-milestones-item-order {
  font-size: 9px;
  color: var(--defi-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--defi-line);
  white-space: nowrap;
}
.defi-milestones-select-wrapper .select2-container .select2-choice {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--defi-line) !important;
  color: var(--defi-heading) !important;
  border-radius: 4px;
  height: 32px;
  line-height: 30px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-milestones-select-wrapper .select2-container .select2-choice .select2-arrow {
  top: 1px;
}
.defi-milestones-select-wrapper .select2-container .select2-choice .select2-chosen {
  color: var(--defi-heading) !important;
}
body.dark .select2-drop,
.defi-milestones-page .select2-drop {
  background: #16171a !important;
  color: #e6e6e6 !important;
  border: 1px solid var(--defi-line) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
body.dark .select2-drop .select2-search input,
.defi-milestones-page .select2-drop .select2-search input {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid var(--defi-line) !important;
  color: #fff !important;
}
body.dark .select2-results,
.defi-milestones-page .select2-results {
  color: #cccccc !important;
}
body.dark .select2-results .select2-highlighted,
.defi-milestones-page .select2-results .select2-highlighted {
  background: rgba(16, 207, 189, 0.2) !important;
  color: var(--defi-accent) !important;
}
.defi-milestones-lean-pill,
.defi-milestones-status-pill {
  display: inline-block;
  padding: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.defi-milestones-lean-pill.lean-true,
.defi-milestones-lean-pill.lean-profitable,
.defi-milestones-status-pill.status-observed {
  color: var(--defi-green);
  border-color: var(--defi-green);
}
.defi-milestones-lean-pill.lean-failing,
.defi-milestones-status-pill.status-missed {
  color: var(--defi-red);
  border-color: var(--defi-red);
}
.defi-milestones-status-pill.status-pending {
  color: var(--defi-accent);
  border-color: var(--defi-accent);
}
@media (max-width: 768px) {
  .defi-milestones-key-row {
    grid-template-columns: 70px 1fr 20px;
    gap: 10px;
    padding: 10px;
  }
  .defi-milestones-item-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }
  .defi-milestones-item-right {
    justify-content: flex-start;
  }
}
  .defi-milestones-table thead {
    display: none;
  }
  .defi-milestones-table,
  .defi-milestones-table tbody,
  .defi-milestones-table tr,
  .defi-milestones-table td {
    display: block;
    width: 100%;
  }
  .defi-milestones-table tbody tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--defi-line);
  }
  .defi-milestones-table tbody td {
    padding: 4px 0;
    border: none;
  }
  .defi-milestones-col-date,
  .defi-milestones-col-order,
  .defi-milestones-col-lean,
  .defi-milestones-col-status {
    width: auto;
    display: inline-block;
    margin-right: 10px;
  }
}
@media (max-width: 991px) {
  .defi-report-hero .defi-home-title {
    font-size: 54px;
  }
  .defi-report-subtitle,
  .defi-report-copy-block h2 {
    font-size: 28px;
  }
  .defi-report-index-row,
  .defi-report-thesis-row {
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    padding: 14px 12px;
  }
  .defi-report-row-meta,
  .defi-report-row-score,
  .defi-report-lean {
    grid-column: 2 / -1;
    justify-self: start;
    text-align: left;
  }
  .defi-report-copy-block {
    position: static;
    padding: 28px 0 0;
  }
  .defi-report-panel-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .defi-report-panel-aside {
    position: static;
  }
  .defi-report-pillar-line,
  .defi-report-effect-chain,
  .defi-report-observation-grid,
  .defi-report-stock-tabs-layout,
  .defi-report-stock-exposure {
    grid-template-columns: 1fr;
  }
  .defi-report-stock-side-tabs {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .defi-report-hero {
    padding: 44px 0 34px;
  }
  .defi-report-hero .defi-home-title {
    font-size: 42px;
  }
  .defi-report-stat-strip {
    grid-template-columns: 1fr;
  }
  .defi-report-reader-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .defi-report-tabs {
    padding-left: 0;
  }
  .defi-report-panel-title {
    font-size: 34px;
  }
  .defi-report-inline-bar {
    grid-template-columns: 96px minmax(60px, 1fr) 30px;
  }
}
/* === Page-specific defi styles for the year-view thesis browser. Each card is a thesis (big text), with the event context sitting underneath. No tabs — thesis blocks are stacked inside the card body, page scrolls naturally. */
/* === Splits each thesis block into a 9-col thesis content column + 3-col portfolio side card so the side card stays right-anchored. */
/* PNL is the prominent number on the All Theses side card. */
/* === Defi-styled pagination: mono, hairline-bordered controls, accent fill on the active page, ellipsis truncation when the page list is long. */
.defi-all-theses-page .defi-home-statusbar {
  max-width: 1480px;
  margin: 0 auto;
}
.defi-all-theses-section {
  padding: 44px 0 0;
}
.defi-all-theses-card > .defi-home-card-body {
  padding: 0;
}
.defi-all-theses-list {
  display: grid;
}
.defi-all-theses-thesis-block {
  position: relative;
  padding: 34px 30px 30px;
  border-top: 1px solid var(--defi-line);
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.defi-all-theses-thesis-block:first-child {
  border-top: 0;
  padding-top: 26px;
}
.defi-all-theses-thesis-block.defi-scroll-pop:hover,
.defi-all-theses-thesis-block.defi-scroll-pop:focus-visible,
.defi-all-theses-thesis-block.defi-scroll-pop:focus-within {
  background: var(--defi-surface);
  border-radius: 0;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--defi-line);
  z-index: 20;
}
.defi-all-theses-thesis-block.defi-scroll-pop:hover
  + .defi-all-theses-thesis-block,
.defi-all-theses-thesis-block.defi-scroll-pop:focus-visible
  + .defi-all-theses-thesis-block,
.defi-all-theses-thesis-block.defi-scroll-pop:focus-within
  + .defi-all-theses-thesis-block {
  border-top-color: transparent;
}
.defi-all-theses-card:has(
  .defi-all-theses-thesis-block.defi-scroll-pop:last-child:hover
),
.defi-all-theses-card:has(
  .defi-all-theses-thesis-block.defi-scroll-pop:last-child:focus-visible
),
.defi-all-theses-card:has(
  .defi-all-theses-thesis-block.defi-scroll-pop:last-child:focus-within
),
.defi-events-index-card:has(
  .defi-all-theses-thesis-block.defi-scroll-pop:last-child:hover
),
.defi-events-index-card:has(
  .defi-all-theses-thesis-block.defi-scroll-pop:last-child:focus-visible
),
.defi-events-index-card:has(
  .defi-all-theses-thesis-block.defi-scroll-pop:last-child:focus-within
) {
  border-bottom-color: transparent;
}
.defi-all-theses-thesis-main {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: inherit !important;
  text-decoration: none !important;
}
.defi-all-theses-thesis-main:hover {
  color: inherit !important;
  text-decoration: none !important;
}
.defi-all-theses-thesis-main .defi-section-kicker,
.defi-all-theses-thesis-body {
  margin: 0;
}
.defi-all-theses-thesis-title {
  margin: 0;
  color: var(--defi-heading);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}
.defi-all-theses-thesis-main:hover .defi-all-theses-thesis-title {
  color: var(--defi-accent);
}
.defi-all-theses-thesis-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-all-theses-thesis-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.defi-all-theses-thesis-meta > .defi-hero-llm-indicator {
  margin-left: auto;
  position: relative;
  z-index: 2;
}
.defi-home-meta-sep {
  color: var(--defi-dim);
  font-weight: 700;
  letter-spacing: 0;
}
.defi-all-theses-falsification {
  margin: 0;
  padding-top: 15px;
  max-width: 820px;
  color: var(--defi-muted);
  font-size: 13px;
  line-height: 1.55;
}
.defi-all-theses-falsification-label {
  display: inline-block;
  margin-right: 6px;
  color: var(--defi-label);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-all-theses-thesis-block .defi-event-chip-list {
  margin-top: 12px;
}
.defi-all-theses-empty .material-symbols-outlined {
  font-size: 26px;
  color: var(--defi-empty-icon);
}
.defi-all-theses-empty .defi-home-cta {
  white-space: nowrap;
}
.defi-all-theses-thesis-col,
.defi-all-theses-side-col {
  padding-left: 0;
  padding-right: 0;
}
.defi-all-theses-thesis-col {
  padding-right: 14px;
}
.defi-all-theses-side-col {
  padding-left: 14px;
}
.defi-all-theses-thesis-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 14px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface);
  box-sizing: border-box;
  width: 100%;
}
.defi-all-theses-side-label {
  color: var(--defi-label);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.defi-all-theses-side-value {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.defi-all-theses-thesis-side--pnl-lead .defi-all-theses-side-value {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" on;
  line-height: 1.1;
  overflow-wrap: break-word;
}
.defi-all-theses-thesis-side--pnl-lead .defi-all-theses-side-value.is-up,
.defi-all-theses-thesis-side.is-up .defi-all-theses-side-pct {
  color: var(--defi-green);
}
.defi-all-theses-thesis-side--pnl-lead .defi-all-theses-side-value.is-down,
.defi-all-theses-thesis-side.is-down .defi-all-theses-side-pct {
  color: var(--defi-red);
}
.defi-all-theses-thesis-side--pnl-lead .defi-all-theses-side-value.is-flat {
  color: var(--defi-heading);
}
.defi-all-theses-thesis-side--pnl-lead .defi-all-theses-side-pct {
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.defi-all-theses-thesis-side--pnl-lead .defi-all-theses-side-supporting {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 10px;
  font-style: italic;
  color: var(--defi-muted, #9ca3af);
  opacity: 0.9;
}
.defi-all-theses-thesis-side--pnl-lead
  .defi-all-theses-side-supporting
  .supporting-value {
  color: var(--defi-heading);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.defi-all-theses-side-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.defi-all-theses-side-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--defi-line);
}
.defi-all-theses-side-stats--single {
  grid-template-columns: minmax(0, 1fr);
}
.defi-all-theses-side-stats > div {
  display: grid;
  gap: 4px;
}
.defi-all-theses-side-stats span {
  color: var(--defi-label);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-all-theses-side-stats strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.defi-all-theses-side-baseline {
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.defi-all-theses-side-link {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 3px;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-button-text) !important;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}
.defi-all-theses-side-link:hover {
  border-color: rgba(16, 207, 189, 0.72);
  background: rgba(16, 207, 189, 0.16);
  color: var(--defi-button-text) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}
.defi-all-theses-side-link .material-symbols-outlined,
.defi-all-theses-pager-link .material-symbols-outlined {
  font-size: 16px;
}
.defi-all-theses-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 26px;
  border-top: 1px solid var(--defi-line);
  background: var(--defi-surface);
}
.defi-all-theses-pager-info {
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-all-theses-pager-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.defi-all-theses-pager-link,
.defi-all-theses-pager-num,
.defi-all-theses-pager-ellipsis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface-2);
  color: var(--defi-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none !important;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}
.defi-all-theses-pager-link:hover,
.defi-all-theses-pager-num:hover {
  border-color: var(--defi-line-strong);
  background: var(--defi-row-hover);
  color: var(--defi-heading);
}
.defi-all-theses-pager-num {
  min-width: 36px;
  justify-content: center;
  padding: 0 8px;
}
.defi-all-theses-pager-num.is-active {
  border-color: var(--defi-accent);
  background: rgba(16, 207, 189, 0.14);
  color: var(--defi-accent);
  cursor: default;
}
.defi-all-theses-pager-link.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--defi-dim);
}
.defi-all-theses-pager-link.is-disabled:hover {
  border-color: var(--defi-line);
  background: var(--defi-surface-2);
  color: var(--defi-dim);
}
.defi-all-theses-pager-ellipsis {
  border: 0;
  background: transparent;
  color: var(--defi-dim);
  cursor: default;
  padding: 0 4px;
  min-height: 32px;
}
@media (max-width: 991px) {
  .defi-all-theses-thesis-col {
    padding-right: 0;
  }
  .defi-all-theses-side-col {
    padding-left: 0;
    margin-top: 16px;
  }
  .defi-all-theses-thesis-side {
    position: static;
  }
}
@media (max-width: 767px) {
  .defi-all-theses-thesis-block {
    padding: 26px 20px 22px;
  }
  .defi-all-theses-thesis-title {
    font-size: 22px;
  }
}
/* === The hero stat strip on Reports / All Theses / Portfolio Pulse uses a tile with the `--portfolio` variant for the dollar PnL readout, with a colored em line via is-up / is-down. */
.defi-report-stat--portfolio.is-up em {
  color: var(--defi-green);
}
.defi-report-stat--portfolio.is-down em {
  color: var(--defi-red);
}
/* === PNL is the headline number everywhere portfolio is shown. This tile takes the full width of the strip and uses a much larger strong than the supporting tiles (Total Value, Baseline, Theses · Positions). The is-up / is-down variants colour both the headline value and the percent line via --defi-green / --defi-red. */
.defi-report-stat--pnl {
  grid-column: 1 / -1;
  min-height: 124px;
  padding: 22px 20px 18px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    rgba(16, 207, 189, 0.04) 0%,
    rgba(16, 207, 189, 0) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.defi-report-stat--pnl > span {
  display: block;
  margin-bottom: 4px;
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-report-stat--pnl strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: clamp(38px, 4.4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" on;
}
.defi-report-stat--pnl em {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-report-stat--pnl.is-up strong,
.defi-report-stat--pnl.is-up em {
  color: var(--defi-green);
}
.defi-report-stat--pnl.is-down strong,
.defi-report-stat--pnl.is-down em {
  color: var(--defi-red);
}
.defi-report-stat--pnl.is-flat strong {
  color: var(--defi-heading);
}
@media (max-width: 767px) {
  .defi-report-stat--pnl strong {
    font-size: 36px;
  }
}
/* Supporting tiles in a PnL-lead strip — smaller, calmer numbers. */
/* ───────────────────────────────────────────── Hyperion global search */
.defi-report-stat--supporting {
  min-height: 78px;
  padding: 14px 16px;
}
.defi-report-stat--supporting strong {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.1;
}
.defi-report-stat--supporting em {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--defi-dim);
}
.defi-search-page .defi-report-hero {
  padding-bottom: 42px;
}
.defi-search-page .defi-report-section {
  padding-top: 34px;
}
.defi-search-card > .defi-home-card-body,
.defi-search-tab-content,
.defi-search-tab-content > .tab-pane {
  padding: 0;
}
.defi-search-form-wrap {
  padding: 18px;
  border-bottom: 1px solid var(--defi-line);
}
.defi-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface-2);
  padding: 0 8px 0 16px;
}
.defi-search-form > .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 20px;
}
.defi-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--defi-heading);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
}
.defi-search-form input::placeholder {
  color: var(--defi-dim);
}
.defi-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 3px;
  background: var(--defi-accent-soft);
  color: var(--defi-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 14px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.defi-search-form button:hover,
.defi-search-form button:focus {
  background: var(--defi-accent);
  border-color: var(--defi-accent);
  color: var(--defi-bg);
}
.defi-search-form button .material-symbols-outlined {
  font-size: 16px;
}
.defi-search-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--defi-line);
  background: var(--defi-header-bg);
}
.defi-search-tabs > li {
  float: none;
  margin: 0;
  list-style: none;
}
.defi-search-tabs > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border: 0 !important;
  border-right: 1px solid var(--defi-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--defi-muted) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.defi-search-tabs > li:last-child > a {
  border-right: 0 !important;
}
.defi-search-tabs > li > a .material-symbols-outlined {
  color: var(--defi-accent);
  font-size: 17px;
}
.defi-search-tabs > li > a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 20px;
  border: 1px solid var(--defi-line);
  border-radius: 999px;
  color: var(--defi-heading);
  font-size: 9px;
  padding: 0 7px;
}
.defi-search-tabs > li.active > a,
.defi-search-tabs > li > a:hover,
.defi-search-tabs > li > a:focus {
  color: var(--defi-heading) !important;
  background: var(--defi-surface) !important;
}
.defi-search-tabs > li.active > a {
  box-shadow: inset 0 -2px 0 var(--defi-accent);
}
.defi-search-result-block:first-child {
  padding-top: 30px;
}
.defi-search-result-side {
  top: 98px;
}
.defi-search-result-side .defi-all-theses-side-value span {
  color: var(--defi-muted);
  font-size: 16px;
}
.defi-search-pagination {
  padding: 18px;
  border-top: 1px solid var(--defi-line);
  color: var(--defi-muted);
}
.defi-search-pagination .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.defi-search-pagination .pagination > li > a,
.defi-search-pagination .pagination > li > span {
  border: 1px solid var(--defi-line);
  border-radius: 3px !important;
  background: var(--defi-surface-2);
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.defi-search-pagination .pagination > .active > span,
.defi-search-pagination .pagination > li > a:hover {
  border-color: var(--defi-line-strong);
  background: var(--defi-accent-soft);
  color: var(--defi-accent);
}
@media (max-width: 767px) {
  .defi-search-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .defi-search-tabs > li:nth-child(2n) > a {
    border-right: 0 !important;
  }
  .defi-search-tabs > li:nth-child(n + 3) > a {
    border-top: 1px solid var(--defi-line) !important;
  }
  .defi-search-form {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 14px;
  }
  .defi-search-form button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
/* Simpler search layout: one open surface, vertical rail, no nested card chrome. */
.defi-search-hero {
  padding: 58px 0 34px;
}
.defi-search-hero .defi-home-title {
  margin-bottom: 8px;
}
.defi-search-count {
  display: inline-flex;
  margin-left: 12px;
  color: var(--defi-dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}
.defi-search-panel {
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--defi-line);
}
.defi-search-panel .defi-search-form-wrap {
  padding: 0 0 22px;
  border-bottom: 0;
}
.defi-search-panel .defi-search-form {
  min-height: 50px;
  border-color: var(--defi-line);
  background: transparent;
}
.defi-search-panel .defi-search-form button {
  width: 38px;
  min-width: 38px;
  padding: 0;
}
.defi-search-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.defi-search-panel .defi-search-tabs {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
}
.defi-search-panel .defi-search-tabs > li > a {
  justify-content: flex-start;
  min-height: 44px;
  border: 0 !important;
  border-left: 2px solid transparent !important;
  background: transparent !important;
  color: var(--defi-dim) !important;
  padding: 0 12px;
}
.defi-search-panel .defi-search-tabs > li.active > a,
.defi-search-panel .defi-search-tabs > li > a:hover,
.defi-search-panel .defi-search-tabs > li > a:focus {
  box-shadow: none;
  border-left-color: var(--defi-accent) !important;
  color: var(--defi-heading) !important;
  background: var(--defi-accent-soft) !important;
}
.defi-search-tab-label {
  flex: 1 1 auto;
}
.defi-search-panel .defi-search-tabs > li > a .defi-search-tab-count {
  min-width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  color: var(--defi-muted);
  font-size: 10px;
  padding: 0;
}
.defi-search-panel .defi-search-tab-content {
  min-height: 280px;
  border-left: 1px solid var(--defi-line);
}
.defi-search-panel .defi-search-result-block {
  padding: 26px 0 26px 28px;
}
.defi-search-panel .defi-search-result-block:first-child {
  padding-top: 0;
  border-top: 0;
}
.defi-search-panel .defi-report-empty {
  padding: 48px 0 48px 28px;
  color: var(--defi-muted);
  text-align: left;
}
.defi-search-panel .defi-search-pagination {
  padding: 18px 0 0 28px;
}
@media (max-width: 767px) {
  .defi-search-count {
    display: flex;
    margin: 8px 0 0;
  }
  .defi-search-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .defi-search-panel .defi-search-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--defi-line);
  }
  .defi-search-panel .defi-search-tabs > li > a {
    border-left: 0 !important;
    border-right: 1px solid var(--defi-line) !important;
    padding: 0 10px;
  }
  .defi-search-panel .defi-search-tabs > li:nth-child(2n) > a {
    border-right: 0 !important;
  }
  .defi-search-panel .defi-search-tabs > li:nth-child(n + 3) > a {
    border-top: 1px solid var(--defi-line) !important;
  }
  .defi-search-panel .defi-search-tab-content {
    border-left: 0;
  }
  .defi-search-panel .defi-search-result-block,
  .defi-search-panel .defi-report-empty,
  .defi-search-panel .defi-search-pagination {
    padding-left: 0;
  }
}
.defi-all-theses-portfolio .defi-home-portfolio--compact {
  margin: 0;
}
.defi-portfolio-pulse-page .defi-home-statusbar,
.defi-pillar-detail-page .defi-home-statusbar {
  max-width: 1480px;
  margin: 0 auto;
}
.defi-portfolio-pulse-card > .defi-home-card-body,
.defi-pillar-detail-card > .defi-home-card-body {
  padding: 0;
}
.defi-portfolio-pulse-card .defi-home-portfolio-rows {
  max-height: none;
  border-top: 1px solid var(--defi-line);
}
.defi-portfolio-pulse-card .defi-empty-state {
  margin: 22px;
}
.defi-pillar-detail-section {
  padding: 44px 0 0;
}

.defi-pillar-detail-page .defi-home-statusbar {
  max-width: 1480px;
  margin: 0 auto;
}
.defi-pillar-hero {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 92px) 0 clamp(30px, 4.5vw, 58px);
  border-bottom: 1px solid var(--defi-line);
}
.defi-pillar-hero-grid {
  align-items: start;
}
.defi-pillar-hero-main-col {
  min-width: 0;
}
.defi-pillar-hero-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.defi-pillar-kicker {
  color: var(--defi-kicker);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-pillar-title {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  color: var(--defi-heading);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  overflow-wrap: anywhere;
}
.defi-pillar-title span {
  color: var(--defi-title-mark);
  font-family: var(--font-mono);
  font-size: 0.52em;
}
.defi-pillar-role {
  max-width: 820px;
  margin: 0;
  color: var(--defi-muted);
  font-size: 16px;
  line-height: 1.7;
}
.defi-pillar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.defi-pillar-detail-page .defi-pillar-actions .defi-event-actions-dropdown {
  margin-left: auto;
}
.defi-pillar-stat-strip {
  margin-top: 0;
}
.defi-milestones-stat-strip .defi-report-stat,
.defi-thesis-stat-strip .defi-report-stat {
  min-height: 104px;
}
.defi-thesis-stat-strip .defi-report-stat em,
.defi-milestones-stat-strip .defi-report-stat em {
  display: block;
  margin-top: 6px;
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-milestones-stat-strip .defi-report-stat.is-up em {
  color: var(--defi-accent, #10cfbd);
}
.defi-milestones-stat-strip .defi-report-stat.is-down em {
  color: #f87171;
}
.defi-milestones-charts-panel {
  display: grid;
  gap: 18px;
}
.defi-milestones-table-slot {
  margin-top: 22px;
}
.defi-milestones-chart-card .defi-home-card-body {
  padding: 12px 18px 18px;
}
.defi-milestones-chart-canvas-wrap--bar {
  height: 180px;
}
.defi-milestones-chart-canvas-wrap--donut {
  height: 220px;
}
@media (max-width: 767px) {
  .defi-milestones-chart-canvas-wrap--bar {
    height: 240px;
  }
  .defi-milestones-chart-canvas-wrap--donut {
    height: 260px;
  }
}
.defi-pillar-stat-strip .defi-report-stat {
  min-height: 110px;
}
.defi-pillar-stat-strip .defi-report-stat em {
  display: block;
  margin-top: 6px;
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-pillar-stat-strip .defi-report-stat.is-intact strong,
.defi-pillar-stat-strip .defi-report-stat.is-intact em {
  color: var(--defi-accent);
}
.defi-pillar-stat-strip .defi-report-stat.is-weakening strong,
.defi-pillar-stat-strip .defi-report-stat.is-weakening em {
  color: #f59e0b;
}
.defi-pillar-stat-strip .defi-report-stat.is-failing strong,
.defi-pillar-stat-strip .defi-report-stat.is-failing em {
  color: var(--defi-red);
}
.defi-pillar-tv-section {
  max-width: 1480px;
  margin: 44px auto 50px;
  padding: 0 30px;
}
.defi-pillar-tv-card > .defi-home-card-body,
.defi-pillar-tv-body {
  padding: 0;
}
.defi-pillar-tv-header {
  flex-wrap: wrap;
  gap: 12px;
}
.defi-pillar-tv-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.defi-pillar-tv-label {
  color: var(--defi-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-pillar-tv-picker {
  min-width: 220px;
  max-width: 360px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: var(--defi-surface-2);
  color: var(--defi-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.defi-pillar-tv-picker:hover,
.defi-pillar-tv-picker:focus {
  border-color: var(--defi-line-strong);
  outline: none;
}
.defi-pillar-tv-container {
  width: 100%;
  height: 760px;
  border-top: 1px solid var(--defi-line);
  background: var(--defi-surface);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  overflow: hidden;
}
.defi-pillar-tv-mount {
  width: 100%;
  height: calc(100% - 32px);
}
.defi-pillar-tv-container .tradingview-widget-copyright {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-pillar-tv-container .tradingview-widget-copyright .blue-text {
  color: var(--defi-muted) !important;
  text-decoration: none;
}
.defi-pillar-tv-container .tradingview-widget-copyright a:hover .blue-text {
  color: var(--defi-accent) !important;
}
@media (max-width: 991px) {
  .defi-pillar-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .defi-pillar-stat-strip {
    grid-template-columns: 1fr;
  }
  .defi-pillar-tv-section {
    padding: 0 20px;
  }
  .defi-pillar-tv-container {
    height: 660px;
  }
  .defi-pillar-tv-picker {
    min-width: 0;
    width: 100%;
  }
  .defi-pillar-tv-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}
.defi-thesis-tv-section {
  padding-top: 0;
}
.defi-thesis-tv-section .defi-home-hero-stage {
  margin-bottom: 22px;
}
.defi-thesis-tv-section .defi-home-title {
  font-size: 36px;
  margin: 0;
}
.defi-thesis-tv-section .defi-thesis-tv-card {
  border: 1px solid var(--defi-line);
}
@media (max-width: 767px) {
  .defi-thesis-tv-section {
    padding: 0 20px;
  }
  .defi-thesis-tv-section .defi-home-title {
    font-size: 28px;
  }
}
.defi-pillar-detail-page .empty-state-card {
  min-height: 360px;
  margin: 22px;
  background: transparent;
  border: 1px dashed var(--defi-line);
  border-radius: 6px;
  color: var(--defi-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.defi-pillar-detail-page .empty-state-card .material-symbols-outlined {
  color: var(--defi-empty-icon);
}
.defi-pillar-detail-page .empty-state-card p {
  margin: 0;
}
.defi-thesis-stock-symbol-link {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}
.defi-thesis-stock-symbol-link:hover,
.defi-thesis-stock-symbol-link:focus {
  color: var(--defi-accent) !important;
  border-bottom-color: var(--defi-accent);
}
.defi-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1;
}
.defi-status-pill--compact {
  padding: 3px 8px 3px 7px;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.defi-status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.defi-status-pill--queued .defi-status-pill-dot {
  background: #94a3b8;
}
.defi-status-pill--active .defi-status-pill-dot {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: defi-status-pulse 1.8s ease-out infinite;
}
.defi-status-pill--stale .defi-status-pill-dot {
  background: #f87171;
}
.defi-status-pill--complete .defi-status-pill-dot {
  background: #818cf8;
}
.defi-status-pill--paper .defi-status-pill-dot {
  background: #38bdf8;
}
.defi-status-pill--prod .defi-status-pill-dot {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: defi-status-pulse 1.8s ease-out infinite;
}
@keyframes defi-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
.defi-status-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.defi-status-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: inherit;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.defi-status-control .material-symbols-outlined,
.defi-thesis-milestone-card-actions
  .defi-event-actions-trigger--inline
  .material-symbols-outlined {
  font-size: 16px;
}
.defi-status-control:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.55);
}
.defi-status-control--activate {
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}
.defi-status-control--activate:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.7);
}
.defi-status-control--complete {
  border-color: rgba(99, 102, 241, 0.5);
  color: #818cf8;
}
.defi-status-control--complete:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.7);
}
.defi-status-control--stale {
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
}
.defi-status-control--stale:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.7);
}
.defi-status-control--queued {
  border-color: rgba(148, 163, 184, 0.4);
  color: #94a3b8;
}
.defi-thesis-statusbar-status .defi-status-pill {
  padding: 3px 9px 3px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.defi-thesis-statusbar-status .defi-status-control {
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.defi-thesis-statusbar-status .defi-status-control .material-symbols-outlined {
  font-size: 14px;
}
.defi-event-actions-trigger--inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: var(--defi-muted, rgba(247, 248, 248, 0.62));
  border: 1px solid var(--defi-line, rgba(255, 255, 255, 0.12));
  border-radius: 4px;
  font-size: 14px;
}
.defi-event-actions-trigger--inline:hover,
.defi-event-actions-trigger--inline:focus {
  color: var(--defi-heading, #ffffff);
  border-color: var(--defi-accent, #10cfbd);
  background: rgba(16, 207, 189, 0.08);
}
.defi-event-actions-trigger--inline .material-symbols-outlined {
  font-size: 18px;
}
.defi-event-actions-dropdown--compact .dropdown-menu.defi-event-actions-menu {
  min-width: 180px;
  z-index: 1100;
}
.defi-milestone-actions-dropdown .defi-event-actions-trigger--inline {
  border-color: transparent;
  background: transparent;
}
.defi-milestone-actions-dropdown .defi-event-actions-trigger--inline:hover,
.defi-milestone-actions-dropdown .defi-event-actions-trigger--inline:focus {
  border-color: transparent;
  background: rgba(16, 207, 189, 0.08);
}
.defi-event-edit-host--nested {
  margin: 14px 0 0;
  padding: 0;
  max-width: none;
}
.defi-event-edit-host--nested .defi-event-edit {
  border: 1px solid var(--defi-line, rgba(255, 255, 255, 0.12));
  border-radius: 4px;
}
.defi-event-edit-section-label {
  margin: 18px 0 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--defi-muted, rgba(247, 248, 248, 0.62));
  border-top: 1px dashed var(--defi-line, rgba(255, 255, 255, 0.12));
  padding-top: 12px;
}
.defi-thesis-milestone-card-head,
a.defi-portfolio-filter-stat.is-active .defi-home-stat-value {
  position: relative;
}
.defi-thesis-milestone-card-actions {
  position: absolute;
  top: 0;
  right: 0;
}
.defi-thesis-milestone-card-actions .defi-event-actions-trigger--inline {
  width: 24px;
  height: 24px;
}
.defi-milestones-col-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-left: 8px;
  padding-right: 12px;
}
.defi-milestones-edit-row > td {
  padding: 0 !important;
  background: rgba(16, 207, 189, 0.04);
  border-top: 0 !important;
}
.defi-milestones-edit-row .defi-event-edit {
  border: 1px solid var(--defi-line, rgba(255, 255, 255, 0.12));
  border-radius: 4px;
  margin: 10px 12px;
}
.defi-events-create-panel,
.defi-all-theses-create,
.defi-pillars-create-section,
.defi-milestones-create-section {
  margin-bottom: 24px;
}
.defi-event-mini-panel--edit .defi-event-edit {
  --defi-event-edit-bg: var(--defi-surface-2, #15161d);
  --defi-event-edit-line: var(--defi-line, rgba(255, 255, 255, 0.12));
  --defi-event-edit-text: var(--defi-text, #f7f8f8);
  --defi-event-edit-muted: var(--defi-muted, rgba(247, 248, 248, 0.62));
  --defi-event-edit-accent: var(--defi-accent, #10cfbd);
}
.defi-portfolio-index-header {
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
}
.defi-portfolio-index-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
.defi-portfolio-index-header-main h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.defi-portfolio-index-header-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: lowercase;
}
.defi-portfolio-index-header-meta-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--defi-text);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--defi-row-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--defi-line);
}
.defi-portfolio-index-header-meta-status .defi-status-pill-dot {
  width: 5px;
  height: 5px;
}
.defi-portfolio-filter-tab.is-active {
  color: var(--defi-text);
  background: var(--defi-row-hover, rgba(247, 248, 248, 0.06));
  border-color: var(--defi-line-strong);
}
.defi-portfolio-filter-tab .defi-status-pill-dot {
  width: 7px;
  height: 7px;
}
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--queued,
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--active,
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--stale,
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--complete {
  background: currentColor;
  animation: none;
  box-shadow: none;
}
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--queued {
  color: #94a3b8;
}
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--active {
  color: #22c55e;
}
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--stale {
  color: #f87171;
}
.defi-portfolio-filter-tab .defi-status-pill-dot.defi-status-pill--complete {
  color: #818cf8;
}
.defi-portfolio-filter-tab.is-active .defi-portfolio-filter-tab-count {
  background: var(--defi-accent, #10cfbd);
  color: #0c1116;
}
.defi-home-portfolio-row-meta .defi-status-pill {
  margin-left: 2px;
}
.defi-portfolio-filter-stats {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 28px;
  padding: 14px 6px;
  border-top: 1px solid var(--defi-line);
  border-bottom: 1px solid var(--defi-line);
}
.defi-thesis-filter-stats,
.defi-all-theses-page .defi-portfolio-filter-stats {
  border-top: none;
  border-bottom: 1px solid var(--defi-line);
}
a.defi-portfolio-filter-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  color: var(--defi-text);
  background: transparent;
  flex: 1 1 0;
  min-width: 140px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}
a.defi-portfolio-filter-stat:hover {
  border-color: var(--defi-line);
  background: var(--defi-row-hover, rgba(247, 248, 248, 0.05));
  color: var(--defi-text);
  text-decoration: none;
  transform: translateY(-1px);
}
a.defi-portfolio-filter-stat.is-active {
  border-color: var(--defi-line-strong, rgba(16, 207, 189, 0.34));
  background: var(--defi-row-hover, rgba(247, 248, 248, 0.05));
}
a.defi-portfolio-filter-stat.is-active .defi-home-stat-value::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  margin-left: 5px;
  height: 4px;
  border-radius: 50%;
  background: var(--defi-accent, #10cfbd);
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(16, 207, 189, 0.6);
  animation: defi-filter-pulse 1.8s ease-out infinite;
}
@keyframes defi-filter-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 207, 189, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 207, 189, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 207, 189, 0);
  }
}
/* ───────────────────────────────────────────── Portfolio detail */
.defi-portfolio-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--defi-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-top: 12px;
}
.defi-portfolio-detail-stocks {
  margin-top: 8px;
}
.defi-portfolio-detail-stocks-card {
  height: 100%;
}
.defi-portfolio-detail-stocks-body {
  max-height: 540px;
  overflow-y: auto;
  padding: 8px 14px 14px;
}
.defi-portfolio-detail-stocks-body::-webkit-scrollbar {
  width: 6px;
}
.defi-portfolio-detail-stocks-body::-webkit-scrollbar-thumb {
  background: var(--defi-scrollbar);
  border-radius: 3px;
}
.defi-portfolio-detail-stocks-body::-webkit-scrollbar-track {
  background: transparent;
}
.defi-portfolio-detail-stock-row {
  display: grid;
  grid-template-columns:
    minmax(140px, 1fr) minmax(56px, auto) minmax(54px, auto)
    minmax(68px, auto);
  align-items: center;
  gap: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--defi-line, rgba(255, 255, 255, 0.08));
}
.defi-portfolio-detail-stock-row:first-child {
  border-top: none;
  padding-top: 4px;
}
.defi-portfolio-detail-stock-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.defi-portfolio-detail-stock-name {
  color: var(--defi-muted);
  font-size: 11px;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defi-portfolio-detail-stock-side {
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.defi-portfolio-detail-stock-side--long {
  color: #60a5fa;
}
.defi-portfolio-detail-stock-side--short {
  color: var(--defi-red, #ef4444);
}
.defi-portfolio-detail-stock-prices {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  color: var(--defi-muted);
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
}
.defi-portfolio-detail-stock-prices .material-symbols-outlined {
  font-size: 12px;
  line-height: 1;
}
.defi-portfolio-detail-stock-move.is-up {
  color: var(--defi-green, #22c55e);
}
.defi-portfolio-detail-stock-move.is-down {
  color: var(--defi-red, #ef4444);
}
.defi-portfolio-detail-stock-move.is-flat {
  color: var(--defi-muted);
}
.defi-portfolio-detail-stock-last {
  color: var(--defi-heading);
  font-weight: 600;
}
.defi-portfolio-detail-stock-qty em {
  color: var(--defi-muted);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-portfolio-detail-stock-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 2px;
  color: var(--defi-heading);
  font-size: 10px;
  line-height: 1.1;
}
.defi-portfolio-detail-stock-qty strong {
  font-size: 12px;
}
.defi-portfolio-detail-stock-pct {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  min-width: 64px;
  justify-self: end;
}
.defi-portfolio-detail-stock-pct.is-up {
  color: var(--defi-green, #22c55e);
}
.defi-portfolio-detail-stock-pct.is-down {
  color: var(--defi-red, #ef4444);
}
.defi-portfolio-detail-stock-pct.is-flat {
  color: var(--defi-muted);
}
.defi-portfolio-detail-stock-theses {
  grid-column: 1 / -1;
  color: var(--defi-muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-top: -4px;
  text-transform: uppercase;
}
.defi-portfolio-widget-stock-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 0 14px 8px;
  scrollbar-color: var(--defi-accent, #10cfbd) transparent;
  scrollbar-width: thin;
}
.defi-portfolio-widget-stock-list::-webkit-scrollbar {
  width: 4px;
}
.defi-portfolio-widget-stock-list::-webkit-scrollbar-thumb {
  background: var(--defi-accent, #10cfbd);
  border-radius: 2px;
}
.defi-portfolio-widget-stock-list::-webkit-scrollbar-track {
  background: transparent;
}
.defi-portfolio-detail-stock-row--widget {
  grid-template-columns: minmax(160px, 1fr) minmax(60px, auto) minmax(
      70px,
      auto
    );
  gap: 24px;
}
.defi-portfolio-detail-stock-row--widget.defi-portfolio-detail-stock-row--no-qty {
  grid-template-columns: minmax(160px, 1fr) minmax(60px, auto) minmax(
      70px,
      auto
    );
  gap: 24px;
}
.defi-portfolio-detail-stocks-empty {
  color: var(--defi-muted);
  text-align: center;
  padding: 20px 0;
}
@media (max-width: 767px) {
  .defi-home-portfolio-header {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    height: auto;
    min-height: 50px;
    gap: 8px;
  }
  .defi-portfolio-sort-buttons {
    flex-wrap: wrap;
  }
  .defi-portfolio-index-header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .defi-portfolio-index-header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .defi-portfolio-index-header-meta {
    justify-content: flex-start;
    text-align: left;
  }
  .defi-portfolio-detail-stock-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
  }
  .defi-portfolio-detail-stock-qty,
  .defi-portfolio-detail-stock-pct,
  .defi-portfolio-detail-stock-theses {
    grid-column: 1 / span 2;
  }
  .defi-portfolio-detail-stock-qty,
  .defi-portfolio-detail-stock-pct {
    align-items: flex-start;
    text-align: left;
  }
}

.defi-portfolio-lineage {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(200px, 1.1fr) 24px minmax(280px, 1.7fr)
    24px minmax(200px, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 18px 18px 16px;
  border: 1px solid var(--defi-line);
  border-radius: 8px;
  background: var(--defi-row-bg, rgba(255, 255, 255, 0.02));
}
.defi-portfolio-lineage-rail {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--defi-line) 12%,
    var(--defi-line) 88%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.6;
}
.defi-portfolio-lineage-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background: var(--defi-row-bg, rgba(0, 0, 0, 0.2));
  text-decoration: none;
  color: var(--defi-text);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
  min-width: 0;
}
a.defi-portfolio-lineage-node:hover {
  border-color: var(--defi-line-strong);
  background: var(--defi-row-hover, rgba(247, 248, 248, 0.05));
  color: var(--defi-text);
  text-decoration: none;
  transform: translateY(-1px);
}
.defi-portfolio-lineage-node--pillars,
.defi-portfolio-lineage-node--stocks {
  cursor: default;
}
.defi-portfolio-lineage-node--pillars:hover,
.defi-portfolio-lineage-node--stocks:hover {
  transform: none;
}
.defi-portfolio-lineage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-portfolio-lineage-kicker .material-symbols-outlined {
  font-size: 14px;
  color: var(--defi-accent, #10cfbd);
}
.defi-portfolio-lineage-title {
  color: var(--defi-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.defi-portfolio-lineage-title.is-mute {
  color: var(--defi-muted);
  font-weight: 400;
  font-style: italic;
}
.defi-portfolio-lineage-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.defi-portfolio-lineage-impact.is-up {
  color: var(--defi-green, #36d399);
}
.defi-portfolio-lineage-impact.is-down {
  color: var(--defi-red, #ff6b6b);
}
.defi-portfolio-lineage-arrow {
  align-self: center;
  color: var(--defi-muted);
  font-size: 18px;
  text-align: center;
}
.defi-portfolio-lineage-pillars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 4px;
}
.defi-portfolio-lineage-pillars::-webkit-scrollbar {
  width: 4px;
}
.defi-portfolio-lineage-pillars::-webkit-scrollbar-thumb {
  background: var(--defi-scrollbar);
  border-radius: 2px;
}
.defi-portfolio-lineage-pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--defi-text);
  background: transparent;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}
a.defi-portfolio-lineage-pillar:hover {
  border-color: var(--defi-line-strong);
  background: var(--defi-row-hover, rgba(247, 248, 248, 0.05));
  text-decoration: none;
  color: var(--defi-text);
}
.defi-portfolio-lineage-pillar-num {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--defi-accent, #10cfbd);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.defi-portfolio-lineage-pillar-name {
  color: var(--defi-text);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defi-portfolio-lineage-pillar-meta {
  grid-column: 2;
  color: var(--defi-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-portfolio-lineage-pillar.is-intact {
  border-left: 3px solid #22c55e;
}
.defi-portfolio-lineage-pillar.is-at_risk {
  border-left: 3px solid #facc15;
}
.defi-portfolio-lineage-pillar.is-broken {
  border-left: 3px solid #ff6b6b;
}
.defi-portfolio-lineage-empty {
  color: var(--defi-muted);
  font-size: 12px;
  font-style: italic;
  padding: 8px 4px;
}
.defi-portfolio-lineage-stock-count {
  font-size: 30px;
  font-weight: 600;
  color: var(--defi-heading);
  line-height: 1.1;
}
.defi-portfolio-lineage-stock-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.defi-portfolio-lineage-stock-tickers span {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--defi-row-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--defi-line);
  color: var(--defi-text);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.defi-portfolio-lineage-stock-tickers span.is-mute {
  color: var(--defi-muted);
  background: transparent;
  border-color: transparent;
}
@media (max-width: 1199px) {
  .defi-portfolio-lineage {
    grid-template-columns: 1fr 1fr;
  }
  .defi-portfolio-lineage-arrow,
  .defi-portfolio-lineage-rail {
    display: none;
  }
}
@media (max-width: 767px) {
  .defi-portfolio-lineage {
    grid-template-columns: 1fr;
  }
}

.defi-portfolio-event-link .material-symbols-outlined {
  font-size: 18px;
  color: var(--defi-accent, #10cfbd);
}
.defi-portfolio-event-card .defi-event-chip-list {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.defi-portfolio-stat-open-thesis .material-symbols-outlined {
  font-size: 16px;
}
.defi-portfolio-hero-open-thesis .material-symbols-outlined {
  font-size: 14px;
}
.defi-portfolio-context-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px 18px;
  border: 1px solid var(--defi-line);
  border-radius: 6px;
  background: var(--defi-row-bg, rgba(255, 255, 255, 0.02));
}
.defi-portfolio-context-summary ul.defi-portfolio-context-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}
.defi-portfolio-context-row {
  display: grid;
  grid-template-columns: minmax(120px, 130px) 1fr;
  gap: 14px;
  align-items: start;
  padding: 0;
  border: 0;
}
.defi-portfolio-context-row + .defi-portfolio-context-row {
  padding-top: 14px;
  border-top: 1px solid var(--defi-line);
}
.defi-portfolio-context-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.defi-portfolio-context-kicker .material-symbols-outlined {
  font-size: 14px;
  color: var(--defi-accent, #10cfbd);
}
.defi-portfolio-context-link {
  color: var(--defi-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.defi-portfolio-context-link:hover {
  color: var(--defi-accent, #10cfbd);
  text-decoration: none;
}
.defi-portfolio-context-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.defi-portfolio-context-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.defi-portfolio-context-list-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: transparent;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}
.defi-portfolio-context-list-item:hover {
  border-color: var(--defi-line-strong);
  background: var(--defi-row-hover, rgba(247, 248, 248, 0.04));
}
.defi-portfolio-context-list-item.is-intact,
.defi-portfolio-context-list-item.is-active {
  border-left: 3px solid #22c55e;
}
.defi-portfolio-context-list-item.is-at_risk {
  border-left: 3px solid #facc15;
}
.defi-portfolio-context-list-item.is-broken,
.defi-portfolio-context-list-item.is-missed {
  border-left: 3px solid #ff6b6b;
}
.defi-portfolio-context-list-item.is-pending {
  border-left: 3px solid var(--defi-line);
}
.defi-portfolio-context-list-item.is-met {
  border-left: 3px solid var(--defi-accent, #10cfbd);
}
.defi-portfolio-context-list-num {
  color: var(--defi-accent, #10cfbd);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
}
.defi-portfolio-context-list-name {
  color: var(--defi-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defi-portfolio-context-list-meta {
  color: var(--defi-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}
.defi-portfolio-context-empty {
  color: var(--defi-muted);
  font-size: 12px;
  font-style: italic;
  padding: 6px 0;
}
@media (max-width: 767px) {
  .defi-portfolio-context-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.defi-portfolio-charts-section {
  margin: 0 0 22px;
}
.defi-portfolio-chart-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.defi-home-page .defi-home-card.defi-portfolio-chart-card,
.defi-home-page .defi-home-card.defi-milestones-chart-card,
.defi-home-page .defi-home-card:has(canvas),
.defi-home-page .defi-card-inner:has(canvas),
.defi-event-chart-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.defi-home-page .defi-home-card.defi-portfolio-chart-card > .defi-home-card-header,
.defi-home-page .defi-home-card.defi-milestones-chart-card > .defi-home-card-header,
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-header,
.defi-home-page .defi-card-inner:has(canvas) > .defi-card-inner-header,
.defi-event-chart-card > .defi-home-card-header {
  background: transparent !important;
  border: 0 !important;
  min-height: 0;
  padding: 0 0 12px !important;
}
.defi-home-page .defi-home-card.defi-portfolio-chart-card > .defi-home-card-body,
.defi-home-page .defi-home-card.defi-milestones-chart-card > .defi-home-card-body,
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-body,
.defi-home-page .defi-card-inner:has(canvas) > .chart-container {
  background: transparent !important;
  border: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.defi-chart-bottom-label {
  align-items: center;
  color: var(--defi-heading);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.14em;
  line-height: 1.35;
  margin-top: 12px;
  order: 2;
  text-align: center;
  text-transform: uppercase;
}
.defi-chart-bottom-label span {
  font-size: 11px;
  font-weight: 800;
}
.defi-chart-bottom-label em {
  color: var(--defi-dim);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.defi-chart-bottom-label em::before {
  content: "·";
  margin-right: 8px;
}
.defi-home-page .defi-home-card.defi-portfolio-chart-card > .defi-home-card-header h3,
.defi-home-page .defi-home-card.defi-milestones-chart-card > .defi-home-card-header h3,
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-header h3,
.defi-home-page .defi-card-inner:has(canvas) > .defi-card-inner-header h4,
.defi-event-chart-card > .defi-home-card-header h3 {
  align-items: center;
  color: var(--defi-heading);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}
.defi-home-page .defi-home-card.defi-portfolio-chart-card > .defi-home-card-header .meta,
.defi-home-page .defi-home-card.defi-milestones-chart-card > .defi-home-card-header .meta,
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-header .meta,
.defi-home-page .defi-card-inner:has(canvas) > .defi-card-inner-header span,
.defi-event-chart-card > .defi-home-card-header .meta {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-home-card--frameless,
.defi-portfolio-pillar-allocation-card,
.defi-portfolio-stock-conviction-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.defi-home-card--frameless > .defi-home-card-header,
.defi-portfolio-pillar-allocation-card > .defi-home-card-header,
.defi-portfolio-stock-conviction-card > .defi-home-card-header {
  background: transparent !important;
  border-bottom: none !important;
  padding-left: 0;
  padding-right: 0;
}
.defi-home-card--frameless > .defi-home-card-body,
.defi-portfolio-pillar-allocation-card > .defi-home-card-body,
.defi-portfolio-stock-conviction-card > .defi-home-card-body {
  padding-left: 0;
  padding-right: 0;
}
.defi-portfolio-chart-card--compact {
  /* paired with the smaller donut */
}
.defi-portfolio-chart-card--wide {
  height: 100%;
}
.defi-portfolio-chart-header {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.defi-portfolio-chart-header h3,
.defi-portfolio-index-chart-canvas-col {
  flex: 1 1 auto;
  min-width: 0;
}
.defi-portfolio-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}
.defi-portfolio-chart-canvas-wrap--tall,
.defi-portfolio-chart-canvas-wrap--square,
.defi-portfolio-daily-value-card .defi-portfolio-chart-canvas-wrap {
  height: 320px;
}
.defi-portfolio-index-chart-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  min-height: 320px;
}
.defi-portfolio-index-chart-canvas-col .defi-portfolio-chart-canvas-wrap {
  height: 100%;
  min-height: 320px;
}
.defi-portfolio-index-chart-legend-col {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface-1);
}
.defi-portfolio-index-chart-legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--defi-line);
  color: var(--defi-dim);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-portfolio-index-chart-legend-count {
  color: var(--defi-accent);
}
.defi-portfolio-index-chart-legend {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-color: var(--defi-accent) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}
.defi-portfolio-index-chart-legend::-webkit-scrollbar {
  width: 6px;
}
.defi-portfolio-index-chart-legend::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.defi-portfolio-index-chart-legend::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--defi-accent);
}
.defi-portfolio-index-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.defi-portfolio-index-chart-legend-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.defi-portfolio-index-chart-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}
.defi-portfolio-index-chart-legend-short {
  color: var(--defi-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.defi-portfolio-index-chart-legend-name {
  color: var(--defi-text);
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.defi-portfolio-index-chart-legend-item.is-hidden
  .defi-portfolio-index-chart-legend-swatch,
.defi-portfolio-index-chart-legend-item.is-hidden
  .defi-portfolio-index-chart-legend-short,
.defi-portfolio-index-chart-legend-item.is-hidden
  .defi-portfolio-index-chart-legend-name {
  opacity: 0.35;
  text-decoration: line-through;
}
@media (max-width: 991px) {
  .defi-portfolio-index-chart-layout {
    flex-direction: column;
  }
  .defi-portfolio-index-chart-legend-col {
    flex: 0 0 auto;
    max-height: 200px;
  }
}
/* P&L bar index card */
/* Donut layout */
/* Radar picker (stock conviction) */
.defi-portfolio-chart-empty {
  color: var(--defi-muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
}
.defi-portfolio-pnl-bar-card .defi-home-card-body {
  padding: 12px 18px 18px;
}
.defi-portfolio-pnl-bar-wrap {
  position: relative;
  width: 100%;
  height: 320px;
}
.defi-portfolio-pnl-bar-empty {
  color: var(--defi-muted);
  text-align: center;
  padding: 40px 0;
}
.defi-portfolio-donut-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px;
}
.defi-portfolio-donut {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 18px;
  width: 100%;
  align-items: center;
}
.defi-portfolio-donut--small .defi-portfolio-donut-canvas {
  max-width: 160px;
}
.defi-portfolio-donut-canvas {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.defi-portfolio-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  gap: 2px;
}
.defi-portfolio-donut-center-label {
  color: var(--defi-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-portfolio-donut-center-value {
  color: var(--defi-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}
.defi-portfolio-donut-center-foot {
  color: var(--defi-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.defi-portfolio-donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.defi-portfolio-donut-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--defi-text);
}
.defi-portfolio-donut-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--defi-accent, #10cfbd);
  display: inline-block;
}
.defi-portfolio-donut-legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defi-portfolio-donut-legend-value {
  color: var(--defi-muted);
  font-size: 11px;
  font-weight: 600;
}
.defi-portfolio-radar-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.defi-portfolio-radar-controls label {
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-portfolio-radar-controls select {
  background: var(--defi-row-bg, rgba(255, 255, 255, 0.04));
  color: var(--defi-text);
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
@media (max-width: 767px) {
  .defi-portfolio-donut {
    grid-template-columns: 1fr;
  }
  .defi-portfolio-donut-canvas {
    max-width: 180px;
  }
}

.defi-portfolio-donut--stacked {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 24px !important;
  width: 100% !important;
}
.defi-portfolio-donut--stacked .defi-portfolio-donut-canvas {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.defi-portfolio-donut--stacked .defi-portfolio-donut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}
.defi-portfolio-donut--stacked .defi-portfolio-donut-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.defi-portfolio-donut--stacked .defi-portfolio-donut-legend-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.defi-portfolio-donut--stacked .defi-portfolio-donut-legend-value {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.defi-report-stat--pnl .defi-report-stat-pnl-supporting {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--defi-line);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--defi-muted, rgba(247, 248, 248, 0.62));
  opacity: 0.9;
}
.defi-report-stat--pnl .defi-report-stat-pnl-supporting .supporting-value {
  color: var(--defi-heading);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.defi-report-stat-strip--portfolio {
  gap: 10px;
}
.defi-report-stat-strip--portfolio > .defi-report-stat--pnl {
  grid-column: 1 / -1;
  min-height: 110px;
}
.defi-report-stat-strip--portfolio > .defi-report-stat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 92px;
}
.defi-report-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  min-height: 92px;
}
@media (max-width: 767px) {
  .defi-report-stat-row {
    grid-template-columns: 1fr;
  }
}

.defi-thesis-pnl-card {
  position: relative;
  padding: 18px 20px 16px;
  border: 1px solid var(--defi-line);
  border-left: 3px solid var(--defi-accent, #10cfbd);
  border-radius: 4px;
  background: var(--defi-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.defi-thesis-pnl-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(16, 207, 189, 0.5) 0%,
    rgba(16, 207, 189, 0) 60%
  );
  pointer-events: none;
}
.defi-thesis-pnl-card--is-up {
  border-left-color: var(--defi-green, #10cfbd);
}
.defi-thesis-pnl-card--is-down {
  border-left-color: var(--defi-red, #ef4444);
}
.defi-thesis-pnl-card--is-flat {
  border-left-color: var(--defi-dim);
}
.defi-thesis-pnl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
  min-height: 26px;
}
.defi-thesis-pnl-kicker {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-thesis-pnl-card-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.defi-thesis-pnl-amount {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" on;
}
.defi-thesis-pnl-pct {
  color: var(--defi-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-thesis-pnl-pct span {
  color: var(--defi-dim);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-left: 4px;
}
.defi-thesis-pnl-card--is-up .defi-thesis-pnl-amount,
.defi-thesis-pnl-card--is-up .defi-thesis-pnl-pct {
  color: var(--defi-green, #10cfbd);
}
.defi-thesis-pnl-card--is-down .defi-thesis-pnl-amount,
.defi-thesis-pnl-card--is-down .defi-thesis-pnl-pct {
  color: var(--defi-red, #ef4444);
}
.defi-thesis-pnl-card-supporting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--defi-line);
}
.defi-thesis-pnl-card-supporting > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.defi-thesis-pnl-card-supporting span {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-thesis-pnl-card-supporting strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" on;
}
@media (max-width: 767px) {
  .defi-thesis-pnl-amount {
    font-size: 28px;
  }
  .defi-thesis-pnl-card-supporting {
    grid-template-columns: 1fr;
  }
}

.defi-thesis-pnl-view-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border: 1px solid rgba(16, 207, 189, 0.34);
  border-radius: 999px;
  background: rgba(16, 207, 189, 0.08);
  color: var(--defi-accent, #10cfbd) !important;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.defi-thesis-pnl-view-portfolio:hover,
.defi-thesis-pnl-view-portfolio:focus {
  background: rgba(16, 207, 189, 0.18);
  border-color: var(--defi-accent, #10cfbd);
  color: var(--defi-heading) !important;
  outline: none;
}
.defi-thesis-pnl-view-portfolio .material-symbols-outlined {
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
}
.defi-thesis-pnl-view-portfolio-arrow {
  transition: transform 0.18s ease;
}
.defi-thesis-pnl-view-portfolio:hover .defi-thesis-pnl-view-portfolio-arrow,
.defi-thesis-pnl-view-portfolio:focus .defi-thesis-pnl-view-portfolio-arrow {
  transform: translateX(2px);
}

.defi-home-portfolio-row-event > i.material-symbols-outlined {
  font-size: 14px;
  color: var(--defi-accent, #10cfbd);
  line-height: 1;
}
.defi-portfolio-detail-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.defi-portfolio-detail-pillars-card,
.defi-portfolio-detail-milestones-card,
.defi-portfolio-detail-stocks-card {
  margin-bottom: 0;
}
.defi-portfolio-detail-pillars-body,
.defi-portfolio-detail-milestones-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 14px 14px;
}
.defi-portfolio-detail-pillars-body::-webkit-scrollbar,
.defi-portfolio-detail-milestones-body::-webkit-scrollbar {
  width: 4px;
}
.defi-portfolio-detail-pillars-body::-webkit-scrollbar-thumb,
.defi-portfolio-detail-milestones-body::-webkit-scrollbar-thumb {
  background: var(--defi-scrollbar);
  border-radius: 2px;
}
.defi-portfolio-detail-pillar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--defi-line);
}
.defi-portfolio-detail-pillar-row:first-child,
.defi-portfolio-detail-milestone-row:first-child {
  border-top: none;
  padding-top: 4px;
}
.defi-portfolio-detail-pillar-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.defi-portfolio-detail-pillar-head .font-mono {
  color: var(--defi-accent, #10cfbd);
  font-size: 11px;
  font-weight: 700;
}
.defi-portfolio-detail-pillar-head strong {
  color: var(--defi-text);
  font-size: 13px;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defi-portfolio-detail-pillar-role {
  color: var(--defi-muted);
  font-size: 11px;
  line-height: 1.5;
}
.defi-portfolio-detail-pillar-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.defi-portfolio-detail-pillar-stocks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.defi-portfolio-detail-pillar-stocks span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--defi-row-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--defi-line);
  color: var(--defi-text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.defi-portfolio-detail-milestone-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--defi-line);
}
.defi-portfolio-detail-milestone-row .font-mono {
  color: var(--defi-accent, #10cfbd);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.defi-portfolio-detail-milestone-row strong {
  color: var(--defi-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.defi-portfolio-detail-milestone-row p {
  color: var(--defi-muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}
.defi-portfolio-detail-milestone-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .defi-portfolio-detail-rail {
    margin-top: 16px;
  }
}
/* Long vs Short P&L Widget Styles */
/* Hyperion scrollbars: keep internal card scroll indicators as thin green lines. */
.defi-portfolio-side-pnl-card {
  margin-bottom: 20px;
}
.defi-portfolio-side-pnl-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.defi-portfolio-side-pnl-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--defi-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.defi-side-box--long {
  border-left: 3px solid #60a5fa;
}
.defi-side-box--short {
  border-left: 3px solid var(--defi-red, #ef4444);
}
.defi-side-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.defi-side-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}
.defi-side-pill--long {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}
.defi-side-pill--short {
  background: rgba(239, 68, 68, 0.14);
  color: var(--defi-red, #ef4444);
}
.defi-side-winrate {
  font-size: 10px;
  color: var(--defi-muted, #94a3b8);
}
.defi-side-box-value {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.defi-side-box-sub {
  font-size: 10px;
  color: var(--defi-muted, #94a3b8);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.text-success {
  color: #22c55e !important;
}
.text-danger {
  color: #ff6b6b !important;
}
.defi-algoapp-trade-page .defi-report-hero {
  padding-bottom: 36px;
  border-bottom: 0;
}
.defi-algoapp-trade-hero {
  padding: 70px 0 36px;
}
.defi-algoapp-trade-card {
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: var(--defi-surface);
  padding: 0;
  margin-bottom: 18px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}
.defi-algoapp-trade-muted {
  color: var(--defi-muted);
  font-size: 14px;
  line-height: 1.7;
}
.defi-algoapp-symbol-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--defi-label);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-algoapp-symbol-toolbar button {
  border: 0;
  background: transparent;
  color: var(--defi-muted);
  font: inherit;
  padding: 0;
  text-transform: uppercase;
}
.defi-algoapp-symbol-toolbar button:hover,
.defi-algoapp-symbol-toolbar button:focus {
  color: var(--defi-accent, #10cfbd);
  outline: none;
}
.defi-algoapp-symbol-toolbar span {
  width: 1px;
  height: 12px;
  background: var(--defi-line);
}
.defi-algoapp-symbol-toolbar strong {
  color: var(--defi-heading);
  font: inherit;
  margin-left: 4px;
}
.defi-algoapp-position-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--defi-line);
  margin-top: 12px;
}
.defi-algoapp-position-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(0, 1.6fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--defi-line);
}
.defi-algoapp-position-row strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.defi-algoapp-position-row span {
  color: var(--defi-muted);
  font-size: 12px;
  line-height: 1.45;
}
.defi-algoapp-position-row small {
  display: block;
  color: var(--defi-label);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 4px;
}
.defi-algoapp-position-list--selectable {
  margin-top: 0;
}
.defi-algoapp-position-row--selectable {
  grid-template-columns: 28px minmax(0, 1fr) 126px;
  gap: 12px;
  padding: 15px 0;
}
.defi-algoapp-position-market-row {
  width: 100%;
  grid-template-columns: minmax(150px, 1fr) auto;
  padding: 0;
  border-top: 0;
}
.defi-algoapp-position-market-row:first-child {
  padding-top: 0;
}
.defi-algoapp-symbol-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}
.defi-algoapp-symbol-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.defi-algoapp-symbol-check span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--defi-line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.defi-algoapp-symbol-check input:checked + span {
  border-color: var(--defi-accent, #10cfbd);
  background: rgba(16, 207, 189, 0.16);
}
.defi-algoapp-symbol-check input:checked + span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--defi-accent, #10cfbd);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.defi-algoapp-exposure-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.defi-algoapp-exposure-field > span {
  color: var(--defi-label);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.defi-algoapp-exposure-field select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--defi-heading);
  font-size: 12px;
  letter-spacing: 0;
  outline: none;
  padding: 0 10px;
}
.defi-algoapp-exposure-field select:focus {
  border-color: var(--defi-accent, #10cfbd);
  box-shadow: 0 0 0 3px rgba(16, 207, 189, 0.08);
}
.defi-algoapp-symbols-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--defi-heading, #e6edf3);
}
.defi-algoapp-symbols-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--defi-label, #8b95a4);
  padding: 10px 8px;
  border-bottom: 1px solid var(--defi-line, #1f2933);
  user-select: none;
}
.defi-algoapp-symbols-table thead th[data-sort] {
  cursor: pointer;
  white-space: nowrap;
}
.defi-algoapp-symbols-table thead th[data-sort]:hover {
  color: var(--defi-muted, #cbd5e1);
}
.defi-algoapp-symbols-table thead th[data-sort] i {
  margin-left: 6px;
  font-size: 11px;
}
.defi-algoapp-symbols-table thead th.sort-asc,
.defi-algoapp-symbols-table thead th.sort-desc {
  color: var(--defi-accent, #10cfbd);
}
.defi-algoapp-symbols-table thead th.sort-asc i,
.defi-algoapp-symbols-table thead th.sort-desc i {
  color: var(--defi-accent, #10cfbd);
}
.defi-algoapp-symbols-table tbody tr {
  border-bottom: 1px solid var(--defi-line, #1f2933);
}
.defi-algoapp-symbols-table tbody tr:last-child {
  border-bottom: 0;
}
.defi-algoapp-symbols-table tbody td {
  padding: 12px 8px;
  vertical-align: top;
  font-size: 13px;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-col-check {
  width: 36px;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-col-pnl {
  width: 64px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-col-exposure {
  width: 132px;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-ticker {
  display: block;
  color: var(--defi-heading, #e6edf3);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-ticker:hover {
  color: var(--defi-accent, #10cfbd);
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-name {
  display: block;
  color: var(--defi-muted, #cbd5e1);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-price {
  display: block;
  color: var(--defi-label, #8b95a4);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 4px;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-price-entry {
  color: var(--defi-muted, #cbd5e1);
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-price-arrow {
  margin: 0 4px;
  opacity: 0.7;
}
.defi-algoapp-symbols-table .defi-algoapp-symbols-price-last {
  color: var(--defi-label, #8b95a4);
}
.defi-algoapp-symbols-table .is-up {
  color: var(--defi-green, #36d399);
}
.defi-algoapp-symbols-table .is-down {
  color: var(--defi-red, #ff6b6b);
}
.defi-algoapp-symbols-table .is-flat {
  color: var(--defi-muted, #cbd5e1);
}
.defi-algoapp-symbols-table .defi-algoapp-exposure-field > span {
  display: none;
}
.defi-algoapp-position-side {
  border: 1px solid var(--defi-line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--defi-accent, #10cfbd) !important;
  font-family: var(--font-mono);
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-algoapp-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--defi-line);
  color: var(--defi-text);
}
.defi-algoapp-check-row:last-child {
  border-bottom: 0;
}
.defi-algoapp-check-row i {
  font-size: 18px;
}
.defi-algoapp-check-row.is-ok i,
.defi-algoapp-check-row.is-ok strong {
  color: var(--defi-accent, #10cfbd);
}
.defi-algoapp-check-row.is-blocked i,
.defi-algoapp-check-row.is-blocked strong {
  color: var(--defi-red, #ef4444);
}
.defi-algoapp-check-row.is-user-check strong {
  color: #f5c86a;
}
.defi-algoapp-check-row small {
  display: block;
  color: var(--defi-muted);
  font-size: 11px;
  margin-top: 2px;
}
.defi-algoapp-side-rail {
  position: static;
  padding: 8px 0 0 20px;
}
.defi-algoapp-side-rail .defi-section-kicker {
  margin-bottom: 14px;
  color: var(--defi-accent, #10cfbd);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.defi-algoapp-side-rail h2 {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--defi-heading);
  font-size: clamp(28px, 2.1vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}
.defi-algoapp-side-rail p {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--defi-muted);
  font-family: var(--font-space-grotesk, "Space Grotesk", sans-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0;
}
.defi-algoapp-rail-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--defi-line);
}
.defi-algoapp-side-rail .defi-algoapp-check-row {
  padding: 13px 0;
  color: var(--defi-text);
  font-size: 13px;
  line-height: 1.45;
}
.defi-algoapp-side-rail .defi-algoapp-check-row strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.defi-algoapp-inline-note {
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--defi-muted);
  font-size: 12px;
  line-height: 1.55;
  padding: 12px;
}
.defi-algoapp-handoff-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.defi-algoapp-handoff-copy p {
  color: var(--defi-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.defi-algoapp-right-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.defi-algoapp-right-stack .defi-home-card,
.defi-algoapp-right-stack .defi-pillar-tv-section {
  margin-bottom: 0;
}
.defi-algoapp-tv-section .defi-home-hero-stage {
  margin: 0 0 14px;
  padding: 12px 0 0;
}
.defi-algoapp-tv-section .defi-home-title {
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.06;
}
.defi-algoapp-tv-section .defi-pillar-tv-card {
  margin-top: 0;
}
.defi-algoapp-trade-page .defi-portfolio-side-pnl-summary {
  grid-template-columns: 1fr;
}
.defi-algoapp-trade-page .defi-portfolio-chart-canvas-wrap--tall {
  height: 320px;
}
.defi-algoapp-trade-bridge {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--defi-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.defi-algoapp-trade-bridge span {
  color: var(--defi-muted);
  opacity: 0.7;
}
.defi-algoapp-trade-bridge strong {
  color: var(--defi-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.defi-algoapp-trade-bridge i {
  color: var(--defi-accent, #10cfbd);
  font-size: 14px;
  margin: 4px 0;
}
.defi-algoapp-trade-form {
  margin: 0;
}
.defi-algoapp-risk-band {
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--defi-line);
  border-bottom: 1px solid var(--defi-line);
}
.defi-algoapp-risk-band .row {
  margin-left: 0;
  margin-right: 0;
}
.defi-algoapp-risk-band .col-xs-12 {
  padding-left: 0;
  padding-right: 0;
}
.defi-algoapp-risk-band + .defi-algoapp-trade-hero {
  padding-top: 42px;
}
.defi-algoapp-trade-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--defi-accent, #10cfbd);
  border-radius: 3px;
  background: rgba(16, 207, 189, 0.12);
  color: var(--defi-heading) !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 18px;
  text-transform: uppercase;
  width: 100%;
}
.defi-algoapp-trade-submit:hover,
.defi-algoapp-trade-submit:focus {
  background: rgba(16, 207, 189, 0.18);
  outline: none;
  text-decoration: none;
}
.defi-algoapp-trade-submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 767px) {
  .defi-algoapp-position-row,
  .defi-algoapp-position-row--selectable {
    grid-template-columns: 1fr;
  }
  .defi-algoapp-symbol-check {
    justify-content: flex-start;
  }
}
.defi-home-page,
.defi-home-page * {
  scrollbar-color: var(--defi-accent, #10cfbd) transparent;
  scrollbar-width: thin;
}
.defi-home-page ::-webkit-scrollbar {
  width: 3px !important;
  height: 3px !important;
}
.defi-home-page ::-webkit-scrollbar-thumb {
  background: var(--defi-accent, #10cfbd) !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.defi-home-page ::-webkit-scrollbar-track,
.defi-home-page ::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* Hyperion Stocks */
.defi-stocks-index-section,
.defi-stock-detail-grid {
  padding-top: 18px;
}
.defi-stock-sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}
.defi-stock-sort-row a {
  border: 1px solid var(--defi-line);
  border-radius: 3px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 11px;
  text-transform: uppercase;
}
.defi-stock-sort-row a:hover,
.defi-stock-sort-row a.is-active {
  border-color: var(--defi-accent);
  color: var(--defi-heading);
  text-decoration: none;
}
.defi-stock-index-row {
  align-items: center;
  border-top: 1px solid var(--defi-line);
  color: var(--defi-text);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.3fr) 68px 68px minmax(170px, auto);
  min-height: 102px;
  padding: 15px 20px;
}
.defi-stock-index-row:hover {
  background: rgba(16, 207, 189, 0.06);
  color: var(--defi-heading);
  text-decoration: none;
}
.defi-stock-index-symbol span,
.defi-stock-index-symbol em,
.defi-stock-index-score span,
.defi-stock-index-money span {
  color: var(--defi-muted);
  display: block;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-stock-index-symbol strong {
  color: var(--defi-heading);
  display: block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  margin: 4px 0 10px;
}
.defi-stock-index-pills {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
}
.defi-stock-index-pills span,
.defi-stock-pillar-chip > span {
  border: 0;
  border-radius: 3px;
  color: var(--defi-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 0;
  text-transform: uppercase;
}
.defi-stock-index-score strong,
.defi-stock-index-money strong {
  color: var(--defi-heading);
  display: block;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  margin-top: 5px;
}
.defi-stock-index-money {
  text-align: right;
}
.defi-stock-index-pnl {
  margin-top: 0;
  text-align: right;
}
.defi-stock-index-pnl .defi-home-thesis-row-pnl-amount-row,
.defi-stock-index-pnl .defi-home-thesis-row-pnl-meta {
  justify-content: flex-end;
}
.defi-stock-index-pnl-top-label {
  color: var(--defi-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.defi-stock-index-pnl .defi-home-thesis-row-pnl-amount {
  font-size: 30px;
  font-weight: 400;
}
.defi-stock-index-pnl .defi-home-thesis-row-pnl-pct {
  font-weight: 400;
}
.defi-stock-index-pnl .defi-home-thesis-row-pnl-label,
.defi-stock-index-pnl .defi-home-thesis-row-pnl-market {
  font-size: 10px;
}
.defi-stock-index-pnl .defi-home-thesis-row-pnl-meta {
  gap: 0;
}
.defi-stocks-charts-panel .defi-milestones-chart-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.defi-stocks-charts-panel .defi-milestones-chart-card .defi-home-card-header {
  border: 0;
  padding: 0 0 12px;
}
.defi-stocks-charts-panel .defi-milestones-chart-card .defi-home-card-body {
  padding: 0;
}
.defi-stocks-charts-panel .defi-milestones-chart-card + .defi-milestones-chart-card,
.defi-stocks-charts-panel .defi-milestones-chart-card + .defi-home-card {
  margin-top: 28px;
}
.defi-stock-index-money .is-up,
.defi-stock-context-row em.is-up {
  color: var(--defi-green);
}
.defi-stock-index-money .is-down,
.defi-stock-context-row em.is-down {
  color: var(--defi-red);
}
.defi-stock-index-money .is-flat,
.defi-stock-context-row em.is-flat {
  color: var(--defi-muted);
}
.defi-stock-watch-row {
  align-items: center;
  border-top: 1px solid var(--defi-line);
  color: var(--defi-text);
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
}
.defi-stock-watch-row:hover {
  color: var(--defi-accent);
  text-decoration: none;
}
.defi-stock-watch-row span,
.defi-stock-watch-row strong {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.defi-stock-detail-hero {
  padding-top: clamp(52px, 7vw, 100px);
}
.defi-stock-detail-hero .defi-hero-top-row {
  max-width: 980px;
}
.defi-stock-detail-title {
  font-size: clamp(62px, 8vw, 108px);
  line-height: 0.98;
  margin-top: 18px;
}
.defi-stock-detail-title span {
  font-size: 0.38em;
}
.defi-stock-hero-status {
  align-items: center;
  color: var(--defi-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 10px 0 0;
  text-transform: uppercase;
}
.defi-stock-hero-status span + span::before {
  color: var(--defi-dim);
  content: "·";
  margin-right: 12px;
}
.defi-stock-hero-company {
  color: var(--defi-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  margin: 14px 0 0;
}
.defi-stock-performance-card {
  background: var(--defi-surface);
  border: 1px solid var(--defi-line);
  border-left: 3px solid var(--defi-accent, #10cfbd);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 56px;
  padding: 18px 20px 16px;
  position: relative;
}
.defi-stock-performance-card::before {
  background: linear-gradient(90deg, rgba(16, 207, 189, 0.5) 0%, rgba(16, 207, 189, 0) 60%);
  content: "";
  height: 1px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}
.defi-stock-performance-card--is-up {
  border-left-color: var(--defi-green, #10cfbd);
}
.defi-stock-performance-card--is-down {
  border-left-color: var(--defi-red, #ef4444);
}
.defi-stock-performance-card--is-flat {
  border-left-color: var(--defi-dim);
}
.defi-stock-performance-card--is-up .defi-thesis-pnl-amount,
.defi-stock-performance-card--is-up .defi-thesis-pnl-pct {
  color: var(--defi-green, #10cfbd);
}
.defi-stock-performance-card--is-down .defi-thesis-pnl-amount,
.defi-stock-performance-card--is-down .defi-thesis-pnl-pct {
  color: var(--defi-red, #ef4444);
}
.defi-stock-performance-card .defi-thesis-pnl-amount {
  font-weight: 400;
}
.defi-stock-performance-symbol {
  color: var(--defi-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.defi-stock-performance-snapshot {
  border-top: 1px solid var(--defi-line);
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 12px;
}
.defi-stock-performance-snapshot > div {
  border-top: 1px solid var(--defi-stat-border-soft);
  display: grid;
  gap: 5px;
  padding: 12px 0;
}
.defi-stock-performance-snapshot > div:nth-child(-n + 2) {
  border-top: 0;
}
.defi-stock-performance-snapshot span {
  color: var(--defi-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-stock-performance-snapshot strong {
  color: var(--defi-heading);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.defi-stock-insight-row {
  border-top: 1px solid var(--defi-line);
  padding: 15px 0;
}
.defi-stock-insight-row span {
  color: var(--defi-accent);
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.defi-stock-insight-row p {
  color: var(--defi-text);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.defi-stock-insight-row--risk span {
  color: var(--defi-red);
}
.defi-stock-insight-row--profit span {
  color: var(--defi-green);
}
.defi-stock-context-flow {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.defi-stock-context-section {
  border-top: 1px solid var(--defi-line);
  padding: clamp(38px, 5vw, 62px) 0;
}
.defi-stock-context-section:first-child {
  margin-top: 8px;
}
.defi-stock-detail-section-heading {
  align-items: baseline;
  border-bottom: 1px solid var(--defi-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 28px;
  padding: 0 0 24px;
}
.defi-stock-detail-section-title {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  margin: 0;
}
.defi-stock-detail-section-title span {
  font-size: 0.55em;
}
.defi-stock-detail-section-meta {
  color: var(--defi-dim);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-stock-context-title {
  color: var(--defi-accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.defi-stock-context-row {
  border: 1px solid transparent;
  color: var(--defi-text);
  display: block;
  padding: 13px 14px;
}
.defi-stock-context-row:hover {
  border-color: var(--defi-line);
  color: var(--defi-heading);
  text-decoration: none;
}
.defi-stock-context-row--static:hover {
  border-color: transparent;
}
.defi-stock-context-row > span {
  color: var(--defi-accent);
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.defi-stock-context-row em {
  color: var(--defi-muted);
  display: block;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.defi-stock-context-row em .defi-event-year {
  color: var(--defi-red, #ff6b6b);
  display: inline;
  font-weight: 700;
}
.defi-stock-context-row strong {
  color: var(--defi-heading);
  display: block;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  margin: 5px 0;
}
.defi-stock-pillar-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.defi-stock-pillar-chip {
  border: 1px solid var(--defi-line);
  border-radius: 4px;
  color: var(--defi-text);
  display: block;
  min-height: 128px;
  padding: 14px;
}
.defi-stock-pillar-chip:hover {
  border-color: var(--defi-accent);
  color: var(--defi-heading);
  text-decoration: none;
}
.defi-stock-pillar-chip strong,
.defi-stock-pillar-chip em {
  display: block;
}
.defi-stock-pillar-chip strong {
  color: var(--defi-heading);
  font-size: 15px;
  line-height: 1.25;
  margin: 10px 0 8px;
}
.defi-stock-pillar-chip em,
.defi-stock-context-empty {
  color: var(--defi-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}
@media (max-width: 991px) {
  .defi-stock-index-row {
    grid-template-columns: 1fr 1fr;
  }
  .defi-stock-index-money,
  .defi-stock-index-pnl {
    text-align: left;
  }
  .defi-stock-index-pnl .defi-home-thesis-row-pnl-amount-row,
  .defi-stock-index-pnl .defi-home-thesis-row-pnl-meta {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .defi-stock-index-row,
  .defi-stock-pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Hyperion chart widgets: charts are frameless; titles act as bottom labels. */
.defi-home-page .defi-home-card:has(canvas),
.defi-home-page .defi-card-inner:has(canvas),
.defi-event-chart-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
}
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-header,
.defi-home-page .defi-card-inner:has(canvas) > .defi-card-inner-header,
.defi-event-chart-card > .defi-home-card-header {
  background: transparent !important;
  border: 0 !important;
  justify-content: center;
  min-height: 0;
  order: 2;
  padding: 12px 0 0 !important;
  text-align: center;
}
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-body,
.defi-home-page .defi-card-inner:has(canvas) > .chart-container,
.defi-event-chart-card > .defi-event-chart-wrap {
  background: transparent !important;
  border: 0 !important;
  order: 1;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-header h3,
.defi-home-page .defi-card-inner:has(canvas) > .defi-card-inner-header h4,
.defi-event-chart-card > .defi-home-card-header h3 {
  justify-content: center;
  text-align: center;
}
.defi-home-page .defi-home-card:has(canvas) > .defi-home-card-header h3 .material-symbols-outlined,
.defi-home-page .defi-card-inner:has(canvas) > .defi-card-inner-header h4 .material-symbols-outlined,
.defi-event-chart-card > .defi-home-card-header h3 .material-symbols-outlined {
  display: none;
}


.defi-status-pill--paper .defi-status-pill-dot {
  background: #38bdf8;
}
.defi-status-pill--prod .defi-status-pill-dot {
  background: #10b981;
}

/* Pillar Graph metrics (Portfolio Detail view) */
.defi-thesis-pillar-overview-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--defi-muted, #71717a) !important;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-thesis-pillar-overview-meta .defi-home-meta-sep {
  color: var(--defi-dim, #52525b) !important;
  opacity: 0.6;
}
.defi-pillar-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--defi-muted, #71717a) !important;
}
.defi-pillar-meta-label {
  color: var(--defi-muted, #71717a) !important;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.defi-pillar-meta-value {
  color: var(--defi-muted, #71717a) !important;
  font-weight: 500;
  font-feature-settings: "tnum" on;
}
.defi-pillar-meta-value.is-up {
  color: var(--defi-green, #10b981) !important;
}
.defi-pillar-meta-value.is-down {
  color: var(--defi-red, #ef4444) !important;
}
.defi-pillar-meta-value.is-flat {
  color: var(--defi-muted, #71717a) !important;
}
.defi-pillar-meta-pct {
  font-weight: 500;
  margin-left: 2px;
}

/* Portfolio automation summary (Portfolio Detail view) */
.defi-portfolio-automation-summary {
  display: grid;
  grid-template-columns: minmax(145px, 1.1fr) minmax(75px, 0.6fr) minmax(155px, 1.25fr) minmax(95px, 0.8fr) minmax(95px, 0.8fr) minmax(130px, 1fr);
  align-items: stretch;
  background: var(--defi-surface, rgba(18, 20, 27, 0.76));
  border: 1px solid var(--defi-line, rgba(255, 255, 255, 0.1));
  border-radius: 4px;
  margin-top: 14px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.defi-portfolio-automation-summary:hover {
  border-color: rgba(16, 207, 189, 0.5);
  background: rgba(18, 20, 27, 0.95);
  transform: translateY(-1px);
}

.defi-portfolio-automation-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-right: 1px solid var(--defi-line, rgba(255, 255, 255, 0.1));
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--defi-heading, #fff);
  white-space: nowrap;
}

.defi-portfolio-automation-summary-title .material-symbols-outlined {
  font-size: 16px;
  color: var(--defi-accent, #38bdf8);
}

.defi-portfolio-automation-summary-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 14px;
  border-right: 1px solid var(--defi-line, rgba(255, 255, 255, 0.1));
  white-space: nowrap;
}

.defi-portfolio-automation-summary-item small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--defi-label, #71717a);
  font-weight: 500;
}

.defi-portfolio-automation-summary-item strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--defi-heading, #fff);
}

.defi-portfolio-automation-summary-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  white-space: nowrap;
}

.defi-portfolio-automation-summary-state span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.defi-portfolio-automation-summary-state small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--defi-label, #71717a);
  font-weight: 500;
}

.defi-portfolio-automation-summary-state strong {
  font-size: 12px;
  font-weight: 700;
}

.defi-portfolio-automation-summary-state.is-enabled strong {
  color: var(--defi-green, #10b981);
}

.defi-portfolio-automation-summary-state.is-disabled strong {
  color: var(--defi-dim, #71717a);
}

.defi-portfolio-automation-summary-state .material-symbols-outlined {
  font-size: 18px;
  color: var(--defi-dim, #71717a);
  transition: color 0.2s ease;
}

.defi-portfolio-automation-summary-state.is-enabled .material-symbols-outlined {
  color: var(--defi-accent, #38bdf8);
}

.defi-portfolio-automation-summary-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--defi-green, #10b981);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: defi-status-pulse 1.8s ease-out infinite;
}

.defi-portfolio-automation-summary-state.is-disabled .defi-portfolio-automation-summary-dot {
  background: var(--defi-dim, #71717a);
  box-shadow: none;
  animation: none;
}

@media (max-width: 991px) {
  .defi-portfolio-automation-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .defi-portfolio-automation-summary-title {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--defi-line, rgba(255, 255, 255, 0.1));
  }
}

/* Portfolio automation summary & status — inactive / ineligible states */
.defi-portfolio-automation-summary--inactive {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) 1fr minmax(170px, auto);
  cursor: default;
  opacity: 0.85;
}
.defi-portfolio-automation-summary--inactive:hover,
.defi-portfolio-automation-summary--inactive:focus {
  border-color: var(--defi-line, rgba(255, 255, 255, 0.1));
  background: var(--defi-surface, rgba(18, 20, 27, 0.76));
  transform: none;
}
.defi-portfolio-automation-summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-right: 1px solid var(--defi-line, rgba(255, 255, 255, 0.1));
  color: var(--defi-muted, #9ca3af);
  font-size: 11px;
  font-family: var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.4;
}
.defi-portfolio-automation-summary-note .material-symbols-outlined {
  font-size: 16px;
  color: var(--defi-dim, #71717a);
  flex-shrink: 0;
}
.defi-portfolio-automation-summary-title.is-muted {
  color: var(--defi-dim, #71717a);
}
.defi-portfolio-automation-summary-state.is-ineligible {
  color: var(--defi-dim, #71717a);
}
.defi-portfolio-automation-summary-dot--muted {
  background: var(--defi-dim, #71717a) !important;
  box-shadow: none !important;
  animation: none !important;
}
.defi-thesis-automation-status.is-ineligible {
  color: var(--defi-dim, #71717a) !important;
  cursor: default;
  opacity: 0.7;
}
.defi-thesis-automation-status.is-ineligible:hover {
  color: var(--defi-dim, #71717a) !important;
}

.defi-portfolio-hero-change-strip {
  margin-top: auto;
  padding-top: 20px;
}

/* Portfolio row trading status indicator */
.defi-portfolio-trading-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.defi-portfolio-trading-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.defi-portfolio-trading-label {
  color: var(--defi-dim, #71717a);
  font-weight: 500;
}

.defi-portfolio-trading-env {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  line-height: 1;
  transition: all 0.2s ease;
}

.defi-portfolio-trading-env .defi-trading-env-name {
  font-weight: 600;
  color: var(--defi-dim, #71717a);
  letter-spacing: 0.05em;
}

.defi-portfolio-trading-env.is-trading {
  background: transparent !important;
  border: none !important;
}

.defi-portfolio-trading-env.is-trading .defi-trading-env-name {
  color: var(--defi-heading, #f1f5f9);
  font-weight: 600;
}

.defi-portfolio-trading-env.is-idle .defi-trading-env-name {
  color: var(--defi-dim, #71717a);
}

/* Trading status dots: green pulse for true, subtle muted dot for false */
.defi-trading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.defi-trading-dot--true {
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: defi-status-pulse 1.8s ease-out infinite;
}

.defi-trading-dot--false {
  background: #71717a;
  opacity: 0.55;
}

