/* Ultracapitalism 1970s Boardroom Corporate Aesthetic */

:root {
  --bg-dark: #120e0c;
  --bg-surface: #1a1411;
  --bg-card: #221a16;
  --bg-card-hover: #2a201b;
  --border-dim: #3a2e26;
  --border-brass: #b8860b;
  --border-gold: #d4af37;
  --gold-bright: #ffd700;
  --gold-dim: #cfb53b;
  --profit: #4f9c63;
  --profit-rgb: 79, 156, 99;
  --scandal-red: #b22222;
  --scandal-bg: #3d1414;
  --text-main: #f0e6d6;
  --text-dim: #a69888;
  --text-faint: #6e6254;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "Courier New", Courier, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
}

/* ==========================================================================
   1. Live Global Financial Ticker (Universal)
   ========================================================================== */
.ticker-wrap {
  width: 100%;
  background: #080605;
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  position: relative;
  z-index: 101;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.ticker-inner {
  display: inline-block;
  animation: tickerScroll 42s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.6rem;
}

.ticker-up {
  color: #69db7c;
  font-weight: 600;
}

.ticker-down {
  color: #ff8787;
  font-weight: 600;
}

.ticker-accent {
  color: var(--gold-bright);
  font-weight: 600;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-wrap:hover .ticker-inner {
  animation-play-state: paused;
}

/* ==========================================================================
   2. Sticky Unified Navigation Header
   ========================================================================== */
.site-header, .navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(15, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  z-index: 100;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  padding: 0.85rem 2rem;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.brand-link, .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo-img, .brand-logo {
  height: 38px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease, filter 0.2s ease, height 0.22s ease;
  transform-origin: left center;
}

.header-play-btn .btn-icon {
  display: none;
  flex-shrink: 0;
}

.brand-link:hover .brand-logo-img, .brand:hover .brand-logo {
  transform: scale(1.02);
  filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.35)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.brand-text-block, .brand-lockup {
  display: flex;
  flex-direction: column;
}

.brand-subhead, .brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  transition: color 0.2s ease;
}

.brand-link:hover .brand-subhead, .brand:hover .brand-subtitle {
  color: var(--gold-bright);
}

/* Scrolled state — toggled by JS once the page is scrolled past the top. The
   subhead collapses and the padding tightens so the sticky header takes less
   of the screen mid-page. */
.brand-text-block, .brand-lockup {
  max-height: 2rem;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.22s ease;
}

.site-header.is-scrolled {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.site-header.is-scrolled .brand-text-block,
.site-header.is-scrolled .brand-lockup {
  max-height: 0;
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-img,
.site-header.is-scrolled .brand-logo {
  height: 30px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .brand-text-block, .brand-lockup,
  .brand-logo-img, .brand-logo {
    transition: none;
  }
}

.nav-menu, .nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-bright);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa8012 100%);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Action Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa8012 100%);
  color: #1a1208 !important;
  border-color: #ffd700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #0d0803 !important;
  }
}

/* Main Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* CEO Banner Section Header */
.ceo-banner-header {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
}

.ceo-banner-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* 4 CEOs Winrate Banner */
.ceo-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

a.ceo-card,
.ceo-card {
  text-decoration: none;
  color: inherit;
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.8rem 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.ceo-card:hover,
a.ceo-card:visited,
a.ceo-card:active,
a.ceo-card:focus {
  text-decoration: none;
  color: inherit;
}

.ceo-card:hover {
  border-color: var(--border-brass);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.ceo-card.selected {
  border-color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 14px rgba(212, 175, 55, 0.25);
}

.ceo-card .ceo-portrait-frame {
  width: 82px;
  min-width: 82px;
  height: 100px;
  border-radius: 6px;
  border: 1.5px solid rgba(184, 134, 11, 0.35);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.4);
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.22) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ceo-card:hover .ceo-portrait-frame,
.ceo-card.selected .ceo-portrait-frame {
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(184, 134, 11, 0.35);
}

.ceo-card .ceo-portrait-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.36);
  transform-origin: center 14%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.ceo-card:hover .ceo-portrait-art {
  transform: scale(1.46);
}

.ceo-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.ceo-card-header {
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.25rem;
}

.ceo-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: nowrap;
}

.ceo-stat-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.4rem;
}

.ceo-stat-col {
  display: flex;
  flex-direction: column;
}

.ceo-stat-col-right {
  align-items: flex-end;
}

.ceo-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.1rem;
}

.ceo-record-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.1rem;
}

.ceo-winrate {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  white-space: nowrap;
}

.ceo-record-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
  white-space: nowrap;
}

.ceo-avgwins-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.ceo-avgwins-row .ceo-record-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.ceo-avgwins-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
  white-space: nowrap;
}

.ceo-avgwins-max {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
}

.progress-bar-bg {
  height: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
  margin-top: 0.1rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--border-brass), var(--gold-bright));
  border-radius: 3px;
}

/* CEO Breakdown Cards Grid (Analytics Funnel) */
.ceo-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ceo-breakdown-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-top: 3px solid var(--ceo-accent, var(--gold-bright));
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.ceo-breakdown-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-brass);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.ceo-breakdown-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ceo-portrait-frame {
  width: 62px;
  min-width: 62px;
  height: 62px;
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.18) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.ceo-breakdown-card:hover .ceo-portrait-frame {
  border-color: var(--border-brass);
}

.ceo-portrait-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.ceo-breakdown-card:hover .ceo-portrait-art {
  transform: scale(1.08);
}

.ceo-breakdown-identity {
  flex: 1;
  min-width: 0;
}

.ceo-breakdown-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.2rem 0 0.1rem 0;
  line-height: 1.2;
}

.ceo-breakdown-name a {
  color: var(--gold-bright);
  text-decoration: none;
}

.ceo-breakdown-name a:hover {
  text-decoration: underline;
}

.ceo-breakdown-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ceo-breakdown-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.funnel-rates-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
}

.funnel-progress-track {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.06);
}

.ceo-breakdown-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}

.ceo-stat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ceo-stat-tile-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.ceo-stat-tile-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.ceo-stat-tile-sub {
  font-size: 0.68rem;
  font-weight: normal;
  color: var(--text-dim);
}

.ceo-card-action-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ceo-card-action-btn:hover {
  background: rgba(184, 134, 11, 0.15);
  border-color: var(--border-brass);
  color: #fff;
}

/* Compact header (tablets and phones): brand + Play button on one row,
   nav links on a second row. */
@media (max-width: 1000px) {
  .site-header, .navbar {
    padding: 0.7rem 1.25rem;
  }

  .header-container {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.75rem;
  }

  /* Let the brand shrink (and the subhead truncate) rather than pushing
     the Play button onto its own row on the narrowest screens. */
  .brand-link, .brand {
    order: 1;
    flex: 1 1 0%;
    min-width: 0;
  }

  .brand-logo-img, .brand-logo {
    max-width: min(220px, 100%);
  }

  .brand-text-block, .brand-lockup {
    max-width: 100%;
  }

  .brand-subhead, .brand-subtitle {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-play-btn {
    order: 2;
    flex-shrink: 0;
  }

  .header-nav {
    order: 3;
    width: 100%;
    padding-top: 0.45rem;
    border-top: 1px solid var(--border-dim);
  }

  .nav-menu, .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .site-header, .navbar {
    padding: 0.65rem 1rem;
  }

  /* Phones: shrink the Play button to just "PLAY" and tighten the nav row. */
  .header-play-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.75rem;
  }

  .header-play-btn .btn-label-extra {
    display: none;
  }

  .header-play-btn .btn-icon {
    display: inline-block;
  }

  /* Pull the nav row up so the taller tap targets don't grow the header. */
  .header-nav {
    margin: -0.15rem 0 -0.35rem;
  }

  .nav-menu, .nav-links {
    gap: 0 0.9rem;
  }

  .nav-link {
    display: inline-block;
    padding: 0.55rem 0;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
  }

  .nav-link::after {
    bottom: 0.3rem;
  }

  /* Phones: logo only — the subhead goes, so the brand row is a single line. */
  .brand-text-block, .brand-lockup {
    display: none;
  }

  .brand-logo-img, .brand-logo {
    height: 30px;
    max-width: 220px;
    object-position: left center;
  }

  .site-header.is-scrolled {
    padding-top: 0.4rem;
    padding-bottom: 0.3rem;
  }

  .site-header.is-scrolled .header-container {
    row-gap: 0.3rem;
  }

  .site-header.is-scrolled .brand-logo-img,
  .site-header.is-scrolled .brand-logo {
    height: 24px;
  }

  .ceo-banner-grid {
    grid-template-columns: 1fr;
  }

  .ceo-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

/* Very narrow phones: keep the brand + Play button on one row. */
@media (max-width: 380px) {
  .brand-logo-img, .brand-logo {
    height: 26px;
    max-width: 170px;
  }

  .header-play-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.72rem;
  }

  .nav-menu, .nav-links {
    gap: 0 0.75rem;
  }

  .nav-link {
    font-size: 0.68rem;
  }
}


/* Rival Portraits (Analytics Rivals Tab) */
.asset-card-art-frame.rival-portrait-frame {
  width: 78px;
  min-width: 78px;
  height: 104px;
  border-radius: 5px;
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.16) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  border: 1px solid var(--border-dim);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.asset-browser-card:hover .asset-card-art-frame.rival-portrait-frame {
  border-color: var(--border-brass);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.asset-card-art.rival-portrait-art {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: none;
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-browser-card:hover .asset-card-art.rival-portrait-art {
  transform: scale(1.08);
}

/* Vendor Portraits & Venues (Analytics Vendors Tab) */
.asset-card-art-frame.vendor-portrait-frame {
  width: 108px;
  min-width: 108px;
  height: 88px;
  border-radius: 5px;
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.16) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  border: 1px solid var(--border-dim);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.asset-browser-card:hover .asset-card-art-frame.vendor-portrait-frame {
  border-color: var(--border-brass);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.asset-card-art.vendor-portrait-art {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-browser-card:hover .asset-card-art.vendor-portrait-art {
  transform: scale(1.08);
}

/* Purchase Ledger Table Improvements */
.ledger-asset-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ledger-asset-thumb {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.2) 0%, #120e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.ledger-asset-thumb img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.ledger-vendor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  font-weight: 500;
}

.ledger-vendor-avatar {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
  object-fit: cover;
}

/* Filter Bar & Collapsible Drawer (1970s Executive Ledger Aesthetic) */
.filter-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.filter-bar-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  display: block;
  padding: 0;
}

.filter-bar-container:hover {
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 16px rgba(212, 175, 55, 0.08);
}

.filter-bar-container.is-expanded {
  border-color: var(--border-brass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* 1. Collapsed Strip Line */
.filter-bar-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, rgba(38, 29, 24, 0.85) 0%, rgba(26, 20, 17, 0.98) 100%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-bar-strip:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: -2px;
}

.filter-bar-strip:hover {
  background: linear-gradient(180deg, rgba(46, 35, 29, 0.95) 0%, rgba(30, 23, 19, 0.98) 100%);
}

.filter-strip-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.filter-icon-dial {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 4px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.25) 0%, rgba(26, 20, 16, 0.8) 100%);
  border: 1px solid rgba(184, 134, 11, 0.45);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar-strip:hover .filter-icon-dial {
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.3), 0 0 8px rgba(212, 175, 55, 0.25);
}

.filter-strip-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
}

.filter-strip-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  opacity: 0.85;
}

.filter-hint-sep {
  color: var(--border-brass);
  font-size: 0.7rem;
}

.filter-active-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.filter-active-count-badge .active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold-bright);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.filter-chips-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #120e0c;
  border: 1px solid rgba(184, 134, 11, 0.45);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-main);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--gold-bright);
}

.filter-chip-lbl {
  color: var(--gold-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.4px;
}

.filter-chip-val {
  color: var(--text-main);
  font-weight: 700;
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
  margin-left: 2px;
  transition: all 0.15s ease;
}

.filter-chip-remove:hover {
  color: #ff6b6b;
  background: rgba(239, 68, 68, 0.2);
}

.btn-clear-filters {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-clear-filters:hover {
  color: #ff6b6b;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
}

/* Right side status & expand chevron */
.filter-strip-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.filter-status-metric {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.filter-expand-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--gold-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.filter-bar-strip:hover .filter-expand-trigger {
  border-color: var(--border-brass);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
}

.filter-chevron-icon {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
}

.filter-bar-container.is-expanded .filter-chevron-icon {
  transform: rotate(180deg);
}

.filter-bar-container.is-expanded .filter-bar-strip {
  border-bottom: 1px solid var(--border-dim);
  background: rgba(30, 23, 19, 0.95);
}

/* 2. Expanded Drawer Panel (Smooth CSS Grid Transition) */
.filter-drawer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
  visibility: hidden;
}

.filter-bar-container.is-expanded .filter-drawer-wrapper {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.filter-drawer-content {
  overflow: hidden;
  padding: 0 1.25rem;
  transition: padding 0.28s ease;
}

.filter-bar-container.is-expanded .filter-drawer-content {
  padding: 1.15rem 1.25rem 1.4rem;
}

.filter-drawer-pinstripe {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(184, 134, 11, 0.4) 15%, rgba(255, 215, 0, 0.8) 50%, rgba(184, 134, 11, 0.4) 85%, transparent 100%);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.filter-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.filter-drawer-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-drawer-title {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.filter-drawer-subtitle {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.btn-collapse-drawer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-collapse-drawer:hover {
  color: var(--gold-bright);
  border-color: var(--border-brass);
  background: rgba(212, 175, 55, 0.1);
}

/* 3. Filter Form Grid & Vintage Executive Controls */
.filter-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
  gap: 1rem 1.25rem;
  align-items: flex-end;
}

.filter-field-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dim);
}

.field-label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-dim);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.field-label-dot.is-active {
  background: var(--gold-bright);
  box-shadow: 0 0 5px var(--gold-bright);
}

.filter-select-frame {
  position: relative;
  width: 100%;
}

.filter-select-input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: #110d0a;
  border: 1px solid var(--border-dim);
  color: var(--text-main);
  padding: 0.6rem 2.2rem 0.6rem 0.85rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-select-frame.is-active .filter-select-input {
  border-color: rgba(212, 175, 55, 0.65);
  background-color: #16110e;
}

.filter-select-input:hover {
  border-color: rgba(184, 134, 11, 0.7);
}

.filter-select-input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.3);
}

.select-chevron-mark {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dim);
  pointer-events: none;
  font-size: 0.75rem;
  user-select: none;
  transition: color 0.2s ease;
}

.filter-select-frame.is-active .select-chevron-mark {
  color: var(--gold-bright);
}

/* Actions */
.filter-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-self: flex-end;
}

.btn-filter-submit {
  background: linear-gradient(180deg, #d4af37 0%, #aa801e 100%);
  color: #100b08;
  border: 1px solid #ffd700;
  padding: 0.62rem 1.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.btn-filter-submit:hover {
  background: linear-gradient(180deg, #ffd700 0%, #bd8e1b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 14px rgba(255, 215, 0, 0.45);
  transform: translateY(-1px);
}

.btn-filter-submit:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn-filter-reset {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  padding: 0.58rem 1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-filter-reset:hover {
  color: var(--text-main);
  border-color: var(--border-brass);
  background: rgba(255, 255, 255, 0.05);
}

/* Backward compatibility for other pages */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 180px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.filter-select, .filter-input {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-dim);
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--border-brass);
}

.btn-filter {
  background-color: var(--border-brass);
  color: var(--bg-dark);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-filter:hover {
  background-color: var(--gold-bright);
}

/* Run Feed Cards */
.run-feed {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.run-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.run-card.is-victory {
  border-top: 2px solid rgba(212, 175, 55, 0.65);
}

.run-card.is-victory:hover {
  border-color: var(--border-brass);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.12);
}

.run-card.is-defeat {
  border-top: 2px solid rgba(178, 34, 34, 0.65);
}

.run-card.is-defeat:hover {
  border-color: rgba(178, 34, 34, 0.8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(178, 34, 34, 0.15);
}

.run-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.run-meta-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

/* Executive CEO Medallion Cameo */
.run-ceo-portrait-frame {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-brass);
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.28) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0c 100%);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.run-card:hover .run-ceo-portrait-frame {
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.4);
}

.run-ceo-portrait-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.34);
  transform-origin: center 15%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.run-card:hover .run-ceo-portrait-art {
  transform: scale(1.45);
}

.run-ceo-fallback {
  font-size: 1.25rem;
  color: var(--text-faint);
}

/* Executive Title & Founder Lockup */
.run-title-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.run-headline-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.badge-victory {
  background-color: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  line-height: 1.2;
}

.badge-defeat {
  background-color: var(--scandal-bg);
  border: 1px solid var(--scandal-red);
  color: #ff6b6b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  line-height: 1.2;
}

.company-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.company-title:hover {
  color: var(--gold-bright);
}

.run-subheadline-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.ceo-founder-label {
  color: var(--text-dim);
}

.ceo-founder-label strong {
  color: var(--text-main);
  font-weight: 600;
}

.run-meta-sep {
  color: var(--text-faint);
  font-size: 0.7rem;
}

.run-outcome-tag {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.run-flawless-badge {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  line-height: 1.2;
}

/* Wall Street Ticker KPI Ribbon */
.run-stats-ribbon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.run-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 0 0.65rem;
  border-left: 1px solid var(--border-dim);
}

.run-stat-cell:first-child {
  border-left: none;
}

.run-stat-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  line-height: 1;
}

.run-stat-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
}

.run-stat-value.record-flawless {
  color: #57c976;
  text-shadow: 0 0 6px rgba(87, 201, 118, 0.35);
}

.run-stat-value.text-profit {
  color: var(--profit, #4f9c63);
  text-shadow: 0 0 6px rgba(79, 156, 99, 0.35);
}

/* Streamlined Run Card Footer */
.run-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-dim);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Run Card Footer Enacted Policies Strip */
.run-footer-policies {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 28px;
  flex-wrap: wrap;
}

.run-footer-policies-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  opacity: 0.85;
  user-select: none;
}

.run-footer-policies-none {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  font-style: italic;
}

.run-footer-policies-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-policy-anchor {
  position: relative;
  display: inline-flex;
}

.mini-policy-tile {
  position: relative;
  width: 26px;
  height: 26px;
  background: #0e1411;
  border-radius: 4px;
  border: 1.5px solid var(--tier-color, #be8c56);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease;
}

.mini-policy-tile:hover,
.mini-policy-tile:focus-visible {
  transform: translateY(-2px) scale(1.15);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9), 0 0 8px rgba(var(--tier-rgb, 190, 140, 86), 0.6);
  z-index: 10;
}

.mini-policy-art-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(var(--tier-rgb, 190, 140, 86), 0.16) 0%, rgba(14, 20, 17, 0.95) 75%, #080f0c 100%);
  box-sizing: border-box;
}

.mini-policy-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.mini-policy-art-fallback {
  color: var(--text-faint);
  font-size: 0.85rem;
  font-family: var(--font-serif);
  line-height: 1;
}

.mini-policy-tier-pip {
  position: absolute;
  top: -4px;
  right: -4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  background: var(--tier-color, #59beea);
  border-radius: 50%;
  width: 11px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.run-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share, .btn-link {
  background-color: transparent;
  border: 1px solid var(--border-brass);
  color: var(--gold-bright);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-share:hover, .btn-link:hover {
  background-color: rgba(184, 134, 11, 0.2);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-share.active, .btn-link.active {
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  color: #120e0c !important;
  border-color: #ffd700;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.btn-share.active:hover, .btn-link.active:hover {
  background: linear-gradient(135deg, #ffe033 0%, #e0bd42 100%);
  color: #120e0c !important;
  border-color: #ffd700;
}

/* Asset Browser Directory — Horizontal Executive Dossier */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 1.15rem;
}

.asset-browser-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 122px;
}

.asset-browser-card .game-card-anchor {
  width: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.asset-browser-card:hover {
  border-color: var(--border-brass);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}

.asset-card-art-frame {
  width: 90px;
  min-width: 90px;
  height: 90px;
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.16) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  align-self: flex-start;
}

.asset-card-art {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.asset-browser-card:hover .asset-card-art {
  transform: scale(1.1);
}

.asset-dossier-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 0.35rem;
}

.asset-dossier-header {
  display: flex;
  align-items: flex-start;
}

.asset-dossier-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--gold-bright);
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.25;
}

.asset-dossier-title a,
.asset-dossier-title a:visited {
  color: inherit !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.asset-dossier-title a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.asset-dossier-tags-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
}

.asset-dossier-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-dossier-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background-color: var(--bg-surface);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
}

.dossier-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dossier-stat-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.72rem;
  gap: 0.25rem;
}

.dossier-stat-title {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dossier-stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 0.75rem;
}

.dossier-stat-counts {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
}

.dossier-progress-bg {
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.dossier-progress-fill {
  height: 100%;
  background-color: var(--border-brass);
  border-radius: 2px;
}

.rarity-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}

.rarity-badge.rarity-common {
  color: #a0958a;
  border-color: rgba(160, 149, 138, 0.3);
}

.rarity-badge.rarity-uncommon {
  color: #64b5f6;
  border-color: rgba(100, 181, 246, 0.4);
  background-color: rgba(100, 181, 246, 0.06);
}

.rarity-badge.rarity-rare {
  color: #ba68c8;
  border-color: rgba(186, 104, 200, 0.4);
  background-color: rgba(186, 104, 200, 0.06);
}

.rarity-badge.rarity-legendary, .rarity-badge.rarity-epic {
  color: var(--gold-bright);
  border-color: var(--border-brass);
  background-color: rgba(255, 215, 0, 0.08);
}

/* Asset Tag Badges & Buzzword Chips */
.asset-buzzword-chip,
.asset-tag-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 0.1rem 0.42rem;
  border-radius: 3px;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  box-sizing: border-box;
  margin: 0;
  text-decoration: none;
  transition: all 0.15s ease;
}

/* Clickable Tag Chip in Asset Browser */
button.asset-tag-chip {
  cursor: pointer;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
}

button.asset-tag-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border-color: var(--gold-dim);
  color: var(--text-main);
}

/* Category-specific Tag Accents */
.tag-employee,
.tooltip-chip.tag-employee {
  color: #86d3ea;
  border-color: rgba(134, 211, 234, 0.35);
  background-color: rgba(134, 211, 234, 0.07);
}
button.tag-employee:hover {
  border-color: #86d3ea;
  background-color: rgba(134, 211, 234, 0.16);
  color: #c7effc;
}
.tag-employee.active {
  background-color: rgba(134, 211, 234, 0.22);
  border-color: #86d3ea;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(134, 211, 234, 0.35);
}

.tag-human,
.tooltip-chip.tag-human {
  color: #e8a87c;
  border-color: rgba(232, 168, 124, 0.35);
  background-color: rgba(232, 168, 124, 0.07);
}
button.tag-human:hover {
  border-color: #e8a87c;
  background-color: rgba(232, 168, 124, 0.16);
  color: #ffe0cc;
}
.tag-human.active {
  background-color: rgba(232, 168, 124, 0.22);
  border-color: #e8a87c;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(232, 168, 124, 0.35);
}

.tag-animal,
.tooltip-chip.tag-animal {
  color: #81c784;
  border-color: rgba(129, 199, 132, 0.35);
  background-color: rgba(129, 199, 132, 0.07);
}
button.tag-animal:hover {
  border-color: #81c784;
  background-color: rgba(129, 199, 132, 0.16);
  color: #c8e6c9;
}
.tag-animal.active {
  background-color: rgba(129, 199, 132, 0.22);
  border-color: #81c784;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(129, 199, 132, 0.35);
}

.tag-machine,
.tooltip-chip.tag-machine {
  color: #b0bec5;
  border-color: rgba(176, 190, 197, 0.35);
  background-color: rgba(176, 190, 197, 0.07);
}
button.tag-machine:hover {
  border-color: #cfd8dc;
  background-color: rgba(176, 190, 197, 0.16);
  color: #ffffff;
}
.tag-machine.active {
  background-color: rgba(176, 190, 197, 0.22);
  border-color: #eceff1;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(176, 190, 197, 0.35);
}

.tag-property,
.tooltip-chip.tag-property {
  color: var(--gold-bright);
  border-color: rgba(184, 134, 11, 0.4);
  background-color: rgba(212, 175, 55, 0.08);
}
button.tag-property:hover {
  border-color: var(--gold-bright);
  background-color: rgba(212, 175, 55, 0.18);
  color: #fff8dc;
}
.tag-property.active {
  background-color: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-bright);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.tag-scheme,
.tooltip-chip.tag-scheme {
  color: #ce93d8;
  border-color: rgba(206, 147, 216, 0.35);
  background-color: rgba(206, 147, 216, 0.07);
}
button.tag-scheme:hover {
  border-color: #ce93d8;
  background-color: rgba(206, 147, 216, 0.16);
  color: #f3e5f5;
}
.tag-scheme.active {
  background-color: rgba(206, 147, 216, 0.22);
  border-color: #ce93d8;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(206, 147, 216, 0.35);
}

.tag-service,
.tooltip-chip.tag-service {
  color: #90caf9;
  border-color: rgba(144, 202, 249, 0.35);
  background-color: rgba(144, 202, 249, 0.07);
}
button.tag-service:hover {
  border-color: #90caf9;
  background-color: rgba(144, 202, 249, 0.16);
  color: #e3f2fd;
}
.tag-service.active {
  background-color: rgba(144, 202, 249, 0.22);
  border-color: #90caf9;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(144, 202, 249, 0.35);
}

.tag-vehicle,
.tooltip-chip.tag-vehicle {
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.35);
  background-color: rgba(255, 183, 77, 0.07);
}
button.tag-vehicle:hover {
  border-color: #ffb74d;
  background-color: rgba(255, 183, 77, 0.16);
  color: #fff3e0;
}
.tag-vehicle.active {
  background-color: rgba(255, 183, 77, 0.22);
  border-color: #ffb74d;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 183, 77, 0.35);
}

.tag-ai,
.tooltip-chip.tag-ai {
  color: #80cbc4;
  border-color: rgba(128, 203, 196, 0.35);
  background-color: rgba(128, 203, 196, 0.07);
}
button.tag-ai:hover {
  border-color: #80cbc4;
  background-color: rgba(128, 203, 196, 0.16);
  color: #e0f2f1;
}
.tag-ai.active {
  background-color: rgba(128, 203, 196, 0.22);
  border-color: #80cbc4;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(128, 203, 196, 0.35);
}

/* Asset Tag Filter Bar */
.asset-tag-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
}

.asset-tag-filter-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-right: 0.35rem;
}

.asset-tag-chip.asset-tag-filter-all {
  border-color: var(--border-dim);
  color: var(--text-dim);
}

.asset-tag-chip.asset-tag-filter-all:hover {
  border-color: var(--gold-dim);
  color: var(--text-main);
}

.asset-tag-chip.asset-tag-filter-all.active {
  border-color: var(--gold-bright);
  background-color: rgba(212, 175, 55, 0.2);
  color: var(--gold-bright);
}

/* CEO filter chips are links: each reloads the directory scoped to that founder */
.asset-ceo-filter-bar {
  margin-bottom: 0.6rem;
}

.asset-tag-chip.asset-ceo-chip {
  --ceo-color: var(--gold-bright);
  cursor: pointer;
}

.asset-tag-chip.asset-ceo-chip:hover {
  border-color: var(--ceo-color);
  color: var(--text-main);
}

.asset-tag-chip.asset-ceo-chip.active {
  border-color: var(--ceo-color);
  background-color: color-mix(in srgb, var(--ceo-color) 20%, transparent);
  color: var(--ceo-color);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.stat-label {
  color: var(--text-dim);
}

.stat-figure {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-bright);
}

/* Analytics Column Charts */
.chart-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chart-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.chart-bar-label {
  width: 140px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: right;
  flex-shrink: 0;
}

.chart-bar-outer {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.4);
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
}

.chart-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #996515, var(--gold-bright));
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bg-dark);
  font-weight: 700;
}

/* Tab navigation for analytics */
.tab-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-dim);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tab-btn.active {
  color: var(--gold-bright);
  border-bottom: 3px solid var(--border-gold);
}

/* ==========================================================================
   Card-Based Navigation Menu for Analytics
   ========================================================================== */
.analytics-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 1120px) {
  .analytics-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .analytics-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.analytics-nav-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  position: relative;
  cursor: pointer;
}

.analytics-nav-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 14px rgba(184, 134, 11, 0.3);
}

.analytics-nav-card.active {
  border: 2px solid var(--border-gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.16) 0%, rgba(34, 26, 22, 0.95) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 6px 18px rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

.analytics-card-media {
  position: relative;
  height: 86px;
  width: 100%;
  overflow: hidden;
  background: #0d0a08;
}

.analytics-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.35s ease, filter 0.22s ease;
  filter: brightness(0.85) contrast(1.05);
}

.analytics-nav-card:hover .analytics-card-img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1);
}

.analytics-nav-card.active .analytics-card-img {
  filter: brightness(1.05) contrast(1.1);
  transform: scale(1.02);
}

.analytics-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 12, 0.05) 0%, rgba(18, 14, 12, 0.75) 75%, var(--bg-card) 100%);
  pointer-events: none;
}

.analytics-nav-card.active .analytics-card-overlay {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(18, 14, 12, 0.7) 70%, rgba(34, 26, 22, 0.95) 100%);
}

.analytics-card-tag {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(14, 11, 9, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.18rem 0.4rem;
  border-radius: 3px;
  line-height: 1;
}

.analytics-nav-card.active .analytics-card-tag {
  color: var(--gold-bright);
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(26, 18, 10, 0.9);
}

.analytics-card-status-pill {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(184, 134, 11, 0.3);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 0.15rem 0.45rem;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
  line-height: 1.1;
}

.status-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold-bright);
  animation: goldPulse 2s infinite ease-in-out;
}

@keyframes goldPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.analytics-card-content {
  padding: 0.65rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 60px;
}

.analytics-card-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.analytics-nav-card:hover .analytics-card-title,
.analytics-nav-card.active .analytics-card-title {
  color: var(--gold-bright);
}

.analytics-card-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.25;
}

.analytics-nav-card.active .analytics-card-subtitle {
  color: var(--text-main);
}

/* Event Artwork Frames (Dilemmas & Grants) */
.event-art-frame {
  width: 130px;
  min-width: 130px;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  background: #0d0a08;
  border: 1px solid var(--border-brass);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-art-frame-sm {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #0d0a08;
  border: 1px solid var(--border-brass);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-card-art-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dilemma-breakdown-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dilemma-breakdown-card:hover {
  border-color: var(--border-brass);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.grant-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grant-breakdown-card:hover {
  border-color: var(--border-brass);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Visual Asset Board & In-Game Dossier Tooltip System
   ========================================================================== */

.visual-board-section {
  margin: 2.25rem 0;
}

.visual-board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visual-board-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.visual-board-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.visual-board-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid var(--border-brass);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Boardroom Felt Tray & 10-Slot Grid */
.visual-board-tray-wrapper {
  width: 100%;
  overflow: visible;
}

.visual-board-tray {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  background: radial-gradient(ellipse at 50% 25%, #151d18 0%, #080f0c 100%);
  border: 2px solid rgba(184, 134, 11, 0.45);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.18),
              inset 0 3px 12px rgba(0, 0, 0, 0.9),
              0 6px 18px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 14px 12px 10px 12px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

/* Compact Tray Mode for High-Density Live Feed */
.visual-board-tray.compact-tray {
  padding: 8px 10px 6px 10px;
  gap: 5px;
}

.visual-board-tray.compact-tray .game-card {
  height: 98px;
}

.visual-board-tray.compact-tray .empty-slot-card {
  height: 98px;
}

.visual-board-tray.compact-tray .card-podium-area {
  height: 18px;
  margin-top: 3px;
}

.visual-board-tray.compact-tray .card-mvp-podium {
  height: 16px;
  font-size: 0.58rem;
  letter-spacing: 0.3px;
  max-width: 86px;
}

/* Card Anchor for Tooltip Positioning */
.game-card-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  /* --fp is the card footprint (1-3 slots), set inline by the card partial */
  grid-column: span var(--fp, 1);
}

/* The Milled-Edge Asset Card */
.game-card {
  position: relative;
  width: 100%;
  height: 120px;
  background: #0e1411;
  border-radius: 4px;
  border: 2px solid var(--tier-color, #be8c56);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.88), 0 0 14px rgba(var(--tier-rgb, 190, 140, 86), 0.5);
  z-index: 20;
}

.game-card.is-mvp {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Card Overlays & Badges */
.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 4px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.card-top-left {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-top-right {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.card-slot-chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.2;
}

.card-buzz-badge {
  color: #4a9476;
  font-size: 0.7rem;
  text-shadow: 0 0 6px rgba(74, 148, 118, 0.8);
}

/* Card Buzzword Chip (Bottom-Left Corner, matching Unity CardFace.BuildBuzzwordChip) */
.card-buzzword-chip {
  position: absolute;
  left: 6px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.card-buzzword-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(1.5px 2px 2px rgba(0, 0, 0, 0.85));
}

.card-buzzword-letter {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-bright, #ffd700);
  text-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.95);
  line-height: 1;
}

/* Card Art Well */
.card-art-well {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(var(--tier-rgb, 190, 140, 86), 0.14) 0%, rgba(14, 20, 17, 0.95) 75%, #080f0c 100%);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.card-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.75));
  transition: transform 0.22s ease;
  display: block;
}

.game-card:hover .card-art-img {
  transform: scale(1.06);
}

.card-art-fallback {
  color: var(--text-faint);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inline SVG placeholder for missing art (shared/_art_fallback) */
.art-fallback-glyph {
  display: block;
  opacity: 0.55;
}

.card-art-fallback .art-fallback-glyph {
  width: 26px;
  height: 34px;
}

/* Stock Pip Cradle (Ammo Track at Bottom) */
.card-stock-cradle {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.card-stock-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 4px;
  background: rgba(10, 18, 14, 0.85);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 6px;
}

.card-stock-pip {
  font-size: 0.5rem;
  color: var(--gold-bright);
  line-height: 1;
}

/* Podium Area Beneath Cards */
.card-podium-area {
  width: 100%;
  height: 24px;
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.card-mvp-podium {
  width: 96px;
  max-width: 92%;
  height: 22px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid #d4af37;
  border-radius: 3px;
  color: #ffd700;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Empty Board Slot Sockets */
.empty-board-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  grid-column: span 1;
}

/* Ghost cell for a slot covered by a clamped multi-slot card. Only rendered
   (and only displayed) in the wrapped phone layout of the compact tray. */
.covered-board-slot {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.empty-slot-card {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px dashed rgba(184, 134, 11, 0.24);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.empty-slot-card:hover {
  border-color: rgba(184, 134, 11, 0.45);
  background: rgba(0, 0, 0, 0.45);
}

.empty-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  user-select: none;
}

.empty-slot-pip {
  font-size: 0.85rem;
  color: rgba(184, 134, 11, 0.32);
  line-height: 1;
}

.empty-slot-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(184, 134, 11, 0.42);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Tooltip Popover Container */
.tooltip-popover {
  position: fixed;
  z-index: 99999;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.95));
}

.tooltip-popover.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Authentic In-Game Tooltip Card (Tightened Geometry Matching Game Engine) */
.game-tooltip {
  width: 290px;
  max-width: calc(100vw - 20px);
  background-color: #14100e;
  border: 2px solid var(--tier-color, #be8c56);
  outline: 1px solid rgba(var(--tier-rgb, 190, 140, 86), 0.35);
  outline-offset: 2px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.95), 0 0 14px rgba(var(--tier-rgb, 190, 140, 86), 0.22);
  overflow: hidden;
  font-family: var(--font-sans);
  text-align: left;
}

.tooltip-header {
  background-size: cover;
  background-position: center;
  min-height: 88px;
  position: relative;
  border-bottom: 1px solid rgba(var(--tier-rgb, 190, 140, 86), 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5rem 0.65rem 0.45rem 0.65rem;
}

.tooltip-header-content {
  position: relative;
  z-index: 2;
}

.tooltip-buzzword-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.tooltip-buzzword-header-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
  flex-shrink: 0;
}

.tooltip-buzzword-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright, #ffd700);
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tooltip-buzzword-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #4a9476;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  border: 1px solid rgba(74, 148, 118, 0.4);
}

.tooltip-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  gap: 0.4rem;
}

.tooltip-title-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.tooltip-tier-flag {
  width: 2.5px;
  height: 15px;
  background-color: var(--tier-color, #be8c56);
  border-radius: 1.5px;
  flex-shrink: 0;
}

.tooltip-asset-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-tier-chip {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--tier-color, #ffd700);
  border: 1px solid var(--tier-color, #ffd700);
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  line-height: 1.1;
}

.tooltip-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.tooltip-chip {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.06rem 0.35rem;
  border-radius: 2px;
  line-height: 1.1;
}

.chip-footprint {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
}

.chip-tag {
  background: rgba(134, 211, 234, 0.1);
  color: #86d3ea;
  border: 1px solid rgba(134, 211, 234, 0.3);
}

/* A card a beta build played before it shipped (CatalogItem.unreleased_item). */
.chip-unreleased {
  background: rgba(190, 120, 255, 0.12);
  color: #be78ff;
  border: 1px solid rgba(190, 120, 255, 0.35);
}

.chip-rarity {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-bright);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Tooltip Body */
.tooltip-body {
  padding: 0.6rem 0.65rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tooltip-cadence-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tooltip-dial-col {
  flex-shrink: 0;
}

.tooltip-dial {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--tier-color, #be8c56);
  background: radial-gradient(circle, #251c16 0%, #130f0c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.dial-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.dial-unit {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-top: 1px;
}

.dial-passive {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-dim);
}

.tooltip-effects-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tooltip-effect-line {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--text-main);
}

.effect-num {
  color: var(--gold-bright);
  font-weight: 700;
  font-family: var(--font-mono);
}

.tooltip-bullet {
  color: var(--tier-color, #be8c56);
  font-size: 0.58rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  line-height: 1;
}

.tooltip-section-divider {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.05rem 0;
}

.tooltip-section-divider::before,
.tooltip-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.tooltip-section-label {
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #887a68;
  font-weight: 700;
}

/* Tooltip Buzzword Body Section (Matching Unity AssetTooltip.Buzzword) */
.tooltip-buzzword-divider::before,
.tooltip-buzzword-divider::after {
  background: rgba(255, 215, 0, 0.2);
}

.tooltip-buzzword-divider .tooltip-section-label {
  color: var(--gold-bright, #ffd700);
}

.tooltip-buzzword-section {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 4px;
  padding: 0.45rem 0.55rem;
}

.tooltip-buzzword-body-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  margin-top: 1px;
}

.tooltip-buzzword-body-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tooltip-buzzword-body-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-bright, #ffd700);
  letter-spacing: 0.3px;
}

.tooltip-buzzword-effect-line {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--text-main);
}

.tooltip-keywords-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0;
  background: transparent;
  border: none;
}

/* Foldable keyword glossary (compact tooltips). The summary is styled as the section divider so
   an open <details> looks the same as the plain list. */
.tooltip-keywords-details summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.tooltip-keywords-details summary::-webkit-details-marker {
  display: none;
}

.tooltip-keywords-details summary .tooltip-section-label::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.3rem;
  transition: transform 0.12s ease;
}

.tooltip-keywords-details[open] summary .tooltip-section-label::before {
  transform: rotate(90deg);
}

.tooltip-keywords-details .tooltip-keywords-list {
  margin-top: 0.25rem;
}

.tooltip-keyword-entry .keyword-name {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.05rem;
  line-height: 1.2;
}

.tooltip-keyword-entry .keyword-rule {
  font-size: 0.67rem;
  color: #9c9488;
  line-height: 1.25;
}

.tooltip-note-entry {
  font-size: 0.68rem;
  color: var(--text-faint);
  padding-left: 0.4rem;
  border-left: 2px solid var(--border-dim);
}

.tooltip-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.1rem;
}

.tooltip-sell-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid #d4af37;
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.tooltip-sell-pill .pill-symbol {
  color: #ffd700;
  font-size: 0.65rem;
}

/* ==========================================================================
   Visual Corporate Policy Board & Tactile Cards (8-Slot Tray)
   ========================================================================== */

/* Policy Boardroom Felt Tray & 8-Slot Grid */
.visual-board-tray.visual-policy-tray {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

/* ==========================================================================
   Run Detail Trays on Phones
   Ten (or eight) equal columns squeezed into a phone width leave each card
   ~30px wide and unreadable. Below 640px the run detail page instead:
     - turns the 10-slot asset tray into a horizontally scrolling strip with a
       fixed slot width, so cards keep their real in-game order and footprint
       spans (a 2-row wrap would break multi-slot cards across rows);
     - wraps the 8-slot policy tray into two rows of four, which is lossless
       because policies have no footprint;
     - tightens the article padding so the trays get the full width.
   Tooltips are unaffected: the tooltip controller teleports the popover to
   <body> with fixed positioning, so the strip's overflow never clips it.
   ========================================================================== */
.run-detail-card {
  padding: 2rem;
}

.board-strip-hint {
  display: none;
}

@media (max-width: 640px) {
  .run-detail-card {
    padding: 1.1rem 0.85rem;
  }

  /* --- Asset board: swipeable strip --- */
  .visual-board-tray-wrapper.board-strip-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 134, 11, 0.45) transparent;
    /* Bleed to the card edges so the strip uses every pixel of width */
    margin: 0 -0.85rem;
    padding: 0 0.85rem 6px 0.85rem;
  }

  .board-strip-wrapper .visual-board-tray {
    --strip-slot-w: 72px;
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(10, var(--strip-slot-w));
    gap: 6px;
    /* Room for the hover/focus lift so it is not clipped by overflow-y: hidden */
    padding: 16px 12px 10px 12px;
  }

  .board-strip-wrapper .game-card-anchor,
  .board-strip-wrapper .empty-board-slot {
    scroll-snap-align: start;
    scroll-margin-left: 12px;
  }

  /* Two stat pills rarely fit side by side in a 72px card; let them stack */
  .board-strip-wrapper .card-top-left {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .board-strip-wrapper .card-stat-pill {
    font-size: 0.56rem;
    padding: 1px 4px;
  }

  .board-strip-hint {
    display: block;
    margin: 0.45rem 0 0 0;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: center;
  }

  /* --- Policy board: two rows of four --- */
  .visual-board-tray.visual-policy-tray {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
  }
}

@media (max-width: 380px) {
  .board-strip-wrapper .visual-board-tray {
    --strip-slot-w: 64px;
  }
}

/* Policy Card Anchor */
.policy-card-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* Tactile Art-First Policy Card */
.policy-card {
  position: relative;
  width: 100%;
  height: 140px;
  background: #0e1411;
  border-radius: 5px;
  border: 1.5px solid var(--tier-color, rgba(184, 134, 11, 0.45));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.policy-card:hover,
.policy-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.88), 0 0 14px rgba(var(--tier-rgb, 190, 140, 86), 0.5);
  z-index: 20;
}

/* Inset Bevel (Double Brass Hairline Border) */
.policy-inner-bevel {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 3px;
  border: 1px solid rgba(184, 134, 11, 0.18);
  overflow: hidden;
  box-sizing: border-box;
}

/* Policy Full-Bleed Art Well */
.policy-art-well {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(var(--tier-rgb, 190, 140, 86), 0.12) 0%, rgba(14, 20, 17, 0.95) 75%, #080f0c 100%);
  overflow: hidden;
  box-sizing: border-box;
}

.policy-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.24s ease;
  display: block;
}

.policy-card:hover .policy-art-img {
  transform: scale(1.06);
}

.policy-art-fallback {
  color: var(--text-faint);
  font-size: 2.2rem;
  font-family: var(--font-serif);
}

/* Top Darkening Scrim */
.policy-top-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: linear-gradient(180deg, rgba(8, 15, 12, 0.8) 0%, rgba(8, 15, 12, 0.35) 60%, rgba(8, 15, 12, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Bottom Darkening Scrim */
.policy-bottom-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(0deg, rgba(8, 15, 12, 0.75) 0%, rgba(8, 15, 12, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Floating Top Badges */
.policy-top-bar {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.policy-tier-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--tier-color, #ffd700);
  background: rgba(10, 16, 13, 0.85);
  border: 1px solid var(--tier-color, rgba(212, 175, 55, 0.5));
  padding: 1px 6px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.policy-rarity-chip {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(10, 16, 13, 0.85);
  border: 1px solid rgba(184, 134, 11, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Bottom Rim Diamond Clip */
.policy-bottom-clip {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

.policy-clip-diamond {
  font-size: 0.6rem;
  color: var(--tier-color, rgba(184, 134, 11, 0.85));
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  line-height: 1;
}

/* Slot Chip in Podium Area */
.policy-slot-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(184, 134, 11, 0.65);
  letter-spacing: 0.5px;
}

.policy-slot-chip.empty-slot-dim {
  color: rgba(184, 134, 11, 0.32);
}

/* Empty Policy Slot Socket */
.empty-policy-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.empty-policy-card {
  position: relative;
  width: 100%;
  height: 140px;
  background: rgba(8, 14, 11, 0.45);
  border: 1px solid rgba(184, 134, 11, 0.18);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.05);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.empty-policy-card:hover {
  border-color: rgba(184, 134, 11, 0.38);
  background: rgba(12, 20, 16, 0.65);
}

.empty-policy-inner-border {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(184, 134, 11, 0.08);
  border-radius: 3px;
  pointer-events: none;
}

/* 4 Corner Pips / Rivets */
.empty-policy-pip {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(184, 134, 11, 0.25);
  transform: rotate(45deg);
  pointer-events: none;
}

.empty-policy-pip.top-left { top: 7px; left: 7px; }
.empty-policy-pip.top-right { top: 7px; right: 7px; }
.empty-policy-pip.bottom-left { bottom: 7px; left: 7px; }
.empty-policy-pip.bottom-right { bottom: 7px; right: 7px; }

/* Centered Sigil & Label */
.empty-policy-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
}

.empty-policy-diamond {
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
  border: 1px solid rgba(184, 134, 11, 0.28);
  background: rgba(16, 24, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-policy-diamond-inner {
  width: 6px;
  height: 6px;
  background: rgba(184, 134, 11, 0.35);
  display: block;
}

.empty-policy-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(184, 134, 11, 0.42);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Policy Tooltip Enhancements */
.policy-tooltip-header {
  min-height: 80px;
}

.tooltip-policy-badges {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tooltip-policy-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #59beea;
  background: rgba(89, 190, 234, 0.14);
  border: 1px solid rgba(89, 190, 234, 0.4);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* ==========================================================================
   Fiscal Growth Timeline Line Chart & Storytelling Styles
   ========================================================================== */

.timeline-section {
  margin: 2.25rem 0 1.5rem 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
}

.timeline-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-bright);
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.timeline-story-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.timeline-story-badge.badge-critical {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ff4d4d;
  color: #ff6b6b;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.timeline-story-badge.badge-turnaround {
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}

.timeline-story-badge.badge-domination {
  background: rgba(56, 211, 116, 0.16);
  border: 1px solid #38d374;
  color: #38d374;
}

.timeline-story-badge.badge-defeat {
  background: var(--scandal-bg);
  border: 1px solid var(--scandal-red);
  color: #ff6b6b;
}

.timeline-story-badge.badge-abandoned {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
}

.timeline-story-badge.badge-neutral {
  background: rgba(184, 134, 11, 0.12);
  border: 1px solid var(--border-brass);
  color: var(--gold-dim);
}

.timeline-story-headline {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  line-height: 1.45;
  font-style: italic;
}

.timeline-legend {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.timeline-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-indicator {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.legend-indicator.legend-wins {
  background-color: #38d374;
  box-shadow: 0 0 6px rgba(56, 211, 116, 0.45);
}

.legend-indicator.legend-losses {
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
}

.legend-indicator.legend-danger {
  background: repeating-linear-gradient(90deg, #ef4444, #ef4444 3px, transparent 3px, transparent 6px);
  height: 2px;
}

/* Interactive Inspector HUD Bar */
.timeline-hud-bar {
  background: rgba(18, 14, 12, 0.85);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  margin-bottom: 0.65rem;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.timeline-hud-content {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--text-main);
}

.timeline-hud-status {
  color: var(--gold-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.timeline-hud-year {
  color: var(--text-main);
  font-weight: 700;
}

.timeline-hud-sep {
  color: var(--border-brass);
  opacity: 0.6;
}

.timeline-hud-val {
  color: var(--gold-bright);
  font-weight: 700;
}

.timeline-hud-tag {
  font-size: 0.66rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.timeline-hud-tag.tag-bankrupt {
  background: #3d1414;
  border: 1px solid #b22222;
  color: #ff6b6b;
}

.timeline-hud-tag.tag-hazard {
  background: rgba(255, 138, 36, 0.2);
  border: 1px solid #ff8a24;
  color: #ffaa5a;
}

.timeline-hud-tag.tag-setback {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ff8585;
}

/* 1970s Executive Ledger Chart Plate */
.timeline-chart-plate {
  background: radial-gradient(ellipse at 50% 20%, #17120f 0%, #0d0a08 100%);
  border: 2px solid rgba(184, 134, 11, 0.38);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.12),
              inset 0 2px 14px rgba(0, 0, 0, 0.85),
              0 4px 14px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 0.6rem 0.5rem 0.4rem;
  position: relative;
  overflow: hidden;
}

.timeline-svg {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
  overflow: visible;
}

.timeline-path-wins {
  stroke: #38d374;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(56, 211, 116, 0.45));
}

.timeline-path-losses {
  stroke: #ef4444;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.45));
}

.timeline-grid-bankruptcy {
  stroke: #ef4444;
  stroke-width: 1.5;
  stroke-dasharray: 4,4;
  opacity: 0.8;
}

.timeline-grid-domination {
  stroke: #38d374;
  stroke-width: 1.2;
  stroke-dasharray: 4,4;
  opacity: 0.55;
}

.timeline-grid-baseline {
  stroke: var(--border-dim);
  stroke-width: 1.2;
  opacity: 0.9;
}

.timeline-grid-secondary {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 2,4;
}

.timeline-badge-bankruptcy {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  fill: #ff6b6b;
  letter-spacing: 0.5px;
}

.timeline-badge-domination {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  fill: #38d374;
  letter-spacing: 0.5px;
}

.timeline-badge-baseline {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-faint);
}

.timeline-axis-left {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-faint);
}

.timeline-axis-year {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--text-dim);
  transition: fill 0.15s ease;
}

.timeline-axis-val {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  fill: var(--gold-bright);
  transition: fill 0.15s ease, transform 0.15s ease;
}

/* Analytics Hub: Daily Activity Line Charts (share the ledger plate look) */
.daily-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.daily-range-chips {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.daily-range-lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-right: 0.2rem;
}

.daily-range-chip {
  display: inline-flex;
  align-items: center;
  background: #120e0c;
  border: 1px solid rgba(184, 134, 11, 0.45);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.daily-range-chip:hover {
  border-color: var(--gold-bright);
  color: var(--text-main);
}

.daily-range-chip.active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(255, 215, 0, 0.08);
}

.daily-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.5rem;
}

.daily-chart {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.daily-chart .timeline-chart-plate {
  margin-top: auto;
}

.daily-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.55rem;
}

.daily-chart-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
  letter-spacing: 0.3px;
}

.daily-chart-subtitle {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-bottom: 0;
}

.daily-chart .legend-indicator {
  background-color: var(--series-color);
  box-shadow: 0 0 6px var(--series-glow);
}

.daily-chart .legend-indicator.legend-dashed {
  background: repeating-linear-gradient(90deg, var(--series-color), var(--series-color) 4px, transparent 4px, transparent 7px);
  box-shadow: none;
}

.daily-chart-svg {
  max-height: 280px;
}

/* These plates sit at half width, so the SVG text scales up to stay legible */
.daily-chart-svg .timeline-axis-left {
  font-size: 12px;
}

.daily-chart-svg .timeline-axis-year {
  font-size: 12.5px;
}

.daily-chart-path {
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-chart-path-partial {
  stroke-dasharray: 1.5, 6;
  opacity: 0.55;
}

.daily-chart-day-partial .daily-chart-marker {
  fill-opacity: 0.25;
  stroke: currentColor;
  stroke-dasharray: 2, 2;
}

.daily-chart-day {
  cursor: pointer;
  outline: none;
}

.daily-chart-day:hover .timeline-hover-guide,
.daily-chart-day:focus .timeline-hover-guide {
  opacity: 1;
}

.daily-chart-day:hover .timeline-axis-year,
.daily-chart-day:focus .timeline-axis-year {
  fill: #ffffff;
}

.daily-chart-marker {
  stroke: #120e0c;
  stroke-width: 1.6;
  transition: r 0.15s ease;
}

.daily-chart-day:hover .daily-chart-marker,
.daily-chart-day:focus .daily-chart-marker {
  r: 6;
}

.timeline-hud-tag.tag-quiet {
  background: rgba(166, 152, 136, 0.12);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
}

/* Interactive Year Groups */
.timeline-year-group {
  cursor: pointer;
  outline: none;
}

.timeline-hover-guide {
  stroke: rgba(255, 215, 0, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 2,2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.timeline-year-group:hover .timeline-hover-guide,
.timeline-year-group:focus .timeline-hover-guide {
  opacity: 1;
}

.timeline-year-group:hover .timeline-axis-year,
.timeline-year-group:focus .timeline-axis-year {
  fill: #ffffff;
}

.timeline-year-group:hover .timeline-axis-val,
.timeline-year-group:focus .timeline-axis-val {
  fill: #fff275;
}

.timeline-marker-win {
  fill: #38d374;
  stroke: #120e0c;
  stroke-width: 1.8;
  transition: r 0.15s ease;
}

.timeline-marker-loss {
  fill: #ef4444;
  stroke: #120e0c;
  stroke-width: 1.8;
  transition: r 0.15s ease;
}

.timeline-year-group:hover .timeline-marker-win,
.timeline-year-group:focus .timeline-marker-win {
  r: 6.5;
}

.timeline-year-group:hover .timeline-marker-loss,
.timeline-year-group:focus .timeline-marker-loss {
  r: 6;
}

.timeline-marker-setback-alert {
  fill: none;
  stroke: #ef4444;
  stroke-width: 1.5;
  opacity: 0.75;
}

.timeline-marker-victory-star {
  fill: rgba(56, 211, 116, 0.15);
  stroke: #38d374;
  stroke-width: 1.5;
  stroke-dasharray: 2,2;
}

/* Collapsible Raw Table Disclosure */
.timeline-audit-disclosure {
  margin-top: 0.85rem;
}

.timeline-audit-summary {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-audit-summary:hover {
  color: var(--text-dim);
}

.timeline-audit-table-wrapper {
  margin-top: 0.6rem;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}

.timeline-audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.timeline-audit-table th {
  padding: 0.45rem;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.timeline-audit-table td {
  padding: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Responsive Feed Card Adjustments */
@media (max-width: 768px) {
  .run-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .run-stats-ribbon {
    width: 100%;
    justify-content: space-between;
    border-top: 1px dashed var(--border-dim);
    padding-top: 0.45rem;
  }

  .run-stat-cell {
    align-items: flex-start;
    padding: 0 0.35rem;
  }

  .run-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .run-footer-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Asset Directory Links & Hover States
   ========================================================================== */
.asset-title-link,
.asset-title-link:visited {
  color: var(--gold-bright) !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

.asset-title-link:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.asset-card-art-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.asset-dossier-view-link,
.asset-dossier-view-link:visited {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim) !important;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.asset-browser-card:hover .asset-dossier-view-link {
  color: var(--gold-bright) !important;
  border-color: var(--border-dim);
  background-color: var(--bg-surface);
}

.asset-dossier-view-link:hover {
  color: #ffffff !important;
  border-color: var(--border-brass) !important;
  background-color: var(--bg-card) !important;
}

/* ==========================================================================
   Asset Detail Dossier Page (1970s SEC Form 10-K Executive Specification)
   ========================================================================== */
.asset-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
}

.dossier-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dim);
}

.dossier-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb-back-link {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.breadcrumb-back-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-faint);
}

.breadcrumb-asset-key {
  color: var(--gold-dim);
  font-weight: 600;
}

.dossier-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dossier-status-stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-bright);
  border: 1px solid rgba(184, 134, 11, 0.5);
  background: rgba(184, 134, 11, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

.dossier-version-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.btn-dossier-action {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dossier-action:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
  border-color: var(--border-brass);
}

/* Dossier Grid Layout */
.dossier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .dossier-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.dossier-col-left, .dossier-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Dossier Panels */
.dossier-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.identity-panel {
  border: 2px solid var(--border-dim);
  background-color: var(--bg-card);
}

.dossier-watermark {
  position: absolute;
  top: -10px;
  right: 15px;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--gold-bright);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.identity-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.asset-detail-art-frame {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 6px;
  border: 2px solid var(--tier-accent, var(--border-brass));
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.16) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.asset-detail-art {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.asset-detail-art-fallback {
  font-size: 2.5rem;
  color: var(--text-faint);
}

.identity-meta {
  flex: 1;
  min-width: 0;
}

.identity-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.chip-footprint:not(.tooltip-chip), .chip-ceo-exclusive, .chip-min-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chip-footprint {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold-bright);
}

.chip-ceo-exclusive {
  background: rgba(134, 211, 234, 0.1);
  border: 1px solid rgba(134, 211, 234, 0.35);
  color: #86d3ea;
}

.chip-min-year {
  background: rgba(247, 154, 114, 0.1);
  border: 1px solid rgba(247, 154, 114, 0.3);
  color: #f79a72;
}

.asset-detail-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.asset-detail-key {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.asset-detail-key code {
  color: var(--text-main);
  background: var(--bg-surface);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.identity-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Tier Switcher */
.tier-switcher-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dim);
}

.tier-switcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.tier-switcher-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.8px;
}

.tier-active-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  border: 1px solid transparent;
}

.tier-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.tier-select-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  background-color: var(--bg-surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.tier-select-btn:hover {
  border-color: var(--text-dim);
  color: var(--text-main);
}

.tier-select-btn.active {
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Dynamic Tier Spec Card */
.tier-spec-card {
  margin-top: 1rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1rem;
}

.tier-spec-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.cadence-dial-lg {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  border: 2px solid var(--border-brass);
  background: radial-gradient(circle at 35% 35%, #2a201a 0%, #17110e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 0 8px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.cadence-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.cadence-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

.tier-spec-effects {
  flex: 1;
  min-width: 0;
}

.tier-effect-body {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.tier-spec-submeta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.tier-financial-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.financial-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
  display: flex;
  flex-direction: column;
}

.cell-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.cell-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.text-gold { color: var(--gold-bright); }
.text-profit { color: #4f9c63; }
.text-loss { color: #b6503f; }
.text-moat { color: #86d3ea; }
.text-dim { color: var(--text-dim); }

/* Keywords Glossary */
.keywords-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dim);
}

.dossier-subheading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  margin-bottom: 0.65rem;
}

.keywords-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.keyword-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.keyword-name {
  font-weight: 700;
  margin-right: 0.5rem;
}

.keyword-rule {
  color: var(--text-dim);
}

/* Vendor Sourcing Panel */
.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.dossier-panel-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-bright);
  letter-spacing: 0.8px;
}

.sourcing-count, .panel-meta-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.panel-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.vendors-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vendor-sourcing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
}

.vendor-info-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vendor-tiny-icon {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
}

.vendor-emoji {
  font-size: 1.1rem;
}

.vendor-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.vendor-method {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.vendor-multiplier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
}

.empty-vendors-box {
  background: var(--bg-dark);
  border: 1px dashed var(--border-dim);
  border-radius: 4px;
  padding: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* Telemetry Panel */
.telemetry-gauges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .telemetry-gauges-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .telemetry-gauges-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.telemetry-gauge-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.gauge-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.gauge-stats {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.gauge-pct {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
}

.gauge-counts {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.gauge-track {
  width: 100%;
  height: 6px;
  background: #100d0a;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
  overflow: hidden;
}

.gauge-fill-pick {
  height: 100%;
  background: linear-gradient(90deg, #b8860b, #ffd700);
}

.gauge-fill-win {
  height: 100%;
  background: #b22222;
}

.gauge-fill-win.win-positive {
  background: linear-gradient(90deg, #2e944b, #57c976);
}

.gauge-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* CEO Breakdown Section */
.ceo-breakdown-section {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-dim);
}

.ceo-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
}

.ceo-matrix-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.55rem;
  text-align: center;
}

.ceo-matrix-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.ceo-matrix-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.15rem 0;
}

.ceo-matrix-runs {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}
/* Recent Board Filings */
.filings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease;
}

.filing-item:hover {
  border-color: rgba(184, 134, 11, 0.5);
}

.filing-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filing-status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.filing-win {
  background: rgba(79, 156, 99, 0.2);
  border: 1px solid #4f9c63;
  color: #57c976;
}

.filing-loss {
  background: rgba(182, 80, 63, 0.2);
  border: 1px solid #b6503f;
  color: #ff6b6b;
}

.filing-company {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
}

.filing-company-link {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.filing-company-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.filing-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.filing-right {
  text-align: right;
  font-family: var(--font-mono);
}

.filing-valuation {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.filing-date {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.empty-filings-box {
  background: var(--bg-dark);
  border: 1px dashed var(--border-dim);
  border-radius: 4px;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Flash Banners */
.flash-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: flashFadeIn 0.2s ease-out;
}

@keyframes flashFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.flash-notice {
  background: rgba(30, 58, 43, 0.92);
  border: 1px solid rgba(79, 156, 99, 0.6);
  color: #a3e6b4;
}

.flash-alert {
  background: rgba(60, 25, 25, 0.92);
  border: 1px solid rgba(232, 115, 123, 0.6);
  color: #fca5a5;
}

.flash-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.flash-message {
  flex: 1;
}

/* Asset Not Found Page */
.dossier-status-unresolved {
  color: #ff6b6b !important;
  border-color: rgba(255, 107, 107, 0.5) !important;
  background: rgba(255, 107, 107, 0.1) !important;
}

.not-found-panel {
  margin-bottom: 2rem;
  padding: 2.25rem;
  border: 1px solid var(--border-panel);
  background: var(--bg-panel);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.not-found-content-wrap {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.not-found-badge-icon {
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.85;
}

.not-found-details {
  flex: 1;
  min-width: 280px;
}

.not-found-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.not-found-explanation {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.missing-id-code {
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  word-break: break-all;
}

.cross-catalog-alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(214, 178, 102, 0.4);
  background: rgba(214, 178, 102, 0.08);
}

.cross-catalog-title {
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.cross-catalog-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.btn-cross-catalog {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}

.not-found-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--gold-dim);
}

.suggestions-section {
  margin-top: 2.5rem;
}

.suggestions-header {
  margin-bottom: 1.25rem;
}

.suggestions-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-mid);
  margin-bottom: 0.25rem;
}

.suggestions-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   CEO Detail Dossier & Boardroom Directory
   ========================================================================== */
.ceo-tagline-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin: 0.35rem 0 0.5rem 0;
  opacity: 0.95;
}

.ceo-bio-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.ceo-portrait-art-frame {
  width: 190px;
  height: 190px;
  min-width: 190px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid var(--tier-accent, var(--gold-bright));
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.16) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 0 14px rgba(0, 0, 0, 0.8);
}

.ceo-portrait-art-frame .ceo-portrait-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
  display: block;
}

.balance-financial-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.founding-units-section {
  margin-top: 1rem;
}

.founding-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.founding-card-item {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.75rem;
  transition: border-color 0.15s ease;
}

.founding-card-item:hover {
  border-color: rgba(184, 134, 11, 0.5);
}

.founding-card-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #120e14;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.founding-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founding-thumb-fallback {
  font-size: 1.4rem;
  color: var(--text-dim);
}

.founding-card-body {
  flex: 1;
  min-width: 0;
}

.founding-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.founding-asset-link {
  color: var(--gold-bright);
  text-decoration: none;
}

.founding-asset-link:hover {
  text-decoration: underline;
}

.founding-card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0.15rem 0;
}

.founding-card-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.founding-policies-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.founding-policy-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
}

/* Exclusive Asset Directory Link Bar */
.exclusive-assets-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: border-color 0.15s ease;
}

.exclusive-assets-bar:hover {
  border-color: rgba(184, 134, 11, 0.5);
}

.exclusive-assets-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.exclusive-assets-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.exclusive-assets-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.portfolio-card-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  transition: border-color 0.15s ease;
}

.portfolio-card-item:hover {
  border-color: rgba(184, 134, 11, 0.5);
}

.portfolio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.portfolio-card-identity {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.portfolio-thumb-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  object-fit: cover;
  background: #120e14;
}

.portfolio-card-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
}

.portfolio-asset-link {
  color: var(--gold-bright);
  text-decoration: none;
}

.portfolio-asset-link:hover {
  text-decoration: underline;
}

.portfolio-card-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.portfolio-card-cost {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-bright);
}

.portfolio-card-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.portfolio-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-dim);
  padding-top: 0.4rem;
}

.footer-link {
  color: var(--gold-dim);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.exclusive-policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.exclusive-policy-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.75rem;
}

.policy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.policy-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-bright);
}

.policy-card-body {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.ceo-benchmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.benchmark-cell {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.65rem;
  text-align: center;
}

.benchmark-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.25rem;
}

.benchmark-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.defense-telemetry-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.85rem;
}

.rival-highlight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rival-highlight-box {
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
}

.nemesis-box {
  background: rgba(182, 80, 63, 0.08);
  border-color: rgba(182, 80, 63, 0.4);
}

.favorable-box {
  background: rgba(79, 156, 99, 0.08);
  border-color: rgba(79, 156, 99, 0.4);
}

.highlight-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.highlight-content-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.highlight-rival-art {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  object-fit: cover;
  background: #120e14;
  flex-shrink: 0;
}

.highlight-text-block {
  min-width: 0;
  flex: 1 1 auto;
}

.highlight-rival-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.1rem 0;
  white-space: normal;
  word-break: normal;
}

.highlight-rival-stat {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.sub-stat {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim);
}

/* Rival Matrix Filter Bar */
.rival-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.rival-filter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-right: 0.2rem;
}

.rival-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  background: var(--bg-dark);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}

.rival-filter-btn:hover {
  border-color: var(--border-brass);
  color: var(--text-main);
}

.rival-filter-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  font-weight: 700;
}

.rival-filter-btn.filter-threat.active {
  background: rgba(224, 82, 82, 0.18);
  border-color: #e05252;
  color: #e05252;
}

.rival-filter-btn.filter-contested.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
  color: #d4af37;
}

.rival-filter-btn.filter-favorable.active {
  background: rgba(79, 156, 99, 0.18);
  border-color: #4f9c63;
  color: #4f9c63;
}

/* Compact Multi-Column Rival Grid (Option B: Stacked Header/Footer) */
.rival-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.65rem;
}

.rival-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.65rem 0.75rem 0.55rem;
  gap: 0.55rem;
  min-height: 82px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: default;
}

.rival-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Threat Color Bands */
.rival-card-favorable {
  border-color: rgba(79, 156, 99, 0.55);
  background: rgba(79, 156, 99, 0.07);
}
.rival-card-favorable:hover {
  border-color: #4f9c63;
  box-shadow: 0 4px 14px rgba(79, 156, 99, 0.25);
}

.rival-card-contested {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.07);
}
.rival-card-contested:hover {
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.rival-card-threat {
  border-color: rgba(224, 82, 82, 0.55);
  background: rgba(224, 82, 82, 0.07);
}
.rival-card-threat:hover {
  border-color: #e05252;
  box-shadow: 0 4px 14px rgba(224, 82, 82, 0.25);
}

.rival-card-unencountered {
  border: 1px dashed var(--border-dim);
  background: var(--bg-dark);
}

/* Card Header (Top Section: Avatar + Name with full horizontal width) */
.rival-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
}

.rival-card-art,
.rival-tiny-art {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  object-fit: cover;
  background: #120e14;
  flex-shrink: 0;
  margin-top: 1px;
}

.rival-card-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.rival-row-name {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.rival-row-name a:hover {
  color: var(--gold-bright) !important;
  text-decoration: underline;
}

/* Card Footer (Bottom Section: Battles left, Rate + Record right) */
.rival-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.rival-card-sub,
.rival-row-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.rival-card-bottom-stat {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.rival-row-rate {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.rate-favorable {
  color: var(--profit, #4f9c63);
}

.rate-contested {
  color: var(--gold-bright, #ffd700);
}

.rate-threat {
  color: var(--loss, #e05252);
}

.rate-unencountered {
  color: var(--text-dim);
}

.rival-row-record {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Backward-compatibility alias */
.rival-breakdown-row {
  /* Alias maintained for backward compatibility */
}

/* Hover Dossier Tooltip */
.rival-card-tooltip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  z-index: 120;
  width: 220px;
  background: #0e0a12;
  border: 1px solid var(--border-brass);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 8px rgba(212, 175, 55, 0.2);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.rival-card:hover .rival-card-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip-header-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}

.tooltip-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.tooltip-rival-icon {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.tooltip-rival-name {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: normal;
  word-break: normal;
}

.tooltip-tier-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.tier-chip-threat {
  background: rgba(224, 82, 82, 0.2);
  border: 1px solid #e05252;
  color: #e05252;
}

.tier-chip-contested {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid #d4af37;
  color: #d4af37;
}

.tier-chip-favorable {
  background: rgba(79, 156, 99, 0.2);
  border: 1px solid #4f9c63;
  color: #4f9c63;
}

.tier-chip-unencountered {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
}

.tooltip-telemetry-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tooltip-data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.tooltip-label {
  color: var(--text-dim);
}

.tooltip-val {
  color: var(--text-main);
}

.tooltip-assessment {
  font-weight: 600;
}

.assessment-threat {
  color: var(--loss, #e05252);
}

.assessment-contested {
  color: var(--gold-bright, #ffd700);
}

.assessment-favorable {
  color: var(--profit, #4f9c63);
}

.assessment-unencountered {
  color: var(--text-dim);
}

.synergies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.synergy-card-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  cursor: help;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.synergy-card-row:hover,
.synergy-card-row:focus-visible {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.04);
  outline: none;
}

.synergy-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.synergy-tiny-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  object-fit: cover;
  background: #120e14;
}

.synergy-name {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
}

.synergy-link {
  color: var(--gold-bright);
  text-decoration: none;
}

.synergy-link:hover {
  text-decoration: underline;
}

.synergy-meta {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.synergy-right {
  text-align: right;
  font-family: var(--font-mono);
}

.synergy-rate {
  font-size: 0.92rem;
  font-weight: 700;
}

.synergy-count {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* CEO Directory / Roster */
.ceo-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ceo-roster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-top: 3px solid var(--ceo-accent, var(--gold-bright));
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.ceo-roster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 134, 11, 0.5);
}

.roster-card-watermark {
  position: absolute;
  top: 5px;
  right: 15px;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--ceo-accent, var(--gold-bright));
  opacity: 0.05;
  pointer-events: none;
}

.roster-card-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.roster-portrait-frame {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  border: 2px solid var(--border-dim);
  overflow: hidden;
  flex-shrink: 0;
  background: #120e14;
}

.roster-portrait-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-ceo-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.roster-name-link {
  color: var(--gold-bright);
  text-decoration: none;
}

.roster-name-link:hover {
  text-decoration: underline;
}

.roster-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.roster-ceo-bio {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.roster-balance-strip {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.roster-balance-pill {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.pill-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.pill-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.roster-telemetry-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.roster-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.telemetry-counts {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.roster-telemetry-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono), monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.btn-examine-dossier {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-examine-dossier:hover {
  background: var(--gold-bright);
  color: #0d1210;
  border-color: var(--gold-bright);
}



/* ==========================================================================
   Dilemma Detail Dossier (1970s Corporate Boardroom Scene & Form 10-D)
   Faithful reproduction of DilemmaStage.cs, ChoiceScreen.cs, ChoiceViews.cs
   ========================================================================== */

.dilemma-detail-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
}

/* Dilemma Stage Well (Left Column Centerpiece) */
.dilemma-stage-panel {
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 30%, rgba(35, 28, 16, 0.9) 0%, rgba(16, 12, 9, 0.98) 75%, #0d0a08 100%);
  border: 2px solid var(--border-brass);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.dilemma-stage-well {
  width: 100%;
  max-width: 440px;
  height: 480px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #090705;
  border-top: 2px solid #ffd768;
  border-left: 2px solid #c89e3a;
  border-right: 2px solid rgba(200, 158, 58, 0.5);
  border-bottom: 2px solid rgba(200, 158, 58, 0.25);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 6px 20px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Guilloche Pattern Ground */
.stage-guilloche-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.12;
  background-image: radial-gradient(#c89e3a 1px, transparent 1px), radial-gradient(#c89e3a 1px, #090705 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  pointer-events: none;
}

/* Place Backdrop Layer */
.stage-backdrop-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: blur(0.5px) saturate(0.85);
  pointer-events: none;
}

/* Character Figure Host & Cross-Fade Stack */
.stage-figure-host {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.stage-figure-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  position: absolute;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.28s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.stage-figure-img.is-active {
  opacity: 1;
  transform: translateY(0);
}

.stage-vignette-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(9, 7, 5, 0.6) 80%, rgba(9, 7, 5, 0.95) 100%);
  pointer-events: none;
}

/* Tactile 3D Stepped Brass Nameplate (Speaker Plaque) */
.dilemma-nameplate {
  margin-top: 1rem;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #241c10 0%, #161108 50%, #1c150c 100%);
  border-top: 2px solid #ffd768;
  border-left: 2px solid #c89e3a;
  border-right: 2px solid rgba(200, 158, 58, 0.5);
  border-bottom: 2px solid rgba(200, 158, 58, 0.25);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nameplate-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.nameplate-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-top: 0.25rem;
}

.nameplate-id {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.stage-mood-toggles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mood-toggles-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

.mood-toggle-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mood-toggle-btn:hover {
  color: var(--gold-bright);
  border-color: var(--border-brass);
}

.mood-toggle-btn.active {
  background: rgba(200, 158, 58, 0.2);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  font-weight: 600;
}

/* Parameters Panel */
.docket-parameters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.docket-param-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.param-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.param-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.param-unit {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 400;
}

.art-subject-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--border-brass);
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.art-subject-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.art-subject-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Synergies List */
.synergies-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.synergy-asset-row {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.75rem;
  transition: border-color 0.15s ease;
}

.synergy-asset-row:hover {
  border-color: var(--border-brass);
}

.synergy-thumb {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.synergy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.synergy-info {
  flex: 1;
  min-width: 0;
}

.synergy-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.synergy-link {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 1rem;
}

.synergy-link:hover {
  text-decoration: underline;
}

.synergy-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.synergy-desc {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.35;
}

/* Floor Header Panel (Right Column) */
.floor-header-panel {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-card) 100%);
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.eyebrow-bullet {
  color: var(--text-faint);
}

.dilemma-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-bright);
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
}

.dilemma-key-row {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.dilemma-key-row code {
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
}

/* Authentic In-Game Typewriter Speech Well */
.speech-well {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(200, 158, 58, 0.05) 0%, rgba(13, 10, 8, 0.85) 100%);
  border: 1px solid rgba(200, 158, 58, 0.35);
  border-top: 2px solid var(--gold-bright);
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.8);
}

.speech-quote-mark {
  position: absolute;
  top: 0.25rem;
  left: 0.85rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-bright);
  opacity: 0.6;
  user-select: none;
}

.speech-body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-bright);
  line-height: 1.6;
  font-style: italic;
  letter-spacing: 0.25px;
}

.speech-attribution {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-dim);
  text-align: right;
  letter-spacing: 0.5px;
}

/* Macro Telemetry Strip */
.macro-telemetry-strip {
  border-top: 1px solid var(--border-dim);
  padding-top: 1.25rem;
}

.macro-telemetry-gauge {
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

/* Tactical Options List (In-Game BuildOptionRow) */
.tactical-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.tactical-option-row {
  display: flex;
  gap: 1.25rem;
  background: #14100c;
  border-top: 2px solid #ffd768;
  border-left: 2px solid #c89e3a;
  border-right: 2px solid rgba(200, 158, 58, 0.4);
  border-bottom: 2px solid rgba(200, 158, 58, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.tactical-option-row:hover {
  background: #1c1611;
  border-top-color: #ffffff;
  border-left-color: #ffd768;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7), 0 0 16px rgba(200, 158, 58, 0.25);
}

/* Lane 1: Roman Numeral Keycap */
.tactical-keycap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.keycap-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #362916 0%, #1d160b 100%);
  border: 2px solid #ffd768;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.keycap-roman {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #ffd768;
}

/* Lane 2: Crest Medallion */
.tactical-crest-host {
  flex-shrink: 0;
}

.tactical-crest-medallion {
  width: 72px;
  height: 72px;
  border-radius: 7px;
  background: #090705;
  border-top: 2px solid #ffd768;
  border-left: 2px solid #c89e3a;
  border-right: 2px solid rgba(200, 158, 58, 0.45);
  border-bottom: 2px solid rgba(200, 158, 58, 0.25);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.crest-radial-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(200, 158, 58, 0.3) 0%, transparent 75%);
  pointer-events: none;
}

.crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.crest-emoji {
  font-size: 2rem;
  z-index: 1;
}

/* Lane 3: Terms & Effects */
.tactical-terms-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.terms-headline {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.35;
}

.terms-meta-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.cost-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.cost-free {
  background: rgba(79, 156, 99, 0.15);
  color: #8fc79c;
  border: 1px solid rgba(79, 156, 99, 0.4);
}

.cost-expense {
  background: rgba(232, 115, 123, 0.15);
  color: #ff8b92;
  border: 1px solid rgba(232, 115, 123, 0.4);
}

.req-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.terms-effects-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.effect-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-main);
}

.effect-funding {
  border-color: rgba(79, 156, 99, 0.5);
  color: #8fc79c;
}

.effect-asset {
  border-color: rgba(200, 158, 58, 0.5);
  color: var(--gold-bright);
}

.effect-asset-link {
  color: var(--gold-bright);
  text-decoration: underline;
  font-weight: 600;
}

.effect-policy {
  border-color: rgba(134, 211, 234, 0.5);
  color: #86d3ea;
}

.effect-buzzword {
  border-color: rgba(190, 120, 255, 0.5);
  color: #d19eff;
}

.effect-upgrade {
  border-color: rgba(230, 200, 119, 0.5);
  color: #ffd768;
}

.effect-flag {
  border-color: rgba(255, 138, 36, 0.5);
  color: #ffaa5c;
}

/* Who the company is becoming: the axis an option moves. */
.effect-axis {
  border-color: rgba(231, 199, 117, 0.45);
  color: #e7c775;
}

/* A card lost for nothing, or a person leaving the story. */
.effect-loss {
  border-color: rgba(232, 115, 123, 0.5);
  color: #e8737b;
}

/* Reply Dialogue Well */
.option-reply-well {
  background: rgba(9, 7, 5, 0.65);
  border-left: 3px solid var(--border-brass);
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
  margin-top: 0.25rem;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.reply-speaker-label {
  color: var(--gold-dim);
  font-weight: 600;
}

.mood-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.mood-pleased {
  background: rgba(79, 156, 99, 0.2);
  color: #8fc79c;
  border: 1px solid rgba(79, 156, 99, 0.4);
}

.mood-sour {
  background: rgba(182, 80, 63, 0.2);
  color: #ff8b92;
  border: 1px solid rgba(182, 80, 63, 0.4);
}

.mood-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
}

.reply-monologue {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.4;
}

/* Option Pick Rate Bar */
.option-telemetry-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.option-bar-outer {
  flex: 1;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
}

.option-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #c89e3a 0%, #ffd768 100%);
  border-radius: 4px;
}

.option-bar-stats {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ==========================================================================
   Dilemma Executive Filings Feed
   ========================================================================== */

.filings-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.filing-run-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.filing-run-item:hover {
  border-color: var(--border-brass);
  background: #17120d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(200, 158, 58, 0.12);
}

.filing-ceo-thumb {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 6px;
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.22) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  border: 1.5px solid var(--border-brass);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filing-run-item:hover .filing-ceo-thumb {
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.35);
}

.filing-thumb-art {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.35);
  transform-origin: center 15%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.filing-run-item:hover .filing-thumb-art {
  transform: scale(1.45);
}

.filing-ceo-fallback {
  font-size: 1.3rem;
  color: var(--text-faint);
  line-height: 1;
}

.filing-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filing-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filing-run-item .filing-company-link {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
}

.filing-run-item .filing-company-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.filing-outcome {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.2;
}

.filing-outcome.text-profit,
.filing-outcome.filing-win {
  background: rgba(79, 156, 99, 0.15);
  border: 1px solid rgba(79, 156, 99, 0.45);
  color: #57c976;
}

.filing-outcome.text-loss,
.filing-outcome.filing-loss {
  background: rgba(182, 80, 63, 0.15);
  border: 1px solid rgba(182, 80, 63, 0.45);
  color: #ff6b6b;
}

.filing-meta-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filing-action {
  flex-shrink: 0;
}

.btn-run-inspect {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.4px;
  transition: all 0.15s ease;
}

.btn-run-inspect:hover {
  background: var(--gold-bright);
  color: #0d1210;
  border-color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(200, 158, 58, 0.35);
}

@media (max-width: 640px) {
  .filing-run-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .filing-action {
    width: 100%;
    margin-top: 0.25rem;
  }

  .btn-run-inspect {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Vendor Detail Dossier & Multi-Width Shelf Grid
   ========================================================================== */

.vendor-detail-art-frame {
  width: 140px;
  min-width: 140px;
  height: 140px;
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.22) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  border: 2px solid var(--gold-primary, #c89e3a);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), inset 0 0 12px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.vendor-detail-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.vendor-detail-art-frame:hover .vendor-detail-art {
  transform: scale(1.05);
}

.chip-price-tier {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shelf-showcase-panel {
  padding: 1.5rem;
}

.shelf-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.shelf-showcase-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin: 0 0 0.3rem 0;
}

.shelf-showcase-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.footprint-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footprint-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.footprint-counter-pill .fp-dot {
  color: var(--gold-bright);
  font-size: 0.85rem;
}

.vendor-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-dim);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.filter-label-prefix {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.btn-group-footprint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-filter-fp {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-fp:hover {
  border-color: var(--border-brass);
  color: var(--gold-bright);
}

.btn-filter-fp.active {
  background: var(--gold-bright);
  color: #120e0c;
  border-color: var(--gold-bright);
  font-weight: 600;
}

.vendor-sort-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Multi-Width Shelf Grid (1-, 2-, 3-Slot Cards)
   ========================================================================== */

.vendor-shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  grid-auto-flow: dense;
}

@media (max-width: 1200px) {
  .vendor-shelf-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .vendor-shelf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .vendor-shelf-grid {
    grid-template-columns: 1fr;
  }
}

/* Multi-width spans */
.vendor-stock-card.span-1 {
  grid-column: span 1;
}

.vendor-stock-card.span-2 {
  grid-column: span 2;
}

.vendor-stock-card.span-3 {
  grid-column: span 3;
}

@media (max-width: 1200px) {
  .vendor-stock-card.span-3 {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .vendor-stock-card.span-1 {
    grid-column: span 1;
  }
  .vendor-stock-card.span-2,
  .vendor-stock-card.span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .vendor-stock-card.span-1,
  .vendor-stock-card.span-2,
  .vendor-stock-card.span-3 {
    grid-column: span 1;
  }
}

/* Stock Card Container */
.vendor-stock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.vendor-stock-card:hover {
  border-color: var(--border-brass);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 12px rgba(184, 134, 11, 0.2);
}

.vendor-card-visual-wrap {
  padding: 0.75rem 0.75rem 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-dim);
}

.vendor-stock-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 0.6rem;
}

.vendor-stock-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vendor-stock-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0;
  color: var(--gold-bright);
}

.vendor-card-link {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

.vendor-card-link:hover {
  color: #fff;
  text-decoration: underline;
}

.fp-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  text-transform: uppercase;
}

.fp-badge-1 {
  border-color: rgba(190, 140, 86, 0.4);
  color: #be8c56;
}

.fp-badge-2 {
  border-color: rgba(186, 198, 206, 0.4);
  color: #bac6ce;
}

.fp-badge-3 {
  border-color: rgba(230, 200, 119, 0.4);
  color: #e6c877;
}

/* Price Strip */
.vendor-price-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
}

.vendor-price-left {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.vendor-price-strip .price-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.vendor-price-strip .price-original {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-decoration: line-through;
}

.price-tag-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.price-tag-badge.tag-discount {
  color: #57c976;
  background: rgba(46, 148, 75, 0.15);
  border: 1px solid rgba(46, 148, 75, 0.4);
}

.price-tag-badge.tag-premium {
  color: #ff8a24;
  background: rgba(255, 138, 36, 0.15);
  border: 1px solid rgba(255, 138, 36, 0.4);
}

.price-tag-badge.tag-list {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dim);
}

.vendor-stock-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vendor-stock-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}

/* ==========================================================================
   Grant Dossier & In-Game Prospectus Presentation
   ========================================================================== */

.grant-detail-page {
  --grant-green: #38d374;
  --grant-green-dim: #1c3f2a;
  --grant-green-glow: rgba(56, 211, 116, 0.22);
}

.grant-status-stamp {
  border-color: rgba(56, 211, 116, 0.45);
  color: #38d374;
  background: rgba(56, 211, 116, 0.12);
}

.grant-identity-panel {
  border-color: rgba(200, 158, 58, 0.35);
  background-color: #14110e;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.grant-identity-panel .dossier-watermark {
  position: absolute;
  top: auto;
  bottom: 15px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.grant-instrument-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.grant-instrument-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.grant-diamond-glyph {
  color: var(--grant-green);
  font-size: 0.75rem;
}

.grant-instrument-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grant-green);
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.grant-filing-ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* Card Showcase Stage */
.grant-card-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0 1rem;
  position: relative;
  z-index: 2;
}

/* In-Game Prospectus Card */
.grant-prospectus-card {
  width: 100%;
  max-width: 320px;
  background: #17130f;
  border: 2px solid var(--border-brass);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(200, 158, 58, 0.15);
  margin: 0 auto;
}

.prospectus-glow-veil {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle at 50% 35%, rgba(56, 211, 116, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.prospectus-art-well {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #100d0a 0%, #15291e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prospectus-sunburst-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(56, 211, 116, 0.04) 0deg 15deg,
    transparent 15deg 30deg
  );
  pointer-events: none;
}

.prospectus-illustration {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.grant-prospectus-card:hover .prospectus-illustration {
  transform: scale(1.05);
}

.prospectus-sheen-streak {
  position: absolute;
  top: -50px;
  left: -30px;
  width: 60px;
  height: 300px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: rotate(25deg);
  pointer-events: none;
}

.prospectus-kind-ribbon {
  height: 28px;
  background: rgba(56, 211, 116, 0.14);
  border-top: 1px solid rgba(56, 211, 116, 0.5);
  border-bottom: 1px solid rgba(56, 211, 116, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grant-green);
  font-weight: 700;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 2;
}

.prospectus-kind-ribbon .ribbon-glyph {
  font-size: 0.65rem;
}

.prospectus-kind-ribbon .ribbon-sep {
  color: rgba(255, 255, 255, 0.3);
}

.prospectus-kind-ribbon .ribbon-blurb {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.8px;
}

.prospectus-card-body {
  padding: 1.2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  background: #17130f;
}

.prospectus-card-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--gold-bright);
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
  font-weight: 700;
}

.prospectus-card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.prospectus-prompt-box {
  width: 100%;
  border-top: 1px dashed rgba(200, 158, 58, 0.3);
  padding-top: 0.75rem;
}

.prospectus-prompt-btn {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--grant-green);
  text-transform: uppercase;
}

/* Ratified Treasury Endorsement Seal */
.grant-seal-section {
  margin: 0.75rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.grant-seal-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 360px;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.seal-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 211, 116, 0.3), transparent);
}

.seal-caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--grant-green);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
}

.rubber-stamp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.85rem;
  width: 100%;
}

.rubber-stamp {
  display: inline-block;
  transform: rotate(-5deg);
  user-select: none;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
  max-width: 100%;
}

.rubber-stamp-disbursed .stamp-border-outer {
  border: 3px solid var(--grant-green);
  padding: 4px;
  border-radius: 4px;
  display: inline-block;
}

.rubber-stamp-disbursed .stamp-border-inner {
  border: 1.5px dashed var(--grant-green);
  padding: 0.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(56, 211, 116, 0.05);
}

.stamp-header-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--grant-green);
  letter-spacing: 2.5px;
  opacity: 0.85;
  margin-bottom: 2px;
}

.stamp-main-word {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--grant-green);
  letter-spacing: 4px;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(56, 211, 116, 0.45);
}

.stamp-sub-qualifier {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grant-green);
  letter-spacing: 2px;
  margin-top: 3px;
}

.stamp-footer-date {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--grant-green);
  letter-spacing: 2px;
  opacity: 0.7;
  margin-top: 4px;
}

/* Narrative Lore Speech Well */
.grant-prose-well {
  margin-top: 1.25rem;
  background: #0f1612;
  border: 1px solid rgba(56, 211, 116, 0.25);
  border-left: 4px solid var(--grant-green);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  position: relative;
  z-index: 2;
}

.prose-well-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.prose-well-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--grant-green);
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.prose-well-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.prose-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-style: italic;
  color: #e5e0d8;
  line-height: 1.6;
}

/* Statutory Filing Specifications Panel */
.grant-parameters-panel {
  border-color: rgba(200, 158, 58, 0.25);
}

.grant-parameters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (max-width: 540px) {
  .grant-parameters-grid {
    grid-template-columns: 1fr;
  }
}

.param-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s ease;
}

.param-card:hover {
  border-color: rgba(200, 158, 58, 0.35);
}

.param-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
}

.param-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.param-code {
  font-size: 0.78rem;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}

.param-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.grant-art-subject-box {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(200, 158, 58, 0.25);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.art-subject-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.art-subject-prompt {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  color: #d8d0c5;
  line-height: 1.5;
}

/* Statutory Disbursement Terms */
.disbursement-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.disbursement-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease;
}

.disbursement-card:hover {
  border-color: rgba(200, 158, 58, 0.35);
}

.disbursement-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.disbursement-details {
  flex: 1;
  min-width: 0;
}

.disbursement-kind {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.disbursement-label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.disbursement-tags {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.disbursement-linked-asset {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.linked-asset-link {
  color: var(--gold-bright);
  text-decoration: underline;
  font-weight: 600;
}

/* Eligible Assets Grid */
.eligible-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.eligible-asset-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  transition: all 0.2s ease;
}

.eligible-asset-card:hover {
  border-color: var(--border-brass);
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.45);
}

.eligible-asset-art-frame {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 4px;
  border: 1px solid var(--tier-accent, var(--border-brass));
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.16) 0%, rgba(26, 20, 16, 0.95) 75%, #120e0b 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eligible-asset-art {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.eligible-asset-fallback {
  font-size: 1.4rem;
  color: var(--text-faint);
}

.eligible-asset-info {
  flex: 1;
  min-width: 0;
}

.eligible-asset-header {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 2px;
}

.eligible-asset-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eligible-asset-link {
  color: var(--gold-bright);
  text-decoration: none;
}

.eligible-asset-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.eligible-asset-stats {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* Telemetry Counters */
.grant-breakdown-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.counter-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.counter-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.counter-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Benchmark Comparison */
.grant-benchmark-box {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(200, 158, 58, 0.2);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.benchmark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.benchmark-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 1px;
}

.benchmark-rank-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.pill-favorable {
  background: rgba(56, 211, 116, 0.15);
  color: #38d374;
  border: 1px solid rgba(56, 211, 116, 0.4);
}

.pill-under {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.benchmark-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

/* CEO Strategic Synergy Cards */
.ceo-synergies-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ceo-synergy-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.ceo-synergy-card.is-synergistic {
  border-color: rgba(200, 158, 58, 0.45);
  background: linear-gradient(90deg, rgba(200, 158, 58, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.ceo-synergy-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ceo-mini-portrait {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-dim);
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ceo-mini-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ceo-synergy-title-block {
  flex: 1;
  min-width: 0;
}

.ceo-synergy-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ceo-synergy-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.ceo-synergy-name:hover {
  text-decoration: underline;
}

.synergy-tag-hot {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(56, 211, 116, 0.15);
  color: #38d374;
  border: 1px solid rgba(56, 211, 116, 0.5);
  letter-spacing: 0.5px;
}

.ceo-synergy-archetype {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ceo-synergy-body {
  font-size: 0.82rem;
  line-height: 1.4;
}

.synergy-angle-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: 0.35rem;
}

.synergy-angle-line .angle-label {
  color: var(--text-dim);
}

.synergy-angle-line .angle-val {
  color: var(--gold-bright);
  font-weight: 600;
}

.ceo-synergy-text {
  color: var(--text-dim);
  margin: 0;
}

/* Peer Grants List */
.peer-all-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
  text-decoration: none;
}

.peer-all-link:hover {
  text-decoration: underline;
}

.peer-grants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.peer-grant-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.peer-grant-item:hover {
  border-color: var(--border-brass);
  background: rgba(0, 0, 0, 0.4);
  transform: translateX(2px);
}

.peer-grant-thumb {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 4px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peer-grant-thumb img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.peer-grant-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.peer-grant-name {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peer-grant-era {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.peer-arrow {
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.peer-grant-item:hover .peer-arrow {
  color: var(--gold-bright);
  transform: translateX(3px);
}

/* Analytics page link styles */
.grant-card-title-link {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

.grant-card-title-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.event-art-link {
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.event-art-link:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   26. Integrated Asynchronous Ghost Defenses Section
   ========================================================================== */
.ghost-defenses-section {
  margin: 2.25rem 0 0.5rem 0;
}

.ghost-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0 0 0;
}

.ghost-hud-cell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.ghost-hud-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.ghost-hud-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.ghost-unit {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dim);
}

.ghost-hud-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

.ghost-winrate-gauge-wrap {
  margin-top: 0.5rem;
}

.ghost-winrate-bar {
  height: 6px;
  width: 100%;
  background: #2a201b;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.bar-fill-win {
  background: #38d374;
  height: 100%;
  transition: width 0.3s ease;
}

.bar-fill-loss {
  background: #ef4444;
  height: 100%;
  transition: width 0.3s ease;
}

/* ==========================================================================
   27. Compressed Annual Boardroom Snapshots Ledger
   ========================================================================== */
.annual-snapshots-section {
  margin: 2.25rem 0 0.5rem 0;
}

.compressed-snapshots-ledger {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1rem;
}

.compressed-snapshot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.55rem 1.15rem;
  border-bottom: 1px solid rgba(58, 46, 38, 0.45);
  transition: background-color 0.15s ease;
}

.compressed-snapshot-row:last-child {
  border-bottom: none;
}

.compressed-snapshot-row:hover {
  background-color: rgba(255, 215, 0, 0.025);
}

.compressed-snapshot-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 180px;
}

.compressed-year-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.compressed-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.compressed-record {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.compressed-snapshot-units {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .compressed-snapshot-row {
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
  }

  .compressed-snapshot-meta {
    min-width: 0;
  }

  .mini-board-grid {
    --mini-slot-w: 24px;
    --mini-slot-gap: 0.25rem;
  }

  .mini-empty-slot,
  .mini-board-grid .mini-asset-tile {
    height: 30px;
  }
}

.compressed-units-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.compressed-units-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.compressed-tiles-rack {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Fixed 10-slot mini board so every snapshot row shares one width and
   multi-slot cards span their real footprint. */
.mini-board-grid {
  --mini-slot-w: 28px;
  --mini-slot-gap: 0.35rem;
  display: grid;
  grid-template-columns: repeat(10, var(--mini-slot-w));
  gap: var(--mini-slot-gap);
  align-items: stretch;
  flex-shrink: 0;
}

.mini-board-slot {
  min-width: 0;
}

.mini-empty-slot {
  height: 34px;
  border-radius: 3px;
  border: 1px dashed rgba(184, 134, 11, 0.28);
  background: rgba(8, 15, 12, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mini-empty-slot-pip {
  color: rgba(184, 134, 11, 0.3);
  font-size: 0.55rem;
  line-height: 1;
}

/* Mini Asset Tiles for Compressed Snapshot Rows */
.mini-asset-anchor {
  position: relative;
  display: inline-flex;
}

.mini-board-grid .mini-asset-anchor {
  display: flex;
}

.mini-board-grid .mini-asset-tile {
  width: 100%;
}

.mini-board-grid .mini-asset-tile:hover,
.mini-board-grid .mini-asset-tile:focus-visible {
  transform: translateY(-2px) scale(1.12);
}

.mini-asset-tile {
  position: relative;
  width: 28px;
  height: 34px;
  background: #0e1411;
  border-radius: 3px;
  border: 1.5px solid var(--tier-color, #be8c56);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease,
              border-color 0.15s ease,
              box-shadow 0.15s ease;
}

.mini-asset-tile:hover,
.mini-asset-tile:focus-visible {
  transform: translateY(-2px) scale(1.2);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9), 0 0 8px rgba(var(--tier-rgb, 190, 140, 86), 0.6);
  z-index: 10;
}

.mini-asset-art-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(var(--tier-rgb, 190, 140, 86), 0.16) 0%, rgba(14, 20, 17, 0.95) 75%, #080f0c 100%);
  box-sizing: border-box;
}

.mini-asset-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.mini-asset-art-fallback {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-family: var(--font-serif);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-asset-art-fallback .art-fallback-glyph {
  width: 11px;
  height: 14px;
}

.mini-asset-tier-pip {
  position: absolute;
  top: -3px;
  right: -3px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
  background: var(--tier-color, #be8c56);
  border-radius: 3px;
  padding: 0 2px;
  line-height: 1.1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.mini-asset-buzzword-pip {
  position: absolute;
  bottom: -3px;
  left: -3px;
  font-size: 0.5rem;
  background: var(--gold-bright);
  color: #120e0c;
  border-radius: 50%;
  width: 11px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}






/* Patch notes (/changelog) live in changelog.css, loaded by the changelog pages only. */

/* dossier chip linking a card to the patch that touched it */
.changelog-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid;
}

.changelog-chip-added { color: var(--gold-bright); border-color: rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.12); }
.changelog-chip-changed { color: #c9a3ff; border-color: rgba(190, 120, 255, 0.5); background: rgba(190, 120, 255, 0.12); }
.changelog-chip:hover { filter: brightness(1.2); }


/* Standalone / flex rack footprint widths */
.mini-asset-anchor.footprint-1,
.mini-asset-tile.footprint-1 {
  width: 28px;
}
.mini-asset-anchor.footprint-2,
.mini-asset-tile.footprint-2 {
  width: calc(28px * 2 + 0.35rem);
}
.mini-asset-anchor.footprint-3,
.mini-asset-tile.footprint-3 {
  width: calc(28px * 3 + 0.7rem);
}

a.mini-asset-tile,
a.mini-policy-tile {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* The card's name, shown only where the tooltip cannot open (see the inline media query) */
.mini-card-name {
  display: none;
}

/* Delta status badges (+ on add, − on remove) */
.mini-card-delta-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  z-index: 5;
  pointer-events: none;
}
.mini-card-delta-badge.badge-add {
  background: #2e944b;
}
.mini-card-delta-badge.badge-remove {
  background: #b6503f;
}

.mini-asset-tile.is-added,
.mini-policy-tile.is-added {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 4px rgba(79, 156, 99, 0.25);
}
.mini-asset-tile.is-added:hover,
.mini-policy-tile.is-added:hover {
  border-color: #6fc987;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9), 0 0 8px rgba(79, 156, 99, 0.7);
}

.mini-asset-tile.is-removed,
.mini-policy-tile.is-removed {
  opacity: 0.6;
  filter: grayscale(0.5);
  border-style: dashed;
}
.mini-asset-tile.is-removed:hover,
.mini-policy-tile.is-removed:hover {
  opacity: 1;
  filter: none;
  border-style: solid;
  border-color: #e0796a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9), 0 0 8px rgba(182, 80, 63, 0.7);
}


/* ==========================================================================
   Mobile: Live Feed Boards, Tooltip Sheet & Page Chrome
   ========================================================================== */

/* Close control for the tooltip bottom sheet (injected by tooltip_controller).
   Hidden everywhere except sheet mode. */
.tooltip-sheet-close {
  display: none;
}

/* --- Compact feed tray: wrap 10 slots into 2 rows of 5 ------------------- */
@media (max-width: 640px) {
  .visual-board-tray.compact-tray {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 6px 5px;
    padding: 8px 8px 4px 8px;
  }

  /* Explicit placement from mobile_slot_placement (helper) so a wide card
     never auto-wraps and shifts the slots after it. */
  .visual-board-tray.compact-tray .game-card-anchor,
  .visual-board-tray.compact-tray .empty-board-slot,
  .visual-board-tray.compact-tray .covered-board-slot {
    grid-column: var(--m-col, auto) / span var(--m-span, 1);
    grid-row: var(--m-row, auto);
  }

  .visual-board-tray.compact-tray .covered-board-slot {
    display: flex;
  }

  .visual-board-tray.compact-tray .game-card,
  .visual-board-tray.compact-tray .empty-slot-card,
  .visual-board-tray.compact-tray .covered-slot-card {
    height: 84px;
  }

  .visual-board-tray.compact-tray .card-podium-area {
    height: 16px;
    margin-top: 2px;
  }

  .visual-board-tray.compact-tray .card-mvp-podium {
    width: auto;
    max-width: 100%;
    height: 15px;
    padding: 0 6px;
    font-size: 0.52rem;
    letter-spacing: 0.2px;
  }

  /* Card overlays: one stat pill, no slot chip, smaller chrome. */
  .visual-board-tray.compact-tray .card-top-bar {
    padding: 2px 3px;
  }

  .visual-board-tray.compact-tray .card-stat-pill {
    font-size: 0.55rem;
    padding: 0 4px;
  }

  .visual-board-tray.compact-tray .card-stat-pill:not(:first-child),
  .visual-board-tray.compact-tray .card-slot-chip {
    display: none;
  }

  .visual-board-tray.compact-tray .card-buzzword-chip {
    width: 18px;
    height: 18px;
    left: 4px;
    bottom: 4px;
  }

  .visual-board-tray.compact-tray .card-buzzword-letter {
    font-size: 0.85rem;
  }

  .visual-board-tray.compact-tray .card-stock-pip {
    font-size: 0.42rem;
  }

  .visual-board-tray.compact-tray .card-art-well {
    padding: 4px;
  }

  .visual-board-tray.compact-tray .empty-slot-label {
    font-size: 0.58rem;
  }

  /* Hover lift reads as jitter on touch; keep feed cards flat. */
  .visual-board-tray.compact-tray .game-card:hover {
    transform: none;
  }
}

/* Covered ghost cell styling (only visible inside the wrapped compact tray) */
.covered-slot-card {
  position: relative;
  width: 100%;
  height: 120px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--tier-rgb, 190, 140, 86), 0.10) 0px,
    rgba(var(--tier-rgb, 190, 140, 86), 0.10) 4px,
    rgba(0, 0, 0, 0.35) 4px,
    rgba(0, 0, 0, 0.35) 9px
  );
  border: 1px dashed rgba(var(--tier-rgb, 190, 140, 86), 0.55);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  box-sizing: border-box;
  overflow: hidden;
}

.covered-slot-arrow {
  color: var(--tier-color, #be8c56);
  font-size: 0.9rem;
  line-height: 1;
}

.covered-slot-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  line-height: 1.15;
  text-align: center;
  color: var(--tier-color, #be8c56);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* --- Tooltip as a bottom sheet on narrow screens -------------------------- */
@media (max-width: 640px) {
  .tooltip-popover[data-placement="sheet"] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    max-height: 80vh;
    filter: none;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
    border-radius: 14px 14px 0 0;
    background: #14100e;
    overflow: hidden;
  }

  .tooltip-popover[data-placement="sheet"]::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 8px auto 0 auto;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
  }

  .tooltip-popover[data-placement="sheet"] .game-tooltip {
    width: 100%;
    max-width: none;
    max-height: calc(80vh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .tooltip-popover[data-placement="sheet"] .tooltip-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    padding: 0;
  }

  /* Leave room for the close button over the header art. */
  .tooltip-popover[data-placement="sheet"] .tooltip-title-row {
    padding-right: 40px;
  }
}

/* --- Page chrome ---------------------------------------------------------- */
@media (max-width: 640px) {
  .container {
    padding: 1rem 0.75rem 2rem 0.75rem;
  }

  /* Founder stats: 2x2 grid of stacked cards */
  .ceo-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .ceo-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.65rem;
  }

  .ceo-card .ceo-portrait-frame {
    width: 100%;
    min-width: 0;
    height: 72px;
  }

  .ceo-card .ceo-portrait-art {
    object-position: center 18%;
  }

  .ceo-card-header {
    text-align: center;
  }

  .ceo-name {
    font-size: 0.98rem;
    white-space: normal;
  }

  .ceo-winrate {
    font-size: 1.1rem;
  }

  .ceo-record-val {
    font-size: 0.74rem;
  }

  /* Filter strip: let the metric/refine controls drop under the title */
  .filter-bar-strip {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.75rem;
  }

  .filter-strip-right {
    width: 100%;
    justify-content: space-between;
  }

  .filter-drawer-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .filter-actions-cell {
    width: 100%;
  }

  .filter-actions-cell .btn-filter-submit {
    flex: 1;
  }

  /* Run cards */
  .run-card {
    padding: 0.75rem 0.7rem;
  }

  .run-headline-row .company-title {
    font-size: 1.15rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .run-stats-ribbon {
    flex-wrap: wrap;
    gap: 0.45rem 0;
  }

  .run-stat-cell {
    flex: 1 1 50%;
    box-sizing: border-box;
    border-left: none;
    padding: 0;
  }

  .run-stat-value {
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  .run-footer-actions {
    justify-content: stretch;
  }

  .run-footer-actions .btn-link {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   Asset Directory: balance lenses, sample-aware stats and the balance map
   ========================================================================== */

.btn-link.sort-dir-desc::after { content: " ↓"; }
.btn-link.sort-dir-asc::after { content: " ↑"; }

.balance-lens-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.balance-lens-label {
  align-self: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-right: 0.25rem;
}

.balance-lens {
  --lens: var(--border-brass);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--lens);
  border-radius: 4px;
  background: var(--bg-surface);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.balance-lens:hover { background: var(--bg-card-hover); border-color: var(--lens); }
.balance-lens.active { background: var(--bg-card); border-color: var(--lens); box-shadow: 0 0 0 1px var(--lens) inset; }
.balance-lens-meta { --lens: #b8841c; }
.balance-lens-traps { --lens: #c24f8e; }
.balance-lens-underdogs { --lens: #4f7fd0; }
.balance-lens-sleepers { --lens: #3f9a60; }

.balance-lens-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}
.balance-lens-blurb { font-size: 0.7rem; color: var(--text-dim); }

.balance-baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.balance-baseline b { color: var(--text-main); font-family: var(--font-mono); }
.balance-baseline-note { color: var(--text-faint); cursor: help; }
.balance-low-toggle { margin-left: auto; color: var(--text-dim); }
.balance-low-toggle a { color: var(--gold-dim); }

.balance-lens-empty {
  color: var(--text-dim);
  font-style: italic;
  margin: 0 0 1.5rem;
}

/* Card stats: muted while low data, coloured against the average once readable */
.balance-stat-low .dossier-stat-value { color: var(--text-dim); }
.balance-stat-low .dossier-progress-fill { opacity: 0.35; }
.balance-stat-above .dossier-progress-fill { background: linear-gradient(90deg, #b8860b, #ffd700); }
.balance-stat-below .dossier-stat-value { color: #ff6b6b; }
.balance-stat-below .dossier-progress-fill { background: #b22222; }
.balance-stat-even .dossier-stat-value { color: var(--text-main); }

.balance-stat-note { min-height: 1rem; margin-top: 0.15rem; }
.balance-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3px;
  padding: 0 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  line-height: 1.4;
}
.balance-chip-above { color: var(--gold-bright); border-color: rgba(255, 215, 0, 0.35); }
.balance-chip-below { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.35); }
.balance-chip-low { color: var(--text-faint); border-style: dashed; cursor: help; }
.balance-chip-none { color: var(--text-faint); }

/* Balance map */
.balance-chart-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.75rem 1rem 0.5rem;
  margin-bottom: 1.5rem;
}
.balance-chart-summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  list-style: none;
}
.balance-chart-summary::-webkit-details-marker { display: none; }
.balance-chart-summary::before { content: "▸"; color: var(--gold-dim); transition: transform 0.15s; }
.balance-chart-panel[open] > .balance-chart-summary::before { transform: rotate(90deg); }
.balance-chart-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold-bright); }
.balance-chart-subtitle { font-size: 0.75rem; color: var(--text-dim); }
.balance-chart-empty, .balance-chart-footnote { font-size: 0.75rem; color: var(--text-faint); margin: 0.5rem 0 0.25rem; }

.balance-chart-frame { position: relative; margin-top: 0.5rem; }
.balance-chart-svg { display: block; width: 100%; height: auto; max-height: 420px; }

.balance-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.balance-tick { fill: var(--text-faint); font-size: 10px; font-family: var(--font-mono); }
.balance-axis-label { fill: var(--text-dim); font-size: 11px; letter-spacing: 0.5px; }
.balance-avg-line { stroke: var(--text-faint); stroke-width: 1; stroke-dasharray: 4 4; }
.balance-quad-label { fill: var(--text-faint); font-size: 10px; letter-spacing: 1.5px; font-weight: 600; }

.balance-quad { fill: transparent; transition: fill 0.2s; }
.balance-quad-meta.active { fill: rgba(184, 132, 28, 0.12); }
.balance-quad-traps.active { fill: rgba(194, 79, 142, 0.12); }
.balance-quad-underdogs.active { fill: rgba(79, 127, 208, 0.12); }
.balance-quad-sleepers.active { fill: rgba(63, 154, 96, 0.12); }

.balance-dot {
  fill: var(--gold-dim);
  fill-opacity: 0.85;
  stroke: var(--bg-surface);
  stroke-width: 2;
  transition: fill-opacity 0.15s, r 0.15s;
}
.balance-dot.low { fill: var(--text-dim); fill-opacity: 0.45; }
.balance-dot.dim { fill-opacity: 0.18; }
.balance-dot-hit { fill: transparent; }
.balance-dot-link:hover .balance-dot,
.balance-dot-link:focus .balance-dot { fill: var(--gold-bright); fill-opacity: 1; }
.balance-dot-link:focus { outline: none; }

.balance-chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 190px;
  background: var(--bg-card);
  border: 1px solid var(--border-brass);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  color: var(--text-main);
}
.balance-tip-name { font-family: var(--font-serif); font-size: 0.9rem; color: var(--gold-bright); margin-bottom: 0.3rem; }
.balance-tip-row { display: grid; grid-template-columns: 2.2rem 3.4rem 1fr; align-items: baseline; gap: 0.35rem; }
.balance-tip-row span { color: var(--text-dim); text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.5px; }
.balance-tip-row b { font-family: var(--font-mono); }
.balance-tip-row em { font-style: normal; color: var(--text-faint); font-family: var(--font-mono); font-size: 0.65rem; }
.balance-tip-low { margin-top: 0.3rem; color: var(--text-faint); font-style: italic; }

@media (max-width: 640px) {
  .balance-lens { flex: 1 1 calc(50% - 0.5rem); }
  .balance-lens-label { flex-basis: 100%; }
  .balance-low-toggle { margin-left: 0; }
  .balance-chart-panel { padding: 0.6rem 0.6rem 0.4rem; }
  /* SVG text scales down with the plot; size it back up so ticks stay legible on a phone. */
  .balance-tick { font-size: 16px; }
  .balance-axis-label { font-size: 17px; }
  .balance-quad-label { font-size: 15px; }
}

/* Long W/L counts wrap under the figure instead of running off the card. */
.asset-browser-card .dossier-stat-labels { flex-wrap: wrap; row-gap: 0; }
.asset-browser-card .dossier-stat-item { min-width: 0; }


.feed-pagination { text-align: center; padding: 20px; color: var(--text-dim); }
.feed-pagination p { margin-top: 8px; font-size: .85rem; }
.run-feed > [data-feed-scroll-target="entries"] { display: flex; flex-direction: column; gap: .95rem; }

/* Quarterly shareholder reports share the game's emerald and brass treatment. */
.shareholder-page { max-width: 1280px; margin: 2rem auto; padding: 1.5rem; color: #f8f0d9; }
.shareholder-page h1 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); margin: .6rem 0; }
.shareholder-eyebrow, .shareholder-score { color: #f2cc77; font-weight: 700; }
.shareholder-paper { background: #eadfc3; color: #213d32; padding: 1.5rem; border-radius: 12px; margin: 1.5rem 0; border: 1px solid #f2cc77; }
.shareholder-paper a { color: #174f3c; text-decoration: underline; }
.shareholder-paper summary { font-size: 1.15rem; cursor: pointer; font-weight: bold; }
.shareholder-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.shareholder-metrics section { padding: 1.5rem; background: #19342e; border: 1px solid #496354; border-radius: 12px; }
.shareholder-metrics span { display: block; font-size: .8rem; }
.shareholder-metrics strong { display: block; color: #f2cc77; font-size: clamp(1.3rem, 3vw, 2.5rem); overflow-wrap: anywhere; }
.shareholder-table-wrap { overflow-x: auto; }
.shareholder-table { width: 100%; border-collapse: collapse; }
.shareholder-table th, .shareholder-table td { padding: 1rem; text-align: left; }
.shareholder-table tbody tr:nth-child(odd) { background: #19342e; }
.shareholder-table small { display: block; color: #aebfb0; }
.shareholder-encounter { display: flex; gap: 1.5rem; padding: 1rem; border-bottom: 1px solid #496354; flex-wrap: wrap; }
.shareholder-encounter time { margin-left: auto; }
.shareholder-window, .shareholder-count { color: #aebfb0; }
.shareholder-empty h2 { font-family: Georgia, serif; margin-top: 0; }
.shareholder-rank { font-family: Georgia, serif; font-size: 1.4rem; color: #f2cc77; font-weight: 700; white-space: nowrap; }
.shareholder-company-link { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; min-width: 0; }
.shareholder-company-link:hover strong { text-decoration: underline; }
.shareholder-company-name { min-width: 0; }
.shareholder-company-name strong { display: block; overflow-wrap: anywhere; }
.shareholder-portrait { flex: none; width: 44px; height: 54px; border-radius: 6px; overflow: hidden; background: #0f241f; border: 1px solid #708371; }
.shareholder-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shareholder-portrait-large { width: 110px; height: 135px; border-color: #f2cc77; }
.shareholder-leaderboard td.shareholder-score { font-size: 1.3rem; }
.shareholder-company-header { display: flex; gap: 1.5rem; align-items: center; margin: 1.5rem 0; }
.shareholder-company-header h1 { overflow-wrap: anywhere; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.15; }
.shareholder-back, .shareholder-history a { color: #f2cc77; }
.shareholder-status { color: #f2cc77; font-weight: 700; }
.shareholder-awards { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.shareholder-awards li { padding: .5rem .9rem; border: 1px solid #f2cc77; border-radius: 999px; color: #f2cc77; }
.shareholder-encounter-tag { font-size: .8rem; color: #aebfb0; }
.shareholder-history { padding-left: 1.2rem; }
@media(max-width: 700px) {
  .shareholder-metrics { grid-template-columns: 1fr; }
  .shareholder-page { padding: 1rem; margin: 1rem auto; }
  .shareholder-company-header { flex-direction: column; align-items: flex-start; }
  .shareholder-portrait-large { width: 88px; height: 108px; }
  /* Rows become cards: rank and company on top, the figures labelled underneath. */
  .shareholder-leaderboard thead { display: none; }
  .shareholder-leaderboard, .shareholder-leaderboard tbody { display: block; }
  .shareholder-leaderboard tr { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; padding: .9rem; border-bottom: 1px solid #496354; }
  .shareholder-leaderboard td { padding: 0; }
  .shareholder-leaderboard td.shareholder-rank { grid-row: span 2; align-self: start; }
  .shareholder-leaderboard td[data-label]:not(.shareholder-rank) { grid-column: 2; display: flex; justify-content: space-between; gap: 1rem; }
  .shareholder-leaderboard td[data-label]:not(.shareholder-rank)::before { content: attr(data-label); color: #aebfb0; font-size: .8rem; font-weight: 400; }
}

/* Market leaderboard: an engraved share-certificate hero over a trading-floor standings board. */
.market-board-page { --mk-emerald: #0f241f; --mk-emerald-2: #17322b; --mk-line: #2f4a3f; --mk-cream: #f8f0d9; --mk-gold: #f2cc77; --mk-loss: #c0392b; }
.market-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; margin-bottom: 2.5rem; padding: clamp(1.75rem, 5vw, 3.75rem) clamp(1.25rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--border-brass); border-radius: 16px; background: radial-gradient(ellipse 70% 90% at 0% 0%, rgba(212, 175, 55, 0.2), transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(79, 156, 99, 0.18), transparent 65%), linear-gradient(160deg, var(--mk-emerald-2) 0%, var(--mk-emerald) 45%, var(--bg-dark) 100%); box-shadow: 0 0 0 4px var(--bg-dark), 0 0 0 5px rgba(184, 134, 11, 0.45), 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 215, 0, 0.18); }
/* Inner engraved frame, as on a bond certificate. */
.market-hero::before { content: ""; position: absolute; inset: 10px; z-index: -1; border: 1px solid rgba(242, 204, 119, 0.28); border-radius: 10px; box-shadow: inset 0 0 0 3px rgba(18, 14, 12, 0.6), inset 0 0 0 4px rgba(242, 204, 119, 0.14); pointer-events: none; }
.market-hero-guilloche { position: absolute; inset: 0; z-index: -2; opacity: 0.55; background: repeating-radial-gradient(circle at 92% 115%, transparent 0 13px, rgba(242, 204, 119, 0.09) 13px 14px), repeating-radial-gradient(circle at 70% 140%, transparent 0 21px, rgba(242, 204, 119, 0.06) 21px 22px), repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, 0.018) 7px 8px); -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 85%); mask-image: linear-gradient(100deg, transparent 25%, #000 85%); }
.market-hero-chart { position: absolute; right: 0; bottom: 0; z-index: -1; width: min(70%, 760px); height: 72%; opacity: 0.75; }
.market-hero-area { fill: url(#marketHeroArea); }
.market-hero-line { fill: none; stroke: var(--gold-bright); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.55)); animation: market-hero-draw 2.2s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes market-hero-draw { from { stroke-dashoffset: 1; } }
.market-hero-copy { min-width: 0; }
.market-hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.4rem 0.8rem; font: 700 0.72rem/1 var(--font-mono); letter-spacing: 0.22em; color: var(--mk-gold); background: rgba(18, 14, 12, 0.6); border: 1px solid rgba(242, 204, 119, 0.35); border-radius: 999px; }
.market-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd17f; box-shadow: 0 0 0 0 rgba(95, 209, 127, 0.7); animation: market-hero-pulse 1.8s ease-out infinite; }
@keyframes market-hero-pulse { 70% { box-shadow: 0 0 0 8px rgba(95, 209, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 209, 127, 0); } }
.shareholder-page h1.market-hero-title { margin: 1.1rem 0 0.9rem; font: 700 clamp(2.75rem, 8vw, 6rem)/0.92 var(--font-serif); letter-spacing: -0.02em; background: linear-gradient(180deg, #fff6d6 0%, #ffd700 42%, #c8961c 58%, #f6d77a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(255, 215, 0, 0.18)); overflow-wrap: anywhere; }
.market-hero-tagline { max-width: 34rem; margin: 0; padding-top: 0.9rem; border-top: 3px double rgba(242, 204, 119, 0.45); color: #d8cfb6; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.5; }
.market-hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0.75rem 0 0; border: 1px solid rgba(242, 204, 119, 0.3); border-radius: 10px; background: rgba(12, 10, 9, 0.68); backdrop-filter: blur(4px); overflow: hidden; }
.market-hero-stats > div { padding: 0.9rem 1.15rem; border-left: 1px solid rgba(242, 204, 119, 0.18); }
.market-hero-stats > div:first-child { border-left: 0; }
.market-hero-stats dt { margin-bottom: 0.3rem; font: 700 0.66rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: #9fb3a5; }
.market-hero-stats dd { margin: 0; font: 700 1.05rem/1.3 var(--font-serif); color: var(--mk-cream); }
.market-hero-stats dd small { font: 0.7rem var(--font-mono); color: #9fb3a5; }
.market-hero-stats dd.market-hero-top { font-size: 1.6rem; line-height: 1.1; color: var(--gold-bright); text-shadow: 0 0 14px rgba(255, 215, 0, 0.35); }

.market-board { position: relative; padding: 0.4rem clamp(0.5rem, 2vw, 1.5rem) 1rem; border: 1px solid var(--border-dim); border-top: 0; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, rgba(23, 50, 43, 0.35), transparent 240px), var(--bg-surface); }
.market-board-ticker { display: flex; justify-content: center; margin: -0.4rem calc(-1 * clamp(0.5rem, 2vw, 1.5rem)) 0.5rem; padding: 0.6rem 1.25rem; overflow: hidden; white-space: nowrap; border-radius: 14px 14px 0 0; background: repeating-linear-gradient(90deg, #0b0907 0 3px, #100d0b 3px 4px); border: 1px solid var(--border-brass); font: 700 0.7rem var(--font-mono); letter-spacing: 0.22em; color: var(--mk-gold); }
.market-board-ticker span { color: #5fd17f; text-shadow: 0 0 10px rgba(95, 209, 127, 0.45); }
.market-board .shareholder-table { border-collapse: separate; border-spacing: 0 0.55rem; }
.market-board .shareholder-table thead th { padding: 0.5rem 1rem 0.1rem; font: 700 0.68rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.market-board .shareholder-table tbody tr:nth-child(odd) { background: none; }
.market-row td { padding: 0.8rem 1rem; vertical-align: middle; background: linear-gradient(180deg, #1c2a24, #15201b); border-block: 1px solid var(--mk-line); transition: background 0.15s, border-color 0.15s; }
.market-row td:first-child { border-left: 1px solid var(--mk-line); border-radius: 10px 0 0 10px; box-shadow: inset 4px 0 0 var(--row-accent, #3c574b); }
.market-row td:last-child { border-right: 1px solid var(--mk-line); border-radius: 0 10px 10px 0; }
.market-row:hover td { background: linear-gradient(180deg, #223630, #1a2a24); border-color: rgba(242, 204, 119, 0.5); }
.market-row-1 { --row-accent: var(--gold-bright); --medal: linear-gradient(145deg, #fff3b0, #ffd700 40%, #b8860b); --medal-ring: #ffd700; }
.market-row-2 { --row-accent: #d7dde3; --medal: linear-gradient(145deg, #ffffff, #c9d0d6 45%, #7f8a93); --medal-ring: #d7dde3; }
.market-row-3 { --row-accent: #d08a4f; --medal: linear-gradient(145deg, #ffd2a8, #cd7f32 45%, #7a4318); --medal-ring: #d08a4f; }
.market-row-1 td, .market-row-1:hover td { background: linear-gradient(180deg, #33361c, #1d2419); border-color: rgba(255, 215, 0, 0.55); }
.market-row-1 td:first-child { border-left-color: rgba(255, 215, 0, 0.55); }
.market-row-1 td:last-child { border-right-color: rgba(255, 215, 0, 0.55); }
.market-row .shareholder-rank { width: 1%; }
.market-rank-medal { display: inline-grid; place-items: center; min-width: 2.9rem; height: 2.9rem; padding: 0 0.4rem; border-radius: 50%; font: 700 1.05rem var(--font-serif); color: var(--text-dim); border: 1px solid var(--border-dim); background: rgba(0, 0, 0, 0.3); }
.market-row-podium .market-rank-medal { color: #1b1206; background: var(--medal); border: 0; box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 3px var(--medal-ring), 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.25); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.market-row-1 .market-rank-medal { min-width: 3.3rem; height: 3.3rem; font-size: 1.25rem; }
.market-row .shareholder-portrait { width: 50px; height: 62px; border-color: #4f6a5c; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
.market-row-podium .shareholder-portrait { border: 2px solid var(--medal-ring); }
.market-row-1 .shareholder-portrait { width: 58px; height: 72px; box-shadow: 0 0 18px rgba(255, 215, 0, 0.3); }
.market-row .shareholder-company-name strong { font: 700 1.1rem var(--font-serif); color: var(--mk-cream); }
.market-row-1 .shareholder-company-name strong { font-size: 1.3rem; color: #fff3c4; }
.market-row .shareholder-company-name small { margin-top: 0.15rem; font: 0.75rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.market-row .shareholder-company-link:hover strong { color: var(--gold-bright); }
.market-row td.shareholder-score { min-width: 9rem; }
.market-score-value { display: block; font: 700 1.55rem/1 var(--font-serif); color: var(--mk-gold); }
.market-row-1 .market-score-value { color: var(--gold-bright); text-shadow: 0 0 14px rgba(255, 215, 0, 0.4); }
.market-meter, .market-record-bar { display: block; height: 5px; margin-top: 0.45rem; border-radius: 3px; background: #0b1714; overflow: hidden; }
.market-meter { background: linear-gradient(90deg, #b8860b, #ffd700) 0 0 / var(--fill) 100% no-repeat, #0b1714; box-shadow: inset 0 0 0 1px rgba(242, 204, 119, 0.12); }
.market-record { font-family: var(--font-mono); white-space: nowrap; }
.market-record b { font-weight: 700; }
.market-win { color: #6fd38c; }
.market-loss { color: #ff8a73; }
.market-record-bar { width: 6.5rem; background: linear-gradient(90deg, var(--profit) var(--fill), var(--mk-loss) var(--fill)); opacity: 0.85; }
.market-opponents { font: 700 1rem var(--font-mono); color: var(--text-dim); }
.market-explainer { margin-top: 2rem; }
@media (max-width: 700px) {
  .market-hero-chart { width: 100%; height: 45%; opacity: 0.5; }
  .market-hero-stats { grid-template-columns: 1fr; }
  .market-hero-stats > div { border-left: 0; }
  .market-hero-stats > div + div { border-top: 1px solid rgba(242, 204, 119, 0.18); }
  .market-board .shareholder-table { border-spacing: 0; }
  .market-board .shareholder-leaderboard tr.market-row { margin-bottom: 0.6rem; border: 1px solid var(--mk-line); border-left: 4px solid var(--row-accent, #3c574b); border-radius: 10px; background: linear-gradient(180deg, #1c2a24, #15201b); }
  .market-board .shareholder-leaderboard tr.market-row-1 { background: linear-gradient(100deg, rgba(255, 215, 0, 0.16), rgba(255, 215, 0, 0.03) 60%), #18211a; border-color: rgba(255, 215, 0, 0.55); border-left-color: var(--gold-bright); }
  .market-board .market-row td, .market-board .market-row:hover td { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .market-board .market-row .shareholder-company { padding-bottom: 0.35rem; }
  .market-rank-medal, .market-row-1 .market-rank-medal { min-width: 2.4rem; height: 2.4rem; font-size: 0.95rem; }
  .market-row .shareholder-portrait, .market-row-1 .shareholder-portrait { width: 44px; height: 54px; }
  .market-row .shareholder-company-name strong, .market-row-1 .shareholder-company-name strong { font-size: 1.05rem; }
  .market-hero-eyebrow { letter-spacing: 0.12em; font-size: 0.64rem; }
  .market-board .market-row td.shareholder-score { flex-wrap: wrap; align-items: center; min-width: 0; }
  .market-board .market-row .market-meter { flex-basis: 100%; margin-top: 0; }
  .market-board .market-row td.market-record { align-items: center; }
  .market-board .market-row .market-record-bar { display: none; }
  .market-score-value { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .market-hero-line, .market-hero-dot { animation: none; }
}

/* Compact CEO rival ledger */
.rival-ledger [hidden] { display: none !important; }
.ledger-highlights { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.ledger-highlight { display: flex; flex-wrap: wrap; gap: .35rem .65rem; background: transparent; border: 0; color: var(--text-dim); font: inherit; text-align: left; cursor: pointer; padding: .35rem 0; }
.ledger-highlight strong { color: var(--text-main); }
.ledger-highlight:hover strong { text-decoration: underline; }
.ledger-tools { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.ledger-tools label { display: flex; flex-direction: column; gap: .4rem; color: var(--text-dim); font: .8rem var(--font-mono); }
.ledger-tools label:first-child { flex: 1; min-width: 180px; }
.ledger-tools input, .ledger-tools select, .ledger-pagination button { padding: .6rem .75rem; border: 1px solid var(--border-dim); border-radius: 4px; background: var(--bg-dark); color: var(--text-main); font: inherit; }
.rival-ledger .rival-filter-bar { margin: 1rem 0; }
.rival-ledger .rival-filter-btn { font-size: .8rem; padding: .45rem .6rem; }
.ledger-columns, .ledger-summary { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px 65px; gap: 1rem; align-items: center; }
.ledger-columns { color: var(--text-dim); font: .75rem var(--font-mono); padding: .5rem .75rem; }
.ledger-columns span:not(:first-child), .ledger-record, .ledger-battles { text-align: right; }
.ledger-entry { border-bottom: 1px solid var(--border-dim); }
.ledger-summary { list-style: none; padding: .65rem .75rem; cursor: pointer; min-height: 64px; }
.ledger-summary::-webkit-details-marker { display: none; }
.ledger-summary:hover, .ledger-entry[open] { background: var(--bg-card); }
.ledger-identity { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.ledger-identity::before { content: '▸'; color: var(--text-dim); font-size: .8rem; }
.ledger-entry[open] .ledger-identity::before { content: '▾'; }
.ledger-identity strong { font: bold 1rem var(--font-serif); overflow-wrap: anywhere; }
.ledger-portrait { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ledger-limited { display: block; color: var(--text-dim); font: .7rem var(--font-sans); margin-top: .2rem; }
.ledger-rate { font: bold 1rem var(--font-mono); text-align: right; }
.ledger-record, .ledger-battles { color: var(--text-dim); font: .85rem var(--font-mono); font-variant-numeric: tabular-nums; }
.ledger-bar { display: block; height: 3px; background: var(--border-dim); margin-top: .3rem; border-radius: 2px; overflow: hidden; }
.ledger-bar > span { display: block; height: 100%; background: currentColor; }
.ledger-detail { display: flex; gap: 1rem; padding: 1rem; color: var(--text-dim); font-size: .9rem; line-height: 1.6; }
.ledger-detail-art { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.ledger-detail strong { color: var(--text-main); }
.ledger-detail a { color: var(--gold-bright); }
.ledger-pagination { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; font: .8rem var(--font-mono); color: var(--text-dim); }
.ledger-pagination > span { margin-right: auto; }
.ledger-pagination button { cursor: pointer; }
.ledger-pagination button:disabled { opacity: .4; cursor: default; }
.ledger-empty { padding: 2rem .75rem; color: var(--text-dim); }
.rival-ledger :is(button, input, select, summary, a):focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
@media (max-width: 640px) {
  .ledger-columns, .ledger-summary { grid-template-columns: minmax(0, 1fr) 70px 78px; gap: .5rem; padding-left: 0; padding-right: 0; }
  .ledger-battles, .ledger-columns span:last-child { display: none; }
  .ledger-portrait { width: 28px; height: 28px; }
  .ledger-identity { gap: .35rem; }
  .ledger-identity strong { font-size: .9rem; }
  .ledger-rate { font-size: .85rem; }
  .ledger-record { font-size: .75rem; }
  .ledger-detail-art { width: 56px; height: 56px; }
  .ledger-pagination > span { width: 100%; }
}

/* Rival dossier: four founders in a balanced comparison grid. */
.ceo-breakdown-panel .panel-header-row { align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ceo-breakdown-panel .panel-meta-note { white-space: nowrap; }
.founder-matchup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.founder-matchup-card { min-width: 0; padding: 0.85rem 1rem; text-align: left; border-top: 3px solid var(--border-brass); }
.founder-matchup-card.is-nemesis { border-top-color: #b6503f; }
.founder-matchup-card.is-best { border-top-color: #b8860b; }
.founder-matchup-standing { min-height: 1.75rem; font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold-bright); }
.is-nemesis .founder-matchup-standing { color: #b6503f; }
.founder-matchup-card .ceo-matrix-name { font-size: 1.05rem; line-height: 1.2; }
.founder-matchup-card .ceo-matrix-val { border-top: 1px solid var(--border-dim); padding-top: 0.65rem; margin-top: 0.75rem; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.founder-matchup-label { font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.founder-matchup-card .ceo-matrix-runs { margin-top: 0.65rem; font-size: 0.65rem; }
@media (max-width: 480px) {
  .founder-matchup-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Live feed founder performance relative to the shared median. */
.ceo-banner-header { flex-wrap: wrap; gap: 0.6rem 1rem; }
.ceo-median-note { color: var(--text-dim); font-size: 0.75rem; }
.ceo-comparison-positive { color: #57c976; }
.ceo-comparison-negative { color: #ff6b6b; }
.ceo-comparison-neutral { color: var(--text-dim); }
.ceo-card .ceo-avgwins-row { margin-top: 0.6rem; }

/* Live feed promo: the primary way into the /companies leaderboard. */
.leaderboard-promo { display: flex; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 1.75rem; padding: 0.85rem 1.1rem; --promo-bg: var(--bg-card); background-color: var(--promo-bg); background-image: radial-gradient(ellipse at 0% 50%, rgba(212, 175, 55, 0.16), transparent 55%), linear-gradient(90deg, transparent 35%, var(--promo-bg) 85%), linear-gradient(rgba(184, 134, 11, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 134, 11, 0.09) 1px, transparent 1px); background-size: auto, auto, 14px 14px, 14px 14px; border: 1px solid var(--border-brass); border-left: 4px solid var(--gold-bright); border-radius: 6px; color: var(--text-main); text-decoration: none; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s; }
.leaderboard-promo:hover, .leaderboard-promo:focus-visible { --promo-bg: var(--bg-card-hover); border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright), 0 6px 18px rgba(212, 175, 55, 0.18); }
/* The SVG is drawn 300 wide; desktop crops to its right-hand end, mobile shows all of it across the row. */
.leaderboard-promo-chart { flex-shrink: 0; width: 124px; height: 56px; overflow: hidden; }
.leaderboard-promo-chart .ticker-grid line { stroke: var(--border-dim); stroke-width: 1; stroke-dasharray: 2 3; }
.leaderboard-promo-chart .ticker-area { fill: url(#leaderboardPromoArea); }
.leaderboard-promo-chart .ticker-candle line { stroke-width: 1.2; }
.leaderboard-promo-chart .ticker-candle-up line { stroke: var(--profit); }
.leaderboard-promo-chart .ticker-candle-up rect { fill: var(--profit); }
.leaderboard-promo-chart .ticker-candle-down line { stroke: #c0392b; }
.leaderboard-promo-chart .ticker-candle-down rect { fill: #c0392b; }
.leaderboard-promo-chart .ticker-trend { fill: none; stroke: var(--gold-bright); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6)); animation: leaderboard-promo-rise 1.4s ease-out; }
.leaderboard-promo-chart .ticker-arrow { fill: var(--gold-bright); filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6)); animation: leaderboard-promo-arrow 1.4s ease-out; }
.leaderboard-promo:hover .ticker-trend, .leaderboard-promo:focus-visible .ticker-trend { stroke-width: 2.5; }
@keyframes leaderboard-promo-rise { from { stroke-dashoffset: 1; } }
@keyframes leaderboard-promo-arrow { 0%, 85% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .leaderboard-promo-chart .ticker-trend, .leaderboard-promo-chart .ticker-arrow { animation: none; }
}
.leaderboard-promo-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.leaderboard-promo-copy strong { font-family: var(--font-serif); font-size: 1.05rem; }
.leaderboard-promo-copy span { color: var(--text-dim); font-size: 0.8rem; }
.leaderboard-promo-cta { flex-shrink: 0; font-size: 0.8rem; font-weight: 700; color: var(--gold-bright); white-space: nowrap; }
.leaderboard-promo-copy strong, .leaderboard-promo-cta-arrow { transition: color 0.15s, transform 0.15s; }
.leaderboard-promo-cta-arrow { display: inline-block; }
.leaderboard-promo:hover .leaderboard-promo-copy strong, .leaderboard-promo:focus-visible .leaderboard-promo-copy strong { color: var(--gold-bright); }
.leaderboard-promo:hover .leaderboard-promo-cta-arrow, .leaderboard-promo:focus-visible .leaderboard-promo-cta-arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .leaderboard-promo { flex-wrap: wrap; }
  .leaderboard-promo-copy { flex-basis: 100%; }
  .leaderboard-promo-chart { width: 100%; height: auto; }
}


/* The company masthead and report body share one continuous outer edge. */
.run-report-shell {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.run-report-shell > .company-showcase {
  border-radius: 8px 8px 0 0;
}
.run-report-shell > .run-report-content {
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}


/* A shareable corporate certificate for the completed run. */
.company-showcase {
  border: 1px solid var(--border-brass);
  background: radial-gradient(ellipse at 80% 25%, rgba(184, 134, 11, 0.13), transparent 60%), #171410;
  box-shadow: inset 0 0 0 5px #171410, inset 0 0 0 6px rgba(184, 134, 11, 0.22);
  padding: 1.4rem 1.8rem;
  border-radius: 3px;
}
.company-showcase-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-brass);
  font: 0.7rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.company-showcase-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
}
.company-showcase-founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main);
  text-decoration: none;
  text-align: center;
  min-width: 0;
}
.company-showcase-founder strong { font: 1.25rem var(--font-serif); overflow-wrap: anywhere; }
.company-showcase-portrait {
  position: relative;
  width: 210px;
  height: 210px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid #b99a56;
  border-radius: 48% 48% 3px 3px;
  background: radial-gradient(ellipse at center, #645435, #26251e 75%);
  box-shadow: 0 0 0 4px #171410, 0 0 0 5px rgba(185, 154, 86, 0.35);
}
.company-showcase-founder-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 2.25rem 0.65rem 0.75rem;
  background: linear-gradient(transparent, rgba(15, 13, 9, 0.88) 48%, #0f0d09);
  text-shadow: 0 2px 4px #000;
}
.company-showcase-founder-caption .company-showcase-label { color: #d9c28b; }
.company-showcase-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.company-showcase-monogram { position: absolute; inset: 0; display: grid; place-items: center; font: 4rem var(--font-serif); color: #c9b477; }
.company-showcase-label { font: 0.65rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #bba881; }
.company-showcase-identity h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f3df9f;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
/* Die-cut brass seal; the live year and ribbon remain readable text. */
.company-showcase-tenure {
  position: relative;
  isolation: isolate;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding-bottom: 12px;
  color: #f9e7b1;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.45));
}
.company-showcase-tenure::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  clip-path: polygon(100.00% 50.00%, 95.61% 56.00%, 98.30% 62.94%, 92.50% 67.60%, 93.30% 75.00%, 86.49% 78.00%, 85.36% 85.36%, 78.00% 86.49%, 75.00% 93.30%, 67.60% 92.50%, 62.94% 98.30%, 56.00% 95.61%, 50.00% 100.00%, 44.00% 95.61%, 37.06% 98.30%, 32.40% 92.50%, 25.00% 93.30%, 22.00% 86.49%, 14.64% 85.36%, 13.51% 78.00%, 6.70% 75.00%, 7.50% 67.60%, 1.70% 62.94%, 4.39% 56.00%, 0.00% 50.00%, 4.39% 44.00%, 1.70% 37.06%, 7.50% 32.40%, 6.70% 25.00%, 13.51% 22.00%, 14.64% 14.64%, 22.00% 13.51%, 25.00% 6.70%, 32.40% 7.50%, 37.06% 1.70%, 44.00% 4.39%, 50.00% 0.00%, 56.00% 4.39%, 62.94% 1.70%, 67.60% 7.50%, 75.00% 6.70%, 78.00% 13.51%, 85.36% 14.64%, 86.49% 22.00%, 93.30% 25.00%, 92.50% 32.40%, 98.30% 37.06%, 95.61% 44.00%);
  background: linear-gradient(135deg, #f5df9e 0%, #a8863f 24%, #e3c579 44%, #735221 70%, #d9b86b 100%);
}
.company-showcase-tenure::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid #efd99b;
  background: repeating-conic-gradient(from 0deg, rgba(234, 205, 133, 0.07) 0deg 1deg, transparent 1deg 5deg), radial-gradient(circle at 40% 25%, #554629, #241f15 75%);
  box-shadow: inset 0 0 0 4px #6c552c, inset 0 0 0 5px #b59652, inset 0 3px 10px #17130c;
}
.company-showcase-tenure-stars { font-size: 0.65rem; letter-spacing: 0.2em; color: #d6b96b; margin: 0 0 2px 0.2em; }
.company-showcase-tenure strong { transform: translateY(-10px); font: 4rem/1 var(--font-serif); letter-spacing: -0.05em; text-shadow: 0 2px 0 #100e09, 0 -1px 0 #fff0bf; }
.company-showcase-tenure .company-showcase-label {
  position: absolute;
  bottom: 17px;
  left: -9px;
  right: -9px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2d2110;
  background: linear-gradient(100deg, #a27c35, #efd699 35%, #d5b364 70%, #a27c35);
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
  box-shadow: inset 0 2px 0 #f4dc9a, inset 0 -2px 0 #7d5c28;
}
.company-showcase-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border-brass); padding-top: 1rem; }
.company-showcase-filing { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; color: var(--text-dim); font: 0.65rem/1.5 var(--font-mono); overflow-wrap: anywhere; min-width: 0; }
.company-showcase-share { flex-shrink: 0; cursor: pointer; }
.company-showcase-founder:hover strong { color: var(--gold-bright); }
.company-showcase-founder:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 8px; }
@media (max-width: 900px) {
  .company-showcase-body { grid-template-columns: 180px minmax(0, 1fr); gap: 1.5rem; }
  .company-showcase-portrait { width: 180px; height: 200px; }
  .company-showcase-tenure { grid-column: 2; }
}
@media (max-width: 540px) {
  .company-showcase { padding: 1.2rem; }
  .company-showcase-masthead { font-size: 0.6rem; letter-spacing: 0.08em; }
  .company-showcase-body { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 0; text-align: center; }
  .company-showcase-identity { grid-row: 1; }
  .company-showcase-identity h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .company-showcase-tenure { grid-column: 1; }
  .company-showcase-footer { flex-direction: column; align-items: stretch; }
  .company-showcase-share { width: 100%; }
}

/* One archival document, from folder tab through the final filing details. */
.run-report-shell {
  --dossier-rule: rgba(185, 154, 86, 0.4);
  position: relative;
  margin-top: 3rem;
  border: 1px solid var(--dossier-rule);
  border-radius: 0 8px 8px 8px;
  background: var(--bg-card);
  counter-reset: dossier-section;
}
.dossier-tab {
  position: absolute;
  bottom: 100%;
  left: -1px;
  padding: 0.6rem 1.8rem 0.5rem;
  border: 1px solid var(--dossier-rule);
  border-bottom: 0;
  border-radius: 8px 16px 0 0;
  background: #211d14;
  color: #dfc88e;
  font: 0.65rem var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.run-report-shell > .company-showcase {
  border: 0;
  border-radius: 0 8px 0 0;
  box-shadow: none;
  padding: 1.4rem 2rem 1rem;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(226, 203, 148, 0.012) 3px 4px), radial-gradient(ellipse at 80% 25%, rgba(184, 134, 11, 0.13), transparent 60%), #171410;
}
.company-showcase-masthead, .company-showcase-footer { border-color: var(--dossier-rule); }
.dossier-outcome {
  border: 3px double currentColor;
  padding: 0.4rem 0.7rem;
  color: #d2b66b;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 1px #000;
}
.dossier-outcome.is-defeat { color: #d48573; }
.dossier-share { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.company-showcase-share {
  border: 1px solid var(--dossier-rule);
  border-radius: 3px;
  padding: 0.55rem 0.8rem;
  color: #dfc88e;
  background: rgba(185, 154, 86, 0.06);
  font: 0.75rem var(--font-mono);
  cursor: pointer;
}
.company-showcase-share:hover { background: rgba(185, 154, 86, 0.16); border-color: #d2b66b; }
.company-showcase-share:focus-visible { outline: 2px solid #dfc88e; outline-offset: 3px; }
.dossier-share-status { font-size: 0.7rem; color: var(--text-dim); }
.dossier-share-status:empty { display: none; }
.dossier-share-fallback { width: 100%; padding: 0.5rem; background: #171410; color: var(--text-main); border: 1px solid var(--dossier-rule); }
.dossier-summary { padding: 1.25rem 2rem 1.5rem; border-block: 1px solid var(--dossier-rule); background: rgba(185, 154, 86, 0.045); }
.run-report-shell .dossier-section-title,
.run-report-shell .visual-board-title,
.run-report-shell .timeline-title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  color: #e3cf99;
  font: 1.35rem var(--font-serif);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--dossier-rule);
}
.run-report-shell .dossier-section-title::before,
.run-report-shell .visual-board-title::before,
.run-report-shell .timeline-title::before {
  counter-increment: dossier-section;
  content: counter(dossier-section, decimal-leading-zero) " /";
  color: #ac945e;
  font: 0.7rem var(--font-mono);
  flex-shrink: 0;
}
.run-report-shell .dossier-section-title { font-size: 1rem; margin: 0 0 1rem; border: 0; padding: 0; }
.dossier-metrics { display: grid; grid-template-columns: 1fr 1fr 1.4fr; margin: 0; }
.dossier-metrics > div { padding: 0 1.5rem; border-left: 1px solid var(--dossier-rule); min-width: 0; }
.dossier-metrics > div:first-child { border-left: 0; padding-left: 0; }
.dossier-metrics > div:last-child { padding-right: 0; }
.dossier-metrics dt { font-size: 0.7rem; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.35rem; }
.dossier-metrics dd { margin: 0; font: bold clamp(1rem, 1.8vw, 1.5rem)/1.4 var(--font-mono); overflow-wrap: anywhere; }
.dossier-valuation { color: var(--profit, #4f9c63); }
.dossier-funding { color: #dfc88e; }
.run-report-shell > .run-report-content { border: 0; background: transparent; }
.run-report-content > .visual-board-section:first-child { margin-top: 0; }
.dossier-archive-footer { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 1rem; margin-top: 2rem; border-top: 1px solid var(--dossier-rule); font: 0.65rem/1.6 var(--font-mono); color: var(--text-dim); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .run-report-shell > .company-showcase { padding: 1.2rem; }
  .dossier-summary { padding: 1.1rem 0.85rem; }
  .dossier-metrics { grid-template-columns: 1fr; gap: 0.85rem; }
  .dossier-metrics > div, .dossier-metrics > div:first-child { padding: 0 0 0.85rem; border: 0; border-bottom: 1px solid var(--dossier-rule); }
  .dossier-metrics > div:last-child { padding-bottom: 0; border: 0; }
  .dossier-metrics dd { font-size: 1.25rem; }
  .dossier-share { justify-content: flex-start; }
}

/* Rubber-stamp arrival: approach, impact, then a short recoil into the ink mark. */
.dossier-outcome {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.7rem 1rem;
  border: 4px double currentColor;
  border-radius: 3px;
  color: #d1b36b;
  background: transparent;
  text-align: center;
  text-shadow: none;
  transform: rotate(-4deg);
  transform-origin: 65% 50%;
  animation: dossier-stamp-in 1500ms linear 250ms both;
}
.dossier-outcome::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(173deg, transparent 0 7px, #211d14 7px 8px, transparent 8px 13px);
}
.dossier-outcome strong {
  font: 900 clamp(0.85rem, 1.35vw, 1.15rem)/1.2 var(--font-mono);
  letter-spacing: 0.055em;
}
.dossier-outcome-caption,
.dossier-outcome-certification { font: 0.5rem/1.2 var(--font-mono); letter-spacing: 0.15em; }
.dossier-outcome-certification { border-top: 1px solid currentColor; padding-top: 0.35rem; width: 100%; }
/* Slow approach, a sudden strike, and a heavy settling recoil. */
.dossier-outcome::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid currentColor;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  animation: dossier-stamp-impact 1500ms linear 250ms both;
}
@keyframes dossier-stamp-in {
  0% { opacity: 0; transform: translateY(-65px) scale(1.65) rotate(-17deg); filter: blur(7px); }
  18% { opacity: 0.65; transform: translateY(-48px) scale(1.5) rotate(-13deg); filter: blur(4px); }
  52% { opacity: 1; transform: translateY(-30px) scale(1.4) rotate(-10deg); filter: blur(2px); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  63% { opacity: 1; transform: translateY(5px) scale(0.91, 0.84) rotate(-3deg); filter: blur(0); }
  69% { transform: translateY(-6px) scale(1.06) rotate(-5deg); }
  76% { transform: translateY(2px) scale(0.98) rotate(-3.5deg); }
  85% { transform: translateY(-1px) scale(1.01) rotate(-4.2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-4deg); filter: blur(0); }
}
@keyframes dossier-stamp-impact {
  0%, 61% { opacity: 0; transform: scale(1); }
  63% { opacity: 0.65; transform: scale(1); }
  86%, 100% { opacity: 0; transform: scale(1.25, 1.65); }
}
@media (max-width: 540px) {
  .company-showcase-masthead { gap: 1.1rem; }
  .dossier-outcome { margin: 0.25rem 0; padding: 0.65rem 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dossier-outcome, .dossier-outcome::before { animation: none; }
}

/* An editorial word cloud of the final board's actual asset types. */
.dossier-type-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--dossier-rule); }
.dossier-type-note { color: var(--text-dim); font-size: 0.8rem; margin: 0.5rem 0 1rem; }
.dossier-type-cloud { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none; margin: 0; padding: 1.5rem 0.5rem; background: radial-gradient(ellipse at center, rgba(185, 154, 86, 0.07), transparent 70%); }
.dossier-type-word { font-family: var(--font-serif); line-height: 1.15; color: #b9a67a; overflow-wrap: anywhere; max-width: 100%; }
.dossier-type-weight-1, .dossier-type-weight-2 { font-size: 1.25rem; }
.dossier-type-weight-3 { font-size: 1.8rem; color: #cbb47e; }
.dossier-type-weight-4 { font-size: 2.4rem; color: #dfc88e; }
.dossier-type-weight-5 { font-size: clamp(2.5rem, 5vw, 3.3rem); color: #f3df9f; }
.dossier-type-count { font: 0.65rem var(--font-mono); color: var(--text-dim); white-space: nowrap; }

/* The final exhibit: a letterpress signature, printed straight onto the file. */
.dossier-dna { position: relative; isolation: isolate; padding: 2rem; border-block: 1px solid var(--dossier-rule); background: #191710; }
.dossier-dna::before { content: ""; position: absolute; inset: 12px; z-index: -1; pointer-events: none; background: linear-gradient(#a89159, #a89159) left top / 18px 1px no-repeat, linear-gradient(#a89159, #a89159) left top / 1px 18px no-repeat, linear-gradient(#a89159, #a89159) right bottom / 18px 1px no-repeat, linear-gradient(#a89159, #a89159) right bottom / 1px 18px no-repeat; opacity: 0.45; }
.dossier-dna-fingerprint { position: absolute; width: min(90%, 480px); height: 100%; top: 0; left: 50%; transform: translateX(-50%); z-index: -1; stroke: #b19a5f; stroke-width: 1; opacity: 0.065; pointer-events: none; }
.dossier-dna-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dossier-dna-eyebrow { color: #b19a5f; font: 0.6rem var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.65rem; }
.dossier-dna-description { color: var(--text-dim); font: italic 0.9rem var(--font-serif); margin: 0; }
.dossier-dna-index { text-align: right; color: #b19a5f; font: 0.6rem/1.8 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.dossier-dna-cloud { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.3rem 1.3rem; max-width: 880px; margin: 1.5rem auto; padding: 1.5rem 0; list-style: none; }
.dossier-dna-word { color: #c6ab70; max-width: 100%; position: relative; }
.dossier-dna-word:first-child { flex-basis: 100%; text-align: center; }
.dossier-dna-word:has(summary:hover), .dossier-dna-word:focus-within, .dossier-dna-word:has(details[open]) { z-index: 2; }
.dossier-dna-detail summary { display: flex; justify-content: center; align-items: flex-start; cursor: pointer; list-style: none; gap: 0.3rem; padding: 0.15rem; }
.dossier-dna-detail summary::-webkit-details-marker { display: none; }
.dossier-dna-detail summary:focus-visible { outline: 1px dashed currentColor; outline-offset: 5px; }
.dossier-dna-type { font-family: var(--font-serif); font-weight: 900; line-height: 0.95; letter-spacing: -0.055em; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: none; -webkit-text-fill-color: currentColor; }
.dossier-dna-count { font: 0.65rem var(--font-mono); letter-spacing: 0; padding-top: 0.4rem; opacity: 1; }
.dossier-dna-weight-1, .dossier-dna-weight-2 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
.dossier-dna-weight-3 { font-size: clamp(1.8rem, 4vw, 3.25rem); }
.dossier-dna-weight-4 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
.dossier-dna-weight-5 { font-size: clamp(2.8rem, 7vw, 6rem); }
.dossier-dna-ink-robot, .dossier-dna-ink-machine { color: #81b2a0; }
.dossier-dna-ink-human, .dossier-dna-ink-employee { color: #ecdfbc; }
.dossier-dna-ink-ai { color: #94b0c4; }
.dossier-dna-ink-scheme { color: #d38e63; }
.dossier-dna-ink-animal { color: #b5bd8d; }
.dossier-dna-assets { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(280px, 70vw); background: #292319; color: #ecdfbc; border: 1px solid #867143; padding: 0.85rem 1rem; font: 0.75rem/1.6 var(--font-mono); text-align: left; box-shadow: 0 8px 20px #0009; }
.dossier-dna-assets ul { padding-left: 1rem; }
.dossier-dna-detail[open] > .dossier-dna-assets, .dossier-dna-detail:focus-within > .dossier-dna-assets { display: block; }
@media (hover: hover) { .dossier-dna-detail:hover > .dossier-dna-assets { display: block; } }
.dossier-dna-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--dossier-rule); color: #a99a7c; font: 0.6rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.run-report-shell > .dossier-archive-footer { margin: 0; border: 0; padding: 1.2rem 2rem; }
.dossier-dna.is-revealed .dossier-dna-word { animation: dossier-type-print 480ms both; animation-delay: calc(min(var(--word-order), 10) * 65ms); }
@keyframes dossier-type-print { from { opacity: 0; transform: translateY(9px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .dossier-dna { padding: 1.5rem 1.2rem; } .dossier-dna-index { display: none; } .dossier-dna-cloud { gap: 0.6rem 1rem; } .run-report-shell > .dossier-archive-footer { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { .dossier-dna.is-revealed .dossier-dna-word { animation: none; } }
