/* 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);
}

.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);
}

.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-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, .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;
}

/* 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) — docs/PLAN-changelog-and-releases.md §6
   ============================================================================ */

.changelog-h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--gold-bright);
  margin: 0.2rem 0 0.3rem;
  line-height: 1.15;
}

.changelog-lede,
.release-lede {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 60ch;
}

.changelog-index-header,
.release-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.changelog-index-actions,
.release-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.release-teaser {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent);
  border: 1px dashed var(--border-brass);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
}

.release-teaser:hover { border-style: solid; }

.release-teaser-stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.release-teaser-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-main); }
.release-teaser-blurb { color: var(--text-dim); font-size: 0.85rem; }

.release-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.release-list-link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.release-list-link:hover { border-color: var(--border-brass); background: var(--bg-card-hover); }

.release-list-art {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
  background: #120e14;
}

.release-list-art img { width: 100%; height: 100%; object-fit: cover; }
.release-list-meta { display: flex; gap: 0.6rem; align-items: center; color: var(--text-dim); font-size: 0.8rem; }
.release-list-title { font-family: var(--font-serif); font-size: 1.35rem; color: var(--gold-dim); margin: 0.25rem 0; }
.release-list-blurb { color: var(--text-dim); font-size: 0.9rem; }

.changelog-empty {
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
}

/* ---- one release ---- */

.release-page { padding-bottom: 3rem; }

.release-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.release-meta-link { color: var(--gold-dim); }
.release-meta-blurb::before,
.release-meta-shipped::before { content: "·"; margin-right: 0.75rem; color: var(--text-faint); }
.release-meta-shipped { color: var(--gold-dim); }

.stamp-draft {
  color: var(--gold-bright);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.12);
}

/* ---- upcoming patch banner ---- */

.upcoming-patch-banner {
  background: linear-gradient(135deg, rgba(42, 28, 12, 0.96) 0%, rgba(22, 16, 10, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-left: 5px solid var(--gold-bright);
  border-radius: 6px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 215, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.upcoming-patch-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(212, 175, 55, 0.03),
    rgba(212, 175, 55, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}

.upcoming-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.upcoming-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.upcoming-banner-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold-bright);
  animation: upcomingPulse 2s ease-in-out infinite;
}

@keyframes upcomingPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.upcoming-banner-commit {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border-dim);
}

.upcoming-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.upcoming-banner-icon {
  color: var(--gold-bright);
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upcoming-banner-body {
  flex: 1;
  min-width: 0;
}

.upcoming-banner-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff2d5;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.upcoming-banner-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #c8bcad;
  margin-bottom: 0.75rem;
}

.upcoming-banner-desc code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.45);
  color: var(--gold-bright);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.upcoming-banner-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.upcoming-banner-nav-label {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.upcoming-banner-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-bright);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.upcoming-banner-live-link:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-bright);
  color: #ffffff;
  text-decoration: none;
}

.upcoming-banner-arrow {
  transition: transform 0.15s ease;
}

.upcoming-banner-live-link:hover .upcoming-banner-arrow {
  transform: translateX(3px);
}

.release-export-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.release-export-panel label { display: block; color: var(--text-dim); font-size: 0.8rem; margin-bottom: 0.5rem; }
.release-export-panel a { color: var(--gold-dim); }

.release-export-panel textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 0.6rem;
  resize: vertical;
}

.release-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  border-left: 3px solid var(--border-brass);
  padding: 0.25rem 0 0.25rem 1rem;
  margin-bottom: 2rem;
  max-width: 72ch;
}

.release-intro p + p, .release-note-body p + p { margin-top: 0.6rem; }
.release-intro ul, .release-note-body ul { padding-left: 1.2rem; margin-top: 0.4rem; }

.release-section { margin-bottom: 2.25rem; }

.release-h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.release-h2-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

.release-toggle-notes-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold-dim);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.release-toggle-notes-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.release-section.hide-notes .release-note {
  display: none !important;
}

.release-section.hide-notes .release-toggle-notes-btn {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dim);
}

.release-section.hide-notes .release-toggle-notes-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
  background: rgba(212, 175, 55, 0.1);
}


/* ---- Folded patch-note sections -----------------------------------------------------------
   Every section is a <details>, closed by default: the summary is a card with the heading, a
   count and a one-line preview, so a long patch reads as a short stack of cards until the
   reader opens the ones they care about. */
.release-fold { margin-bottom: 0.85rem; }
.release-fold[open] { margin-bottom: 2.25rem; }

.release-fold-card {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--border-brass);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}
.release-fold-card::-webkit-details-marker { display: none; }
.release-fold-card::marker { content: ""; }
.release-fold-card:hover { background: var(--bg-card-hover); border-color: var(--gold-dim); border-left-color: var(--gold-bright); }
.release-fold-card:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.release-fold[open] > .release-fold-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-left-color: var(--gold-bright);
}

.release-fold-main { display: grid; gap: 0.3rem; min-width: 0; }
.release-fold-card .release-h2 { border-bottom: none; padding-bottom: 0; margin-bottom: 0; font-size: 1.3rem; }
.release-fold-preview {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.release-fold[open] > .release-fold-card .release-fold-preview { white-space: normal; }

.release-fold-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.release-fold-hint-close { display: none; }
.release-fold[open] > .release-fold-card .release-fold-hint-close { display: inline; }
.release-fold[open] > .release-fold-card .release-fold-hint-open { display: none; }
.release-fold-chevron { display: inline-block; transition: transform 0.15s ease-out; }
.release-fold[open] > .release-fold-card .release-fold-chevron { transform: rotate(180deg); }

.release-fold-body {
  padding: 1.1rem 1.1rem 0.25rem;
  border: 1px solid var(--border-dim);
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.release-section-tools { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }

.release-fold-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: -0.75rem 0 1.25rem;
  color: var(--text-faint);
  font-size: 0.82rem;
}
.release-fold-toolbar-actions { display: inline-flex; gap: 0.4rem; }
.release-fold-toolbar-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold-dim);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease-out;
}
.release-fold-toolbar-btn:hover { background: rgba(212, 175, 55, 0.18); border-color: var(--gold-bright); color: var(--gold-bright); }

@media (max-width: 640px) {
  .release-fold-card { padding: 0.75rem 0.85rem; gap: 0.6rem; }
  .release-fold-card .release-h2 { font-size: 1.1rem; }
  .release-fold-body { padding: 0.85rem 0.6rem 0.25rem; }
  .release-fold-hint-open, .release-fold-hint-close { display: none; }
  .release-fold[open] > .release-fold-card .release-fold-hint-close { display: none; }
}

@media print {
  .release-fold-toolbar { display: none; }
  .release-fold-hint { display: none; }
}

.release-h3 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold-dim); margin-bottom: 0.6rem; }

.release-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

.release-new-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1.25rem;
  align-items: flex-start;
  margin: 0.75rem 0 1.5rem 0;
}

.release-new-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 110px;
  box-sizing: border-box;
}

.release-new-card.footprint-2 {
  width: 232px;
}

.release-new-card.footprint-3 {
  width: 354px;
}

.release-new-card .game-card-anchor {
  width: 100%;
}

.release-new-card .card-podium-area {
  display: none;
}

.release-card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.55rem;
  text-align: center;
  max-width: 100%;
}

.release-card-label .release-row-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: center;
}

.release-card-label .release-row-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--border-brass);
}

.release-card-label .release-row-name a:hover {
  color: var(--gold-bright);
}

.release-rows {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  align-items: start;
}

.release-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 0.6rem 0.8rem 0.65rem;
  scroll-margin-top: 120px;
  min-width: 0;
}

.release-row.verdict-buff { border-left-color: #4f9c63; }
.release-row.verdict-nerf { border-left-color: #b6503f; }
.release-row.verdict-rework { border-left-color: #be78ff; }
.release-row.verdict-adjust { border-left-color: var(--border-brass); }

.release-portrait {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
  background: #120e14;
  flex-shrink: 0;
}

.release-portrait img { width: 100%; height: 100%; object-fit: cover; }
.release-portrait-sm { display: inline-block; width: 28px; height: 28px; vertical-align: middle; margin-right: 0.4rem; }

.release-row-body { min-width: 0; }
.release-row-head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.release-row-name { font-family: var(--font-serif); font-size: 1.08rem; color: var(--text-main); }
.release-row-name a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--border-brass); }
.release-row-name a:hover { color: var(--gold-bright); }
.release-was { color: var(--text-faint); font-size: 0.75rem; font-family: var(--font-mono); margin-left: 0.3rem; }
.release-row-ceo { color: var(--text-faint); font-size: 0.75rem; }
.release-row-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; color: var(--text-dim); font-size: 0.8rem; margin: 0.3rem 0; }

.release-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  align-self: center;
}

.release-pill.verdict-buff { color: #6fc987; background: rgba(79, 156, 99, 0.15); }
.release-pill.verdict-nerf { color: #e0796a; background: rgba(182, 80, 63, 0.15); }
.release-pill.verdict-rework { color: #c9a3ff; background: rgba(190, 120, 255, 0.15); }
.release-pill.verdict-adjust { color: var(--gold-dim); background: rgba(212, 175, 55, 0.12); }
.release-pill-new { color: var(--gold-bright); background: rgba(212, 175, 55, 0.15); }

/* one line per changed number: label, then the four tiers as before→after */
.release-deltas { display: grid; gap: 0.15rem; margin: 0.15rem 0 0.35rem; }
.release-delta { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem; }
.release-delta-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); min-width: 7.5rem; }
.release-delta-tier { white-space: nowrap; }
.release-delta-note { font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dim); }
.release-delta-tier + .release-delta-tier::before { content: "·"; color: var(--text-faint); margin-right: 0.9rem; }
.release-delta-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--border-brass); }
.release-delta-link:hover { color: var(--gold-bright); }
.release-before { color: var(--text-faint); text-decoration: line-through; }
.release-after { color: var(--text-main); font-weight: 700; }
.release-same { color: var(--text-faint); }
.release-arrow { color: var(--text-faint); margin: 0 0.2rem; }
.release-delta.polarity-buff .release-after { color: #6fc987; }
.release-delta.polarity-nerf .release-after { color: #e0796a; }

/* collection deltas & mini cards (vendor pools, tags, inventories) */
.release-collection-delta { margin: 0.4rem 0 0.55rem; }
.release-collection-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.release-collection-head .release-delta-label {
  min-width: 0;
  color: #ddd0c0;
  font-weight: 700;
  letter-spacing: 1px;
}
.release-mini-cards-rack {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.15rem 0;
}

.release-card-anchor {
  position: relative;
  display: inline-flex;
  text-decoration: none;
  flex-shrink: 0;
}
.release-card-anchor .mini-asset-tile {
  width: 100%;
}

/* 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);
}

/* Fallback tag chips when an item has no image (e.g. tagFilter changes) */
.release-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
}
.release-tag-chip.is-added {
  color: #6fc987;
  border-color: rgba(79, 156, 99, 0.4);
  background: rgba(79, 156, 99, 0.1);
}
.release-tag-chip.is-removed {
  color: #e0796a;
  text-decoration: line-through;
  border-color: rgba(182, 80, 63, 0.4);
  background: rgba(182, 80, 63, 0.1);
}

/* the card text with the change marked in place */
.release-inline-diff { margin: 0.1rem 0; }
.release-inline-diff .release-delta-label { margin-right: 0.4rem; min-width: 0; }
.release-inline-diff del { color: #e0796a; text-decoration: line-through; background: rgba(182, 80, 63, 0.12); border-radius: 2px; padding: 0 0.15rem; }
.release-inline-diff ins { color: #6fc987; text-decoration: none; background: rgba(79, 156, 99, 0.15); border-radius: 2px; padding: 0 0.15rem; font-weight: 700; }
.release-tiers { display: inline; margin-left: 0.4rem; }
.release-tiers[open] { display: block; margin: 0.2rem 0 0; }
.release-tier-texts { list-style: none; display: grid; gap: 0.1rem; margin-top: 0.2rem; font-size: 0.85rem; }

/* legacy two-line diff (config rows) */
.release-table { border-collapse: collapse; font-size: 0.85rem; margin: 0.4rem 0 0.6rem; width: 100%; max-width: 720px; }
.release-table th, .release-table td { text-align: left; padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--border-dim); vertical-align: top; }
.release-table thead th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.release-table tbody th { color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.release-table-scroll { overflow-x: auto; max-width: 100%; }
.release-text-diff { display: grid; gap: 0.25rem; margin: 0.4rem 0; font-size: 0.92rem; }
.release-text-line { display: flex; gap: 0.6rem; align-items: baseline; }
.release-text-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); width: 3.2rem; flex-shrink: 0; }
.release-text-before { color: var(--text-dim); }
.release-text-diff del { color: #e0796a; text-decoration: line-through; background: rgba(182, 80, 63, 0.12); border-radius: 2px; padding: 0 0.15rem; }
.release-text-diff ins { color: #6fc987; text-decoration: none; background: rgba(79, 156, 99, 0.15); border-radius: 2px; padding: 0 0.15rem; font-weight: 700; }
.release-text-kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.release-text-diff > .release-text-line > span:last-child { overflow-wrap: anywhere; }

.release-tiers summary { cursor: pointer; color: var(--text-faint); font-size: 0.72rem; font-family: var(--font-mono); display: inline; }
.release-text { color: var(--text-main); font-size: 0.9rem; line-height: 1.45; }
.release-text-muted { color: var(--text-dim); }

.release-note {
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-style: italic;
  border-left: 2px solid var(--border-brass);
  padding-left: 0.6rem;
  font-size: 0.85rem;
}

.release-flavour { color: var(--text-faint); font-size: 0.85rem; margin: -1rem 0 2rem; }
.release-simple-list { list-style: none; display: grid; gap: 0.4rem; }
.release-simple-list li { color: var(--text-dim); }
.release-simple-list strong { color: var(--text-main); }
/* New-policy rows: the portrait + name is the tooltip trigger, styled like plain text */
.release-simple-trigger { color: inherit; text-decoration: none; cursor: pointer; }
.release-simple-trigger:hover strong,
.release-simple-trigger:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.release-simple-trigger:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }

/* New rivals: one row per rival with its final-stage board on the 10-slot mini board */
.release-section-note { color: var(--text-faint); font-size: 0.85rem; margin: -0.5rem 0 1rem; }
.release-new-rivals { list-style: none; display: grid; gap: 0; margin: 0.25rem 0 1.75rem; padding: 0; }
.release-new-rival {
  display: grid;
  grid-template-columns: auto minmax(11rem, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border-dim);
  scroll-margin-top: 120px;
}
.release-new-rival:first-child { border-top: none; }
.release-new-rival .release-portrait-sm { width: 36px; height: 36px; margin-right: 0; }
.release-new-rival-title { display: grid; gap: 0.05rem; min-width: 0; }
.release-new-rival-title .release-row-name { font-size: 1rem; }
.release-new-rival-title .release-row-tags { margin: 0; font-size: 0.75rem; }
.release-new-rival-board { min-width: 0; }
.release-new-rival-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.release-new-rival-stats .release-delta-label { min-width: 0; }
.release-new-rival-stats strong { color: var(--text-main); font-weight: 600; }

@media (max-width: 900px) {
  .release-new-rival { grid-template-columns: auto minmax(0, 1fr); }
  .release-new-rival-board { grid-column: 1 / -1; }
  .release-new-rival-stats { grid-column: 1 / -1; justify-self: start; white-space: normal; }
}

.release-notes-list { list-style: none; display: grid; gap: 0.9rem; }
.release-note-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-main); }
.release-note-body { color: var(--text-dim); margin-top: 0.2rem; line-height: 1.55; }
.release-ref { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-dim); border: 1px solid var(--border-dim); border-radius: 3px; padding: 0.1rem 0.4rem; text-decoration: none; }

.release-footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border-dim); padding-top: 1rem; }

/* 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); }

@media (max-width: 640px) {
  .release-list-link { grid-template-columns: 64px 1fr; }
  .release-row { grid-template-columns: 48px 1fr; }
  .release-portrait { width: 48px; height: 48px; }
  .release-delta-label { min-width: 100%; }
  .release-new-card.footprint-2,
  .release-new-card.footprint-3 { max-width: 100%; }
  .release-table { display: block; overflow-x: auto; }
}

/* ---- Inline card details: phones, and any touch screen with no hover ----------------------
   No hover means no tooltip, so the tooltip that every card already carries is laid out as the
   card's body instead. Must match INLINE_QUERY in tooltip_controller.js, which stops binding
   the popover behaviour under the same condition. */
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  /* The gallery becomes a list */
  .release-new-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0.25rem 0 1.5rem;
  }

  .release-new-card,
  .release-new-card.footprint-2,
  .release-new-card.footprint-3 {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "tile label"
      "details details";
    column-gap: 0.85rem;
    row-gap: 0.5rem;
    align-items: center;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-dim);
    scroll-margin-top: 120px;
  }

  .release-new-card:first-child {
    border-top: none;
    padding-top: 0.35rem;
  }

  /* The anchor wraps both the tile and its tooltip, so it dissolves into the grid: the tile and
     the tooltip become grid items themselves. (This also sidesteps the anchor's inline
     grid-column span, which is for the in-game board layout.) */
  .release-new-card .game-card-anchor {
    display: contents;
  }

  /* The tile keeps its footprint proportions at a row-sized height */
  .release-new-card .game-card {
    grid-area: tile;
    width: 66px;
    height: 72px;
  }
  .release-new-card.footprint-2 .game-card { width: 138px; }
  .release-new-card.footprint-3 .game-card { width: 210px; }

  .release-new-card .game-card:hover,
  .release-new-card .game-card:focus-visible {
    transform: none;
  }

  .release-new-card .card-stat-pill {
    font-size: 0.6rem;
  }

  /* Name and CEO sit beside the tile */
  .release-new-card .release-card-label {
    grid-area: label;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin-top: 0;
    text-align: left;
    min-width: 0;
  }

  .release-new-card .release-card-label .release-row-name {
    justify-content: flex-start;
    font-size: 1.05rem;
  }

  .release-new-card .release-row-tags {
    margin: 0;
  }

  /* The tooltip is the card body: no popover chrome, no header art scrim */
  .release-new-card .tooltip-popover {
    grid-area: details;
    position: static;
    display: block;
    opacity: 1;
    pointer-events: auto;
    filter: none;
    transition: none;
    z-index: auto;
  }

  .release-new-card .game-tooltip {
    width: 100%;
    max-width: none;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
  }

  .release-new-card .tooltip-header {
    background-image: none !important;
    min-height: 0;
    padding: 0;
    border-bottom: none;
  }

  /* Tier, footprint and tag chips flow as one line; the name is already in the label */
  .release-new-card .tooltip-header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
  }

  .release-new-card .tooltip-title-row,
  .release-new-card .tooltip-chips-row {
    display: contents;
  }

  .release-new-card .tooltip-title-left {
    display: none;
  }

  .release-new-card .tooltip-tier-chip,
  .release-new-card .tooltip-chip {
    font-size: 0.64rem;
    padding: 0.12rem 0.45rem;
  }

  .release-new-card .tooltip-body {
    padding: 0.5rem 0 0;
    gap: 0.5rem;
  }

  /* The cooldown dial becomes a small pill above the effect text */
  .release-new-card .tooltip-cadence-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .release-new-card .tooltip-dial {
    width: auto;
    height: auto;
    flex-direction: row;
    gap: 0.25rem;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    box-shadow: none;
  }

  .release-new-card .dial-value {
    font-size: 0.78rem;
  }

  .release-new-card .dial-unit {
    margin-top: 0;
    font-size: 0.6rem;
  }

  .release-new-card .dial-passive {
    font-size: 0.66rem;
  }

  .release-new-card .tooltip-effect-line,
  .release-new-card .tooltip-buzzword-effect-line {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .release-new-card .tooltip-bullet {
    font-size: 0.7rem;
    margin-top: 0.3rem;
  }

  .release-new-card .tooltip-section-label {
    font-size: 0.62rem;
  }

  .release-new-card .tooltip-keyword-entry .keyword-name {
    font-size: 0.82rem;
  }

  .release-new-card .tooltip-keyword-entry .keyword-rule {
    font-size: 0.78rem;
  }

  .release-new-card .tooltip-footer {
    padding-top: 0.2rem;
  }

  .release-new-card .tooltip-sell-pill {
    font-size: 0.74rem;
  }

  /* Mini-card racks (asset pool changes): the tile grows into a named chip, still a link */
  .release-mini-cards-rack .release-card-anchor,
  .release-mini-cards-rack .mini-asset-anchor.footprint-2,
  .release-mini-cards-rack .mini-asset-anchor.footprint-3 {
    width: auto;
    max-width: 100%;
  }

  .release-mini-cards-rack a.mini-asset-tile,
  .release-mini-cards-rack a.mini-policy-tile {
    width: auto;
    height: auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    border-radius: 5px;
    max-width: 100%;
  }

  .release-mini-cards-rack a.mini-asset-tile:hover,
  .release-mini-cards-rack a.mini-policy-tile:hover {
    transform: none;
  }

  .release-mini-cards-rack .mini-asset-art-frame,
  .release-mini-cards-rack .mini-policy-art-frame {
    width: 28px;
    height: 34px;
    flex-shrink: 0;
  }

  .release-mini-cards-rack .mini-card-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .release-mini-cards-rack .mini-asset-tile.is-removed .mini-card-name,
  .release-mini-cards-rack .mini-policy-tile.is-removed .mini-card-name {
    text-decoration: line-through;
    color: var(--text-dim);
  }
}

/* ==========================================================================
   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;
  }
}
