/* EventCap — Canonical Professional UI System
   One final layout authority for all public/product surfaces.
   Data logic, API behavior and business rules are intentionally untouched. */
:root{
  --ec-bg:#050709;
  --ec-bg-soft:#080b0f;
  --ec-surface:#0a0e13;
  --ec-surface-2:#0d1218;
  --ec-surface-3:#11171e;
  --ec-line:#20262e;
  --ec-line-soft:#171c22;
  --ec-text:#f5f7f9;
  --ec-text-2:#c5ccd3;
  --ec-muted:#7f8995;
  --ec-faint:#56616d;
  --ec-accent:#68d8ff;
  --ec-accent-hover:#86e3ff;
  --ec-accent-soft:rgba(104,216,255,.10);
  --ec-button-bg:#0a1117;
  --ec-button-hover:#0d1820;
  --ec-button-border:#1d313c;
  --ec-button-border-hover:#315365;
  --ec-button-text:#c8d3da;
  --ec-button-muted:#74838d;
  --ec-positive:#63d5a4;
  --ec-warning:#e4bc6d;
  --ec-negative:#ff7d8b;
  --ec-radius:12px;
  --ec-radius-sm:8px;
  --ec-header:64px;
  --ec-max:1500px;
  --ec-pad:28px;
  --ec-shadow:0 18px 50px rgba(0,0,0,.22);
  --bg:var(--ec-bg);
  --panel:var(--ec-surface);
  --panel2:var(--ec-surface-2);
  --line:var(--ec-line);
  --line2:#303844;
  --text:var(--ec-text);
  --sub:var(--ec-text-2);
  --muted:var(--ec-muted);
  --green:var(--ec-accent);
  --cyan:var(--ec-accent);
  --blue:var(--ec-accent);
  --red:var(--ec-negative);
  --amber:var(--ec-warning);
  --r:var(--ec-radius);
  --max:var(--ec-max);
  --header:var(--ec-header);
}

/* Base */
*{box-sizing:border-box}
html{background:var(--ec-bg)!important;color:var(--ec-text)!important;color-scheme:dark;scroll-behavior:smooth}
body{
  margin:0!important;
  min-width:320px;
  min-height:100vh;
  overflow-x:hidden;
  background:
    radial-gradient(900px 420px at 72% -180px,rgba(104,216,255,.055),transparent 68%),
    linear-gradient(180deg,#06080b 0,#050709 48%,#050709 100%)!important;
  color:var(--ec-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:14px!important;
  letter-spacing:-.008em;
  -webkit-font-smoothing:antialiased;
}
body:before{display:none!important}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease!important}
button:disabled,button[aria-disabled="true"]{cursor:not-allowed!important;opacity:.46!important;filter:saturate(.55)!important;box-shadow:none!important}
img,svg{max-width:100%}
::selection{background:var(--ec-accent);color:#031015}
:focus-visible{outline:2px solid rgba(104,216,255,.7)!important;outline-offset:2px!important}
.hidden,[hidden]{display:none!important}
.mono{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace!important;font-variant-numeric:tabular-nums}
.positive{color:var(--ec-positive)!important}.negative{color:var(--ec-negative)!important}.warning{color:var(--ec-warning)!important}.muted{color:var(--ec-muted)!important}

/* Global content geometry */
.shell,
.topbar-inner,
.status-inner{
  width:min(100%,var(--ec-max))!important;
  max-width:var(--ec-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--ec-pad)!important;
  padding-right:var(--ec-pad)!important;
}
main{
  width:100%!important;
  padding:0 0 84px!important;
}
#mainContent{min-height:calc(100vh - var(--ec-header))}
#app.shell{padding-top:34px!important}

/* Header: one line, one hierarchy */
.topbar,
.site-header{
  height:var(--ec-header)!important;
  min-height:var(--ec-header)!important;
  position:sticky!important;
  top:0!important;
  z-index:100!important;
  border:0!important;
  border-bottom:1px solid var(--ec-line)!important;
  background:rgba(5,7,9,.90)!important;
  backdrop-filter:blur(18px) saturate(130%)!important;
  box-shadow:none!important;
}
.topbar-inner{
  height:100%!important;
  display:grid!important;
  grid-template-columns:auto auto minmax(260px,1fr) auto!important;
  align-items:center!important;
  gap:26px!important;
}
.topbar .brand{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:max-content!important;
  padding-right:2px!important;
}
.brand-mark,.auth-brand-mark{
  width:30px!important;
  height:30px!important;
  flex:0 0 30px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #2b3138!important;
  border-radius:8px!important;
  background:#eef1f3!important;
  box-shadow:none!important;
}
.brand-mark .eventcap-mark,.auth-brand-mark .eventcap-mark{width:28px!important;height:28px!important}
.brand-copy{display:grid!important;gap:2px!important;line-height:1!important}
.brand-copy strong{font-size:14px!important;font-weight:680!important;letter-spacing:-.028em!important;color:#f5f7f9!important}
.brand-copy span{font-size:7.5px!important;font-weight:620!important;letter-spacing:.145em!important;text-transform:uppercase!important;color:#626d78!important;margin:0!important}

.desktop-product-nav{
  min-width:max-content!important;
  display:flex!important;
  align-items:stretch!important;
  gap:18px!important;
  height:var(--ec-header)!important;
  overflow:visible!important;
}
.desktop-product-nav button{
  position:relative!important;
  height:100%!important;
  min-height:0!important;
  padding:1px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#737e89!important;
  font-size:11.5px!important;
  font-weight:570!important;
  letter-spacing:-.008em!important;
  white-space:nowrap!important;
}
.desktop-product-nav button:hover{color:#e7edf1!important;background:transparent!important}
.desktop-product-nav button.active{color:#f2f5f7!important;background:transparent!important;box-shadow:none!important}
.desktop-product-nav button.active:after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:4px!important;
  height:2px!important;
  border-radius:2px 2px 0 0!important;
  background:var(--ec-accent)!important;
  box-shadow:none!important;
}

.global-search{position:relative!important;width:100%!important;max-width:460px!important;min-width:220px!important;margin-left:auto!important}
.global-search input{
  width:100%!important;
  height:36px!important;
  border:1px solid #262d35!important;
  border-radius:9px!important;
  background:#0a0e13!important;
  color:#e6ebef!important;
  padding:0 38px 0 36px!important;
  outline:0!important;
  box-shadow:none!important;
  font-size:12px!important;
}
.global-search input::placeholder{color:#5f6974!important}
.global-search input:focus{border-color:#44515e!important;box-shadow:0 0 0 3px rgba(104,216,255,.055)!important}
.global-search .search-icon{left:12px!important;top:9px!important;color:#66717d!important;width:16px!important;height:16px!important}
.global-search .shortcut{right:9px!important;top:8px!important;padding:2px 6px!important;border:1px solid #2b323a!important;border-radius:5px!important;background:#11161c!important;color:#626d78!important;font-size:9px!important}
.header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;min-width:max-content!important;margin:0!important}.header-actions .account-chip{min-height:38px!important;height:38px!important;padding:3px 8px 3px 4px!important;border:1px solid var(--ec-button-border)!important;border-radius:9px!important;background:var(--ec-button-bg)!important;color:var(--ec-button-text)!important}.header-actions .account-chip:hover{border-color:var(--ec-button-border-hover)!important;background:var(--ec-button-hover)!important;color:var(--ec-text)!important;box-shadow:0 0 0 1px rgba(104,216,255,.035)!important}.header-actions .account-avatar.small{width:30px!important;height:30px!important;border-radius:7px!important;font-size:10px!important}.header-actions .account-chip-copy b{font-size:11px!important;font-weight:620!important}.header-actions .account-caret{font-size:11px!important;color:var(--ec-button-muted)!important}
.live-dot{width:6px!important;height:6px!important;background:var(--ec-positive)!important;box-shadow:0 0 0 3px rgba(99,213,164,.08)!important}

/* Buttons and form controls */
.icon-btn,.ghost-btn,.back-btn,.google-btn,
.catalog-action,.compact-btn,.chart-refresh-btn,.full-btn,
.account-menu-row,.pro-brief-btn,.exec-preset,.pro-scenario,
.momentum-alert-create,.paper-remove,.range-btn,.platform-open,
.conn-sync,.conn-open,.conn-rotate,.review-save,.review-exact,
.cross-show-more,.momentum-advanced-toggle,.momentum-brief-toggle,
.paper-from-watch,.watch-archive,.paper-archive,.portfolio-refresh-btn,
.closed-event-action-164,.highlight-snapshot-action-172,
.market-filter-primary button,.eligible-filters button,.filter-more>summary,
.head-actions>button,.market-hub-actions>button{
  min-height:36px!important;
  height:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:8px 12px!important;
  border:1px solid var(--ec-button-border)!important;
  border-radius:8px!important;
  background:var(--ec-button-bg)!important;
  color:var(--ec-button-text)!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
.icon-btn:hover,.ghost-btn:hover,.back-btn:hover,.google-btn:hover,
.catalog-action:hover,.compact-btn:hover,.chart-refresh-btn:hover,.full-btn:hover,
.account-menu-row:hover,.pro-brief-btn:hover,.exec-preset:hover,.pro-scenario:hover,
.momentum-alert-create:hover,.range-btn:hover,.platform-open:hover,
.conn-sync:hover,.conn-open:hover,.conn-rotate:hover,.review-save:hover,.review-exact:hover,
.cross-show-more:hover,.momentum-advanced-toggle:hover,.momentum-brief-toggle:hover,
.paper-from-watch:hover,.watch-archive:hover,.paper-archive:hover,.portfolio-refresh-btn:hover,
.closed-event-action-164:hover,.highlight-snapshot-action-172:hover,
.market-filter-primary button:hover,.eligible-filters button:hover,.filter-more>summary:hover,
.head-actions>button:hover,.market-hub-actions>button:hover{
  border-color:var(--ec-button-border-hover)!important;
  background:var(--ec-button-hover)!important;
  color:var(--ec-text)!important;
  box-shadow:0 0 0 1px rgba(104,216,255,.035)!important;
}
.primary-btn,.catalog-action.primary,.exec-run,.upgrade-cta,.auth-card .primary{
  border-color:var(--ec-accent)!important;
  background:var(--ec-accent)!important;
  color:#031016!important;
  font-weight:680!important;
  box-shadow:none!important;
}
.primary-btn:hover,.catalog-action.primary:hover,.exec-run:hover,.upgrade-cta:hover,.auth-card .primary:hover{
  border-color:var(--ec-accent-hover)!important;
  background:var(--ec-accent-hover)!important;
  color:#031016!important;
  transform:none!important;
  box-shadow:0 0 0 3px rgba(104,216,255,.07)!important;
}
.text-btn,.auth-link,.signout-link{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.text-btn,.auth-link{color:var(--ec-accent)!important}.text-btn:hover,.auth-link:hover{color:var(--ec-accent-hover)!important}
.danger-btn,.conn-delete,.review-revoke,.watch-remove{
  border-color:#50313a!important;
  background:#170d11!important;
  color:#ff9aa6!important;
}
.danger-btn:hover,.conn-delete:hover,.review-revoke:hover,.watch-remove:hover{
  border-color:#75434f!important;
  background:#211116!important;
  color:#ffb0ba!important;
}
.field,.select,input.field,select.select,textarea.field{
  min-width:0!important;
  height:38px!important;
  border:1px solid #29313a!important;
  border-radius:8px!important;
  background:#090d12!important;
  color:#e6ebef!important;
  padding:0 11px!important;
  outline:0!important;
  box-shadow:none!important;
  font-size:11.5px!important;
}
textarea.field{height:auto!important;min-height:100px!important;padding:11px!important}
.field::placeholder{color:#59636e!important}
.field:focus,.select:focus{border-color:#4c5966!important;box-shadow:0 0 0 3px rgba(104,216,255,.05)!important}
select,select option,select optgroup{background:#0a0f14!important;color:#e4e9ed!important}

/* Mobile drawer is mobile only; never a desktop layout rail */
.nav-overlay{position:fixed!important;inset:0!important;z-index:119!important;background:rgba(0,0,0,.62)!important;backdrop-filter:blur(3px)!important}
.nav-wrap{display:none!important}
.mobile-menu-btn{display:none!important}
.mobile-nav{display:none!important}

/* Secondary workspace navigation */
.workspace-tabs187{
  width:min(100%,var(--ec-max))!important;
  max-width:var(--ec-max)!important;
  margin:0 auto!important;
  padding:14px var(--ec-pad) 0!important;
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  border:0!important;
}
.workspace-tabs187 a{
  min-height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#697580!important;
  font-size:10.5px!important;
  font-weight:610!important;
  letter-spacing:-.006em!important;
}
.workspace-tabs187 a:hover{color:#edf4f7!important;background:var(--ec-button-hover)!important;border-color:var(--ec-button-border-hover)!important}
.workspace-tabs187 a.active{color:#eafaff!important;background:var(--ec-accent-soft)!important;border-color:rgba(104,216,255,.22)!important}
.workspace-tabs187.venue-switcher{
  width:max-content!important;
  max-width:calc(100% - (var(--ec-pad) * 2))!important;
  margin:14px max(var(--ec-pad),calc((100vw - var(--ec-max))/2 + var(--ec-pad))) 0!important;
  padding:3px!important;
  gap:2px!important;
  border:1px solid #202a32!important;
  border-radius:9px!important;
  background:#080c10!important;
}
.workspace-tabs187.venue-switcher a{min-width:84px!important;min-height:29px!important;padding:0 13px!important;border:0!important;border-radius:6px!important;background:transparent!important}
.workspace-tabs187.venue-switcher a.active{color:#dff8ff!important;background:rgba(104,216,255,.09)!important;box-shadow:inset 0 0 0 1px rgba(104,216,255,.15)!important}

/* Page hierarchy */
.page-wrap,.eligible187,.market-hub-page,.edge-vault-page-166{min-width:0!important;width:100%!important}
.page-head,.institutional-page-head,.eligible-page-head{
  width:100%!important;
  margin:0 0 24px!important;
  padding:0!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:32px!important;
}
.page-head>div:first-child{min-width:0!important;max-width:980px!important}
.eyebrow{
  margin:0 0 9px!important;
  color:#7b8792!important;
  font-size:9px!important;
  font-weight:660!important;
  letter-spacing:.14em!important;
  line-height:1!important;
  text-transform:uppercase!important;
}
.page-head h1{
  margin:0!important;
  color:#f5f7f9!important;
  font-size:34px!important;
  line-height:1.06!important;
  font-weight:560!important;
  letter-spacing:-.046em!important;
}
.page-head p{
  max-width:860px!important;
  margin:10px 0 0!important;
  color:#7b8691!important;
  font-size:12px!important;
  line-height:1.62!important;
}
.head-actions,.market-hub-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}

/* KPI system */
.kpi-grid,.institutional-kpis,.top100-kpis-128,.portfolio-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0 0 16px!important;
}
.kpi,.institutional-kpis .kpi,.top100-kpis-128 .kpi{
  min-height:104px!important;
  padding:16px!important;
  border:1px solid var(--ec-line)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#0b0f14,#090d12)!important;
  box-shadow:none!important;
}
.kpi-label{
  display:flex!important;align-items:center!important;gap:6px!important;
  color:#737e89!important;font-size:9px!important;font-weight:650!important;letter-spacing:.105em!important;text-transform:uppercase!important
}
.kpi-value{margin:10px 0 0!important;color:#f2f5f7!important;font-size:25px!important;line-height:1!important;font-weight:580!important;letter-spacing:-.035em!important}
.kpi-note{margin-top:8px!important;color:#65717c!important;font-size:10px!important;line-height:1.4!important}

/* Panels */
.panel,.market-catalog-panel,.institutional-market-panel{
  min-width:0!important;
  border:1px solid var(--ec-line)!important;
  border-radius:12px!important;
  background:#090d12!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.panel-head,.institutional-screener-head{
  min-height:62px!important;
  padding:13px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  border:0!important;
  border-bottom:1px solid var(--ec-line)!important;
  background:#0a0f14!important;
}
.institutional-screener-head{display:grid!important;grid-template-columns:minmax(180px,240px) minmax(0,1fr)!important;align-items:center!important;gap:20px!important}
.institutional-screener-head>div:first-child{min-width:0!important}
.panel-title,.section-title{color:#e9edf0!important;font-size:13px!important;font-weight:620!important;letter-spacing:-.015em!important}
.panel-sub{margin-top:4px!important;color:#697580!important;font-size:10.5px!important;line-height:1.45!important}
.section-body{padding:16px!important}

/* Trust banners become metadata, not giant visual blocks */
.catalog-truth-banner,.institutional-truth,.decision-brief-banner{
  min-height:0!important;
  margin:0 0 12px!important;
  padding:9px 11px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid #1d252d!important;
  border-radius:8px!important;
  background:#080c11!important;
  box-shadow:none!important;
}
.catalog-truth-banner b,.institutional-truth b{color:#98a4af!important;font-size:10px!important;font-weight:650!important;letter-spacing:.09em!important;text-transform:uppercase!important;white-space:nowrap!important}
.catalog-truth-banner span,.institutional-truth span{color:#738691!important;font-size:11px!important;line-height:1.4!important}

/* Segmented controls */
.segmented,.active-ranking-tabs,.venue-state-tabs,.compare-mode-tabs,.detail-tabs,.subtabs,.portfolio-tabs{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  padding:3px!important;
  border:1px solid #272f37!important;
  border-radius:8px!important;
  background:#080c11!important;
  box-shadow:none!important;
}
.segmented button,.active-ranking-tabs button,.active-ranking-tabs a,.venue-state-tabs button,.compare-mode-tabs button,.compare-mode-tabs a,.market-hub-switch button,.detail-tabs button,.subtabs button,.portfolio-tabs button{
  min-height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:#727e89!important;
  font-size:10px!important;
  font-weight:610!important;
  white-space:nowrap!important;
}
.segmented button:hover,.active-ranking-tabs button:hover,.active-ranking-tabs a:hover,.venue-state-tabs button:hover,.compare-mode-tabs button:hover,.compare-mode-tabs a:hover,.market-hub-switch button:hover,.detail-tabs button:hover,.subtabs button:hover,.portfolio-tabs button:hover{
  background:var(--ec-button-hover)!important;
  color:#e8f0f4!important;
}
.segmented button.active,.active-ranking-tabs .active,.venue-state-tabs button.active,.compare-mode-tabs button.active,.compare-mode-tabs a.active,.market-hub-switch button.active,.detail-tabs button.active,.subtabs button.active,.portfolio-tabs button.active{
  background:var(--ec-accent-soft)!important;
  color:#eafaff!important;
  box-shadow:inset 0 0 0 1px rgba(104,216,255,.20)!important;
}

/* Canonical table system */
.table-scroll,.market-catalog-scroll{
  width:100%!important;
  max-width:100%!important;
  overflow:auto!important;
  border:0!important;
  border-radius:0!important;
  scrollbar-gutter:stable!important;
  background:#090d12!important;
}
table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  color:#c7cdd3!important;
  font-variant-numeric:tabular-nums!important;
}
thead th{
  position:sticky!important;
  top:0!important;
  z-index:3!important;
  height:38px!important;
  padding:0 12px!important;
  border:0!important;
  border-bottom:1px solid #202832!important;
  background:#0c1117!important;
  color:#66727e!important;
  text-align:left!important;
  font-size:9px!important;
  font-weight:650!important;
  line-height:1.15!important;
  letter-spacing:.095em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
tbody tr{background:#090d12!important;transition:background .12s ease!important}
tbody tr:hover{background:#0c1218!important}
tbody td{
  height:58px!important;
  padding:10px 12px!important;
  border:0!important;
  border-bottom:1px solid #171d23!important;
  color:#bfc7ce!important;
  font-size:11.5px!important;
  line-height:1.4!important;
  vertical-align:middle!important;
}
tbody tr:last-child td{border-bottom:0!important}
.market-name,.eligible-title a,.closed-event-title-button-164{
  color:#eef2f4!important;
  font-size:12.5px!important;
  font-weight:590!important;
  line-height:1.38!important;
  letter-spacing:-.013em!important;
}
.market-meta,.cell-sub,.source-meta-119{color:#738691!important;font-size:10.5px!important;line-height:1.35!important}
.pill,.market-state-pill,.source-health-141,.closed-integrity-chip,.archive-access-pill{
  min-height:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:3px 7px!important;
  border:1px solid #2a323b!important;
  border-radius:999px!important;
  background:#0d1218!important;
  color:#8b96a0!important;
  font-size:8px!important;
  font-weight:680!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}

/* Polymarket eligible screen: data-first institutional layout */
.eligible187{padding-bottom:6px!important}
.eligible187 .eligible-page-head{margin-bottom:16px!important}
.eligible187 .eligible-page-head h1{font-size:36px!important;font-weight:560!important}
.eligible-toolbar{
  width:100%!important;
  min-height:44px!important;
  margin:0 0 8px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  border:0!important;
}
.eligible-toolbar .active-ranking-tabs{flex:none!important}
.eligible-threshold{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:0 9px!important;
  border:1px solid #222a32!important;
  border-radius:999px!important;
  background:#090e13!important;
  color:#697580!important;
  font-size:9.5px!important;
  font-weight:560!important;
  white-space:nowrap!important;
}
.eligible-health{
  min-height:30px!important;
  margin:0 0 12px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  color:#65717d!important;
  font-size:9.5px!important;
  line-height:1!important;
}
.eligible-health b{font-size:9px!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.eligible-statusline span{position:relative!important}
.eligible-statusline span+span:before{content:""!important;position:absolute!important;left:-9px!important;top:50%!important;width:2px!important;height:2px!important;border-radius:50%!important;background:#3d4650!important}
.eligible-filters{
  min-height:58px!important;
  padding:10px!important;
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) 128px 180px 145px!important;
  align-items:center!important;
  gap:8px!important;
  background:#0a0f14!important;
}
.eligible-filters .field,.eligible-filters .select{width:100%!important;height:36px!important}
.eligible-table{min-width:1120px!important;table-layout:fixed!important}
.eligible-table td,.eligible-table th{overflow:hidden!important;text-overflow:ellipsis!important}
.eligible-table .eligible-title{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.eligible-table .eligible-title a{display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
.eligible-table col.rank{width:52px!important}.eligible-table col.title{width:34%!important}.eligible-table col.opened{width:142px!important}.eligible-table col.age{width:72px!important}.eligible-table col.money{width:120px!important}.eligible-table col.count{width:82px!important}.eligible-table col.closes{width:145px!important}.eligible-table col.action{width:94px!important}.eligible-table col.price{width:82px!important}.eligible-table col.move{width:92px!important}.eligible-table col.spread{width:96px!important}
.eligible-table td:last-child a{color:#9adfff!important;font-size:10.5px!important;font-weight:600!important}
.market-load-more{
  min-height:48px!important;
  padding:8px 11px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  border-top:1px solid #1b2229!important;
  color:#66727d!important;
  font-size:9.5px!important;
  background:#090d12!important;
}
.eligible-method{
  margin:10px 0 0!important;
  padding:0!important;
  border:0!important;
  color:#5e6974!important;
  font-size:9.5px!important;
  line-height:1.55!important;
}
.eligible-method summary{display:inline-flex!important;align-items:center!important;min-height:28px!important;color:#77828d!important;cursor:pointer!important;font-weight:560!important}
.eligible-method p{max-width:920px!important;margin:8px 0 0!important}
.eligible-method div{margin-top:5px!important;color:#535e69!important}

/* Event/market terminal hierarchy */
.market-terminal-156 .institutional-page-head{margin-bottom:20px!important}
.market-terminal-156 .institutional-page-head p{max-width:900px!important;color:#74808b!important;font-size:11.5px!important;line-height:1.55!important}
.market-terminal-156 .top100-kpis-128{margin-bottom:14px!important}
.market-filter-primary,.event-contract-filters{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(240px,1.65fr) repeat(3,minmax(112px,.68fr)) minmax(92px,auto)!important;
  gap:8px!important;
  align-items:center!important;
}
.market-filter-primary>*{min-width:0!important}
.filter-more{position:relative!important}
.filter-more-popover{border:1px solid #29313a!important;border-radius:10px!important;background:#0b1015!important;box-shadow:var(--ec-shadow)!important}
.institutional-market-table{min-width:0!important;width:100%!important;table-layout:fixed!important}
.event-ranking-table,.event-contract-table{min-width:0!important;width:100%!important;table-layout:fixed!important}
.institutional-market-table .market-cell{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-width:0!important}
.institutional-market-table .market-cell.no-image{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
.institutional-market-table .market-img{width:36px!important;height:36px!important;border-radius:9px!important;border:1px solid #28313a!important;background:#111820!important}
.institutional-market-table .market-primary-cell{min-width:0!important;overflow:hidden!important}
.institutional-market-table .market-name{white-space:normal!important;overflow-wrap:anywhere!important}
.event-source-action-grid,.market-open-cell.live-actions{display:flex!important;gap:6px!important;align-items:center!important}
.event-source-action-grid .catalog-action,.market-open-cell .catalog-action{min-height:32px!important;padding:7px 9px!important;font-size:9.5px!important}

/* Detail pages */
.detail-breadcrumb{margin:0 0 14px!important;color:#66717d!important;font-size:10px!important}
.detail-hero{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(320px,.72fr)!important;gap:12px!important;margin-bottom:12px!important}
.hero-main,.decision-card,.decision-terminal-card,.cross-opportunity-card,.signal-card,.connection-card,.api-key-card{
  border:1px solid var(--ec-line)!important;border-radius:12px!important;background:#090d12!important;box-shadow:none!important
}
.hero-main{padding:20px!important}
.detail-tabs{position:sticky!important;top:calc(var(--ec-header) + 8px)!important;z-index:30!important;margin:0 0 12px!important;max-width:100%!important;overflow:auto!important;scrollbar-width:none!important;background:rgba(7,10,13,.94)!important;backdrop-filter:blur(10px)!important}
.detail-tabs::-webkit-scrollbar{display:none!important}
.chart-wrap,.chart-section-body,.book,.book-grid{border-color:var(--ec-line)!important;background:#080c11!important}

/* Pro/portfolio/alerts grids */
.pro-card-grid,.signal-grid,.workflow-grid,.portfolio-overview-grid,.api-key-grid,.connection-grid,.cross-card-list,.cross176-radar-grid{
  gap:10px!important;
}
.portfolio-tabs{margin:0 0 12px!important}
.portfolio-overview-grid{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)!important}
.portfolio-layer-list{gap:8px!important}
.portfolio-layer-list button{border:1px solid var(--ec-line)!important;border-radius:9px!important;background:#0a0f14!important;padding:13px!important}

/* Empty/error/loading */
.empty,.explicit-empty,.portfolio-empty{
  min-height:150px!important;padding:28px 20px!important;color:#6f7a85!important;background:#090d12!important;font-size:11px!important;line-height:1.55!important
}
.error,.truth-state.source-error{
  margin:0!important;padding:14px!important;border:1px solid #4a2d33!important;border-radius:9px!important;background:#160e11!important;color:#ff9da8!important;font-size:11px!important;line-height:1.5!important
}
.skeleton{background:#111820!important;border-radius:6px!important}
.skeleton:after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.045),transparent)!important}

/* Footer */
.site-footer-unified,.site-footer{
  width:min(calc(100% - (var(--ec-pad) * 2)),var(--ec-max))!important;
  max-width:var(--ec-max)!important;
  margin:22px auto 0!important;
  padding:20px 0 24px!important;
  display:grid!important;
  grid-template-columns:minmax(220px,1.05fr) minmax(360px,1.65fr) minmax(250px,.9fr)!important;
  align-items:center!important;
  gap:28px!important;
  border:0!important;
  border-top:1px solid var(--ec-line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.footer-brand{min-width:0!important;display:grid!important;grid-template-columns:auto auto!important;align-items:center!important;justify-content:start!important;gap:7px 10px!important}.footer-brand .brand{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}.footer-brand .brand-mark{width:26px!important;height:26px!important;flex-basis:26px!important}.footer-brand p{grid-column:1/-1!important;max-width:330px!important;margin:0!important;color:#66727c!important;font-size:10px!important;line-height:1.45!important}.footer-brand .social-links{margin:0!important}
.footer-links{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px 16px!important;flex-wrap:wrap!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.footer-links a{color:#707b86!important;font-size:9.5px!important}.footer-links a:hover{color:#d4d9de!important}
.footer-legal{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#626e78!important;font-size:9.5px!important;line-height:1.5!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere!important}
.footer-build{margin-top:4px!important;color:#5f6b75!important;font-size:9px!important;letter-spacing:.04em!important;text-transform:none!important}.footer-build b{color:inherit!important;font-weight:600!important}
.social-links{display:flex!important;gap:6px!important}.social-icon{width:26px!important;height:26px!important;display:grid!important;place-items:center!important;border:1px solid #252d35!important;border-radius:7px!important;background:#0a0f14!important;color:#7e8993!important}.social-icon svg{width:12px!important;height:12px!important;fill:currentColor!important}
.back-to-top{right:18px!important;bottom:18px!important;width:36px!important;height:36px!important;border:1px solid #29313a!important;border-radius:9px!important;background:#0d1218!important;color:#aeb7bf!important;box-shadow:var(--ec-shadow)!important}

/* Landing page: preserve content, enforce consistent shell and hierarchy */
.site-header .nav-shell{
  width:min(100%,var(--ec-max))!important;max-width:var(--ec-max)!important;height:100%!important;margin:0 auto!important;padding:0 var(--ec-pad)!important;display:flex!important;align-items:center!important;gap:24px!important
}
.site-header .desktop-nav{display:flex!important;align-items:center!important;gap:4px!important;margin-left:12px!important}
.site-header .nav-link{padding:8px 10px!important;border-radius:7px!important;color:#7d8792!important;font-size:11px!important;font-weight:560!important}.site-header .nav-link:hover{color:#e1e5e8!important;background:#0d1218!important}
.site-header .nav-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:7px!important}
.landing-dashboard-entry,.landing-live-status{font-size:10px!important}
.hero{padding-top:88px!important}.hero-copy{max-width:760px!important}.hero h1{letter-spacing:-.055em!important}.section{padding-top:92px!important;padding-bottom:92px!important}.section-heading h2,.pricing-heading h2{letter-spacing:-.045em!important}
.glass-panel,.benefit-card,.workflow-card,.signal-card,.infra-card,.price-card{border-color:var(--ec-line)!important;box-shadow:none!important}

/* Docs / whitepaper */
.docs-topbar,.wp-topbar{height:var(--ec-header)!important;border-bottom:1px solid var(--ec-line)!important;background:rgba(5,7,9,.93)!important;backdrop-filter:blur(16px)!important}
.docs-topbar-inner,.wp-topbar-inner{height:100%!important;max-width:var(--ec-max)!important;margin:0 auto!important;padding:0 var(--ec-pad)!important}
.docs-shell,.wp-shell{max-width:var(--ec-max)!important;margin:0 auto!important;grid-template-columns:230px minmax(0,1fr) 210px!important;gap:42px!important;padding:38px var(--ec-pad) 72px!important}
.docs-sidebar,.wp-sidebar{border-right:1px solid var(--ec-line-soft)!important}.docs-outline,.wp-outline{border-left:1px solid var(--ec-line-soft)!important}.docs-article,.wp-article{max-width:820px!important}.docs-article h1,.wp-article h1{font-weight:570!important;letter-spacing:-.045em!important}.docs-article h2,.wp-article h2{margin-top:40px!important;border-top:1px solid var(--ec-line-soft)!important;padding-top:28px!important}

/* Legal */
.legal-main{width:min(100%,880px)!important;max-width:880px!important;margin:0 auto!important;padding:72px 28px 84px!important;color:#b9c1c8!important}
.legal-main h1{margin:10px 0 8px!important;color:#f3f6f8!important;font-size:42px!important;font-weight:560!important;letter-spacing:-.05em!important}.legal-kicker{color:#77838e!important;font-size:9px!important;font-weight:650!important;letter-spacing:.14em!important;text-transform:uppercase!important}.legal-updated{color:#64707b!important;font-size:10px!important}.legal-intro{margin:28px 0!important;padding:18px 20px!important;border:1px solid var(--ec-line)!important;border-radius:10px!important;background:#090d12!important;color:#9da7b0!important}.legal-section{padding:26px 0!important;border-top:1px solid var(--ec-line-soft)!important}.legal-section h2{color:#e8edf0!important;font-size:17px!important;font-weight:590!important}.legal-section p{color:#8e99a3!important;font-size:12px!important;line-height:1.78!important}.legal-section a{color:#9ce2ff!important}

/* Auth */
.auth-shell{min-height:100vh!important;display:grid!important;place-items:center!important;align-content:center!important;gap:22px!important;padding:48px 20px!important;background:radial-gradient(700px 320px at 50% 0,rgba(104,216,255,.05),transparent 70%)!important}
.auth-shell>.brand{display:flex!important;align-items:center!important;gap:10px!important}.auth-shell>.brand>span:last-child{display:grid!important;gap:2px!important}.auth-shell>.brand b{font-size:14px!important}.auth-shell>.brand small{font-size:8px!important;color:#697580!important;letter-spacing:.12em!important;text-transform:uppercase!important}
.auth-card{width:min(100%,420px)!important;padding:8px 28px 28px!important;border:1px solid var(--ec-line)!important;border-radius:14px!important;background:#090d12!important;box-shadow:var(--ec-shadow)!important}.auth-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;margin:0 -20px 24px!important;padding:6px!important;border-bottom:1px solid var(--ec-line)!important}.auth-tabs button{height:34px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#77828d!important;font-size:10.5px!important;font-weight:600!important}.auth-tabs button:hover{background:var(--ec-button-hover)!important;color:#e8f0f4!important}.auth-tabs button.active{background:var(--ec-accent-soft)!important;color:#eafaff!important;box-shadow:inset 0 0 0 1px rgba(104,216,255,.18)!important}.auth-card h1{font-size:25px!important;font-weight:570!important;letter-spacing:-.04em!important}.auth-card p{color:#727d87!important;font-size:11px!important}.auth-card label{display:grid!important;gap:7px!important;margin-top:14px!important;color:#929ca5!important;font-size:10px!important;font-weight:600!important}.auth-card input{height:40px!important;border:1px solid #29313a!important;border-radius:8px!important;background:#070b0f!important;color:#eef1f3!important;padding:0 11px!important}.auth-card .primary{width:100%!important;height:40px!important;margin-top:18px!important;border:1px solid var(--ec-accent)!important;border-radius:8px!important;background:var(--ec-accent)!important;color:#031016!important;font-weight:680!important}.auth-card .link{margin-top:12px!important;border:0!important;background:transparent!important;color:#8a96a0!important;font-size:10px!important}.auth-foot{color:#56616c!important;font-size:9px!important}

/* Desktop tightening */
@media (max-width:1240px){
  :root{--ec-pad:20px}
  .topbar-inner{grid-template-columns:auto auto minmax(220px,1fr) auto!important;gap:18px!important}
  .desktop-product-nav button{padding:0!important;font-size:11px!important}
  .brand-copy span{display:none!important}
  .eligible-filters{grid-template-columns:minmax(230px,1fr) 120px 155px 135px!important}
  .docs-shell,.wp-shell{grid-template-columns:210px minmax(0,1fr)!important}.docs-outline,.wp-outline{display:none!important}
}

/* Tablet/mobile: native cards and controllable navigation */
@media (max-width:980px){
  :root{--ec-header:60px;--ec-pad:16px}
  .site-header .desktop-nav{display:none!important}
  .site-header .nav-actions>.nav-link{display:none!important}
  .site-header .menu-button{display:block!important;flex:0 0 40px!important;width:40px!important;height:40px!important;position:relative!important;border:1px solid #252f37!important;border-radius:10px!important;background:#0a1015!important;color:#e8eef2!important;cursor:pointer!important}
  .site-header .menu-button span{display:block!important;position:absolute!important;left:11px!important;right:11px!important;height:1px!important;background:currentColor!important}
  .site-header .menu-button span:first-child{top:16px!important}.site-header .menu-button span:last-child{top:23px!important}
  .site-header .menu-button[aria-expanded="true"] span:first-child{top:20px!important;transform:rotate(45deg)!important}.site-header .menu-button[aria-expanded="true"] span:last-child{top:20px!important;transform:rotate(-45deg)!important}
  .site-header .mobile-menu:not([hidden]){display:grid!important;z-index:130!important;grid-template-columns:1fr!important;gap:2px!important;top:66px!important;left:12px!important;right:12px!important;max-height:calc(100dvh - 82px)!important;overflow:auto!important;padding:9px!important;border:1px solid #252f37!important;border-radius:12px!important;background:rgba(7,12,17,.98)!important;box-shadow:0 22px 56px rgba(0,0,0,.48)!important;backdrop-filter:blur(18px)!important}
  .site-header .mobile-menu a{display:flex!important;align-items:center!important;min-height:42px!important;padding:0 12px!important;border-radius:8px!important;color:#aab6bf!important;font-size:12px!important;text-decoration:none!important}
  .site-header .mobile-menu a:hover,.site-header .mobile-menu a:focus-visible{background:#111920!important;color:#f2f6f8!important}
  .site-header .nav-shell{min-width:0!important;gap:10px!important}.site-header .brand{min-width:0!important;flex:0 1 auto!important}.site-header .nav-actions{margin-left:auto!important;flex:0 0 auto!important}
  .topbar-inner{display:flex!important;gap:9px!important;padding-left:12px!important;padding-right:12px!important}
  .mobile-menu-btn{display:grid!important;place-items:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;padding:0!important}
  .topbar .brand{min-width:0!important}.brand-copy span{display:none!important}
  .desktop-product-nav{display:none!important}
  .global-search{margin-left:auto!important;max-width:360px!important}
  
  .nav-wrap{
    display:flex!important;position:fixed!important;z-index:120!important;inset:0 auto 0 0!important;width:min(86vw,320px)!important;height:100dvh!important;padding:14px!important;flex-direction:column!important;border:0!important;border-right:1px solid #242c34!important;background:#080c11!important;transform:translateX(-102%)!important;transition:transform .2s ease!important;overflow:auto!important
  }
  .nav-open .nav-wrap,.nav-wrap.open,.nav-wrap.is-open{transform:translateX(0)!important}
  .sidebar-head{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:44px!important;padding:0 4px 12px!important;border-bottom:1px solid var(--ec-line)!important;color:#eef2f4!important;font-size:13px!important;font-weight:650!important}
  .sidebar-close{width:34px!important;height:34px!important;border:1px solid #29313a!important;border-radius:8px!important;background:#0e1319!important;color:#aeb7bf!important;font-size:20px!important}
  .drawer-nav{display:grid!important;gap:3px!important;padding:12px 0!important}.drawer-nav button,.drawer-nav a{min-height:42px!important;padding:0 11px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#89949e!important;text-align:left!important;font-size:12px!important}.drawer-nav button:hover,.drawer-nav a:hover{border-color:var(--ec-button-border-hover)!important;background:var(--ec-button-hover)!important;color:#edf4f7!important}.drawer-nav .active{border-color:rgba(104,216,255,.20)!important;background:var(--ec-accent-soft)!important;color:#eafaff!important}
  .sidebar-foot{margin-top:auto!important;padding:14px 4px 2px!important;border-top:1px solid var(--ec-line)!important;color:#616c77!important;font-size:9px!important;line-height:1.5!important}
  #app.shell{padding-top:24px!important}
  .page-head,.institutional-page-head{align-items:flex-start!important;flex-direction:column!important;gap:14px!important;margin-bottom:18px!important}.page-head h1{font-size:30px!important}.head-actions,.market-hub-actions{width:100%!important;justify-content:flex-start!important}
  .kpi-grid,.institutional-kpis,.top100-kpis-128,.portfolio-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .institutional-screener-head{grid-template-columns:1fr!important;align-items:start!important}
  .eligible-filters,.market-filter-primary{grid-template-columns:1fr 1fr!important}.eligible-filters .field,.market-filter-primary .field{grid-column:1/-1!important}
  .detail-hero,.portfolio-overview-grid{grid-template-columns:1fr!important}
  .docs-shell,.wp-shell{grid-template-columns:1fr!important;padding-top:24px!important}.docs-sidebar,.wp-sidebar{display:none!important}
  .site-footer-unified,.site-footer{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;padding:18px 0 22px!important;overflow:hidden!important}.footer-brand{grid-template-columns:auto auto!important;max-width:100%!important}.footer-links{justify-content:flex-start!important;gap:8px 14px!important;max-width:100%!important}.footer-legal{text-align:left!important;white-space:normal!important;max-width:100%!important}
}

@media (max-width:700px){
  :root{--ec-pad:12px}
  .site-header .nav-actions>.button-small{display:none!important}
  .topbar .brand-copy{display:none!important}.global-search{display:block!important;flex:1!important;max-width:none!important}.global-search .shortcut{display:none!important}.header-actions #accountBtn{min-width:58px!important;padding-inline:9px!important}
  .workspace-tabs187{padding:10px 12px 0!important;overflow:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important}.workspace-tabs187.venue-switcher{margin:10px 12px 0!important;padding:3px!important;max-width:calc(100% - 24px)!important}.workspace-tabs187::-webkit-scrollbar{display:none!important}
  #app.shell{padding-left:12px!important;padding-right:12px!important;padding-top:20px!important}
  .page-head h1,.eligible187 .eligible-page-head h1{font-size:28px!important}.page-head p{font-size:11px!important}
  .eligible-toolbar{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}.eligible-threshold{white-space:normal!important}
  .eligible-health{gap:7px 14px!important;flex-wrap:wrap!important;line-height:1.35!important}
  .eligible-filters,.market-filter-primary{grid-template-columns:1fr!important}.eligible-filters>*{grid-column:1!important}.market-filter-primary>*{grid-column:1!important}
  .panel-head,.institutional-screener-head{align-items:flex-start!important;flex-direction:column!important}
  .kpi,.institutional-kpis .kpi,.top100-kpis-128 .kpi{min-height:92px!important;padding:14px!important}.kpi-value{font-size:22px!important}
  .active-ranking-tabs,.venue-state-tabs{width:100%!important}.active-ranking-tabs>* , .venue-state-tabs>*{flex:1!important}

  /* eligible ranking tables become readable stacked records */
  .eligible187 .table-scroll{overflow:visible!important;background:transparent!important}
  .eligible-table{display:block!important;min-width:0!important;width:100%!important}.eligible-table colgroup,.eligible-table thead{display:none!important}.eligible-table tbody{display:grid!important;gap:8px!important;padding:8px!important}.eligible-table tr{display:grid!important;grid-template-columns:52px repeat(2,minmax(0,1fr))!important;gap:0 10px!important;padding:12px!important;border:1px solid #202831!important;border-radius:10px!important;background:#090e13!important}.eligible-table td{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;height:auto!important;min-height:46px!important;padding:8px 0!important;border:0!important;border-top:1px solid #171e25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:11px!important}.eligible-table td:before{display:block!important;margin-bottom:4px!important;color:#58636e!important;font-size:7.5px!important;font-weight:680!important;letter-spacing:.09em!important;text-transform:uppercase!important}.eligible-table td:nth-child(1){grid-column:1!important;grid-row:1!important;border-top:0!important;justify-content:flex-start!important;color:#65717c!important}.eligible-table td:nth-child(2){grid-column:2/4!important;grid-row:1!important;border-top:0!important;min-height:0!important;justify-content:flex-start!important}.eligible-table-events td:nth-child(3):before{content:"Opened"}.eligible-table-events td:nth-child(4):before{content:"Age"}.eligible-table-events td:nth-child(5):before{content:"24h volume"}.eligible-table-events td:nth-child(6):before{content:"Liquidity"}.eligible-table-events td:nth-child(7):before{content:"Live"}.eligible-table-events td:nth-child(8):before{content:"Qualified"}.eligible-table-events td:nth-child(9):before{content:"Closes"}.eligible-table-events td:nth-child(10):before{content:"Action"}.eligible-table-markets td:nth-child(3):before{content:"Last"}.eligible-table-markets td:nth-child(4):before{content:"24h move"}.eligible-table-markets td:nth-child(5):before{content:"24h volume"}.eligible-table-markets td:nth-child(6):before{content:"Liquidity"}.eligible-table-markets td:nth-child(7):before{content:"Spread"}.eligible-table-markets td:nth-child(8):before{content:"Closes"}.eligible-table-markets td:nth-child(9):before{content:"Action"}.eligible-table td:last-child{grid-column:1/-1!important;min-height:38px!important}.eligible-table td:last-child a{width:100%!important;min-height:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #29333d!important;border-radius:7px!important;background:#0d1319!important}

  /* existing institutional tables use their native card classes but normalized spacing */
  .institutional-market-table,.event-ranking-table,.event-contract-table{min-width:0!important}.institutional-market-table thead,.event-ranking-table thead,.event-contract-table thead{display:none!important}.institutional-market-table tbody,.event-ranking-table tbody,.event-contract-table tbody{display:grid!important;gap:8px!important;padding:8px!important}.institutional-market-table tbody tr,.event-ranking-table tbody tr,.event-contract-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;min-width:0!important;height:auto!important;padding:12px!important;gap:0 10px!important;border:1px solid #202831!important;border-radius:10px!important;background:#090e13!important;overflow:hidden!important}.institutional-market-table tbody td,.event-ranking-table tbody td,.event-contract-table tbody td{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;width:auto!important;height:auto!important;padding:8px 0!important;border:0!important;border-top:1px solid #171e25!important;white-space:normal!important;overflow:visible!important}.institutional-market-table tbody td:before,.event-ranking-table tbody td:before,.event-contract-table tbody td:before{content:attr(data-label)!important;display:block!important;margin-bottom:4px!important;color:#58636e!important;font-size:7.5px!important;font-weight:680!important;letter-spacing:.09em!important;text-transform:uppercase!important}.institutional-market-table .market-primary-cell,.event-ranking-table .market-primary-cell,.event-contract-table .market-primary-cell{grid-column:1/-1!important;border-top:0!important}.event-source-action-grid,.market-open-cell.live-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}.event-source-action-grid .catalog-action,.market-open-cell .catalog-action{width:100%!important}
  .market-load-more{border-top:0!important}
  .site-footer-unified,.site-footer{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;margin:18px 12px 0!important;padding-bottom:84px!important;box-sizing:border-box!important}
  .mobile-nav{display:grid!important;position:fixed!important;z-index:95!important;left:8px!important;right:8px!important;bottom:8px!important;height:56px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;padding:4px!important;border:1px solid #252e37!important;border-radius:13px!important;background:rgba(8,12,17,.94)!important;backdrop-filter:blur(18px)!important;box-shadow:0 16px 42px rgba(0,0,0,.35)!important}.mobile-nav button{min-width:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#697580!important;font-size:9px!important;font-weight:610!important}.mobile-nav button.active{background:#151c23!important;color:#eef2f4!important}
}

@media (max-width:480px){
  .global-search{display:none!important}.topbar .brand-copy{display:block!important}.topbar .brand-copy strong{font-size:13px!important}.header-actions{margin-left:auto!important}
  .kpi-grid,.institutional-kpis,.top100-kpis-128,.portfolio-kpis{grid-template-columns:1fr 1fr!important;gap:7px!important}.kpi{padding:12px!important}.kpi-note{font-size:8.5px!important}
  .eligible-table tr{grid-template-columns:44px minmax(0,1fr)!important}.eligible-table td:nth-child(2){grid-column:2!important}.eligible-table td:nth-child(n+3){grid-column:1/-1!important;display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;align-items:center!important;min-height:38px!important}.eligible-table td:nth-child(n+3):before{margin:0!important}.eligible-table td:last-child{display:flex!important}
  .legal-main{padding-left:18px!important;padding-right:18px!important}.legal-main h1{font-size:34px!important}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* Event ranking desktop width / scrollbar authority */
@media(min-width:861px){
  .market-catalog-scroll:has(.event-ranking-table),
  .table-scroll:has(.event-ranking-table){
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
    scrollbar-width:none!important;
    scrollbar-gutter:auto!important;
  }
  .market-catalog-scroll:has(.event-ranking-table)::-webkit-scrollbar,
  .table-scroll:has(.event-ranking-table)::-webkit-scrollbar{display:none!important}
  .institutional-market-table.event-ranking-table,
  .event-ranking-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }
  .event-ranking-table th,.event-ranking-table td{
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .event-ranking-table th:nth-child(1),.event-ranking-table td:nth-child(1){width:5%!important;padding-left:14px!important;padding-right:8px!important}
  .event-ranking-table th:nth-child(2),.event-ranking-table td:nth-child(2){width:38%!important;padding-left:10px!important;padding-right:14px!important}
  .event-ranking-table th:nth-child(3),.event-ranking-table td:nth-child(3){width:13%!important;padding-left:12px!important;padding-right:10px!important}
  .event-ranking-table th:nth-child(4),.event-ranking-table td:nth-child(4){width:13%!important;padding-left:10px!important;padding-right:10px!important}
  .event-ranking-table th:nth-child(5),.event-ranking-table td:nth-child(5){width:8%!important;padding-left:10px!important;padding-right:10px!important}
  .event-ranking-table th:nth-child(6),.event-ranking-table td:nth-child(6){width:9%!important;padding-left:10px!important;padding-right:10px!important}
  .event-ranking-table th:nth-child(7),.event-ranking-table td:nth-child(7){width:14%!important;padding-left:8px!important;padding-right:8px!important}
  .event-ranking-table .market-cell{gap:10px!important}
  .event-ranking-table .market-name{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .event-ranking-table .market-meta{gap:4px 7px!important;margin-top:3px!important;font-size:9.5px!important}
  .event-ranking-table tbody td{padding-top:10px!important;padding-bottom:10px!important}
  .event-ranking-table .event-source-action-grid{gap:6px!important}
  .event-ranking-table .event-source-action-grid .catalog-action{min-height:36px!important;padding:0 6px!important;font-size:11px!important}
  .event-contract-table th,.event-contract-table td{min-width:0!important;overflow:hidden!important;box-sizing:border-box!important}
  .event-contract-table th:nth-child(1),.event-contract-table td:nth-child(1){width:5%!important}
  .event-contract-table th:nth-child(2),.event-contract-table td:nth-child(2){width:40%!important}
  .event-contract-table th:nth-child(3),.event-contract-table td:nth-child(3){width:13%!important}
  .event-contract-table th:nth-child(4),.event-contract-table td:nth-child(4){width:12%!important}
  .event-contract-table th:nth-child(5),.event-contract-table td:nth-child(5){width:12%!important}
  .event-contract-table th:nth-child(6),.event-contract-table td:nth-child(6){width:8%!important}
  .event-contract-table th:nth-child(7),.event-contract-table td:nth-child(7){width:10%!important}
}


/* Professional market workspace header
   Compact venue context + restrained terminal controls + clear hierarchy. */
.market-terminal-156{
  padding-top:0!important;
}
.market-terminal-156 .institutional-page-head{
  min-height:104px!important;
  margin:0 0 14px!important;
  padding:18px 0 20px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:28px!important;
  border-bottom:1px solid #18222a!important;
}
.market-terminal-156 .institutional-page-head>div:first-child{
  max-width:820px!important;
}
.market-terminal-156 .institutional-page-head .eyebrow{
  margin:0 0 8px!important;
  color:#5f96aa!important;
  font-size:8.5px!important;
  font-weight:720!important;
  line-height:1!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}
.market-terminal-156 .institutional-page-head h1{
  margin:0!important;
  color:#f0f5f7!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:clamp(29px,2.25vw,38px)!important;
  font-weight:640!important;
  line-height:1.04!important;
  letter-spacing:-.035em!important;
}
.market-terminal-156 .institutional-page-head p{
  max-width:820px!important;
  margin:8px 0 0!important;
  color:#71838e!important;
  font-size:11px!important;
  line-height:1.45!important;
  white-space:normal!important;
}
.market-terminal-156 .source-health-141{
  margin-left:7px!important;
  min-height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:8.5px!important;
  font-weight:680!important;
  letter-spacing:.045em!important;
  vertical-align:middle!important;
  transform:translateY(-1px)!important;
}
.market-terminal-156 .market-hub-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  min-width:max-content!important;
}
.market-terminal-156 .active-ranking-tabs,
.market-terminal-156 .venue-state-tabs{
  min-height:38px!important;
  padding:3px!important;
  gap:3px!important;
  border:1px solid #1e2931!important;
  border-radius:10px!important;
  background:#080d12!important;
}
.market-terminal-156 .active-ranking-tabs button,
.market-terminal-156 .venue-state-tabs button{
  min-width:72px!important;
  min-height:30px!important;
  padding:0 12px!important;
  border-radius:7px!important;
  color:#748591!important;
  font-size:9.5px!important;
  font-weight:620!important;
  box-shadow:none!important;
}
.market-terminal-156 .active-ranking-tabs button.active,
.market-terminal-156 .venue-state-tabs button.active{
  color:#dff8ff!important;
  background:rgba(89,215,255,.075)!important;
  box-shadow:inset 0 0 0 1px rgba(89,215,255,.20)!important;
}
.market-terminal-156 .venue-state-control{
  padding:0!important;
  gap:0!important;
  border:0!important;
  background:transparent!important;
}
.market-terminal-156 .venue-state-label{
  display:none!important;
}
.market-terminal-156 #viewRefresh{
  min-height:38px!important;
  height:38px!important;
  padding:0 13px!important;
  border-color:#1e2931!important;
  border-radius:9px!important;
  background:#080d12!important;
  color:#91a2ac!important;
  font-size:9.5px!important;
  font-weight:620!important;
}
.market-terminal-156 #viewRefresh:hover{
  color:#e2edf1!important;
  border-color:#31404a!important;
  background:#0b1218!important;
}
.market-terminal-156 .top100-kpis-128{
  gap:8px!important;
  margin:0 0 12px!important;
}
.market-terminal-156 .top100-kpis-128 .kpi{
  min-height:68px!important;
  padding:10px 14px!important;
  border-color:#18232b!important;
  border-radius:9px!important;
  background:#081018!important;
}
.market-terminal-156 .top100-kpis-128 .kpi-label{
  color:#66879a!important;
  font-size:10px!important;
  letter-spacing:.09em!important;
}
.market-terminal-156 .top100-kpis-128 .kpi-value{
  margin-top:5px!important;
  font-size:22px!important;
  font-weight:580!important;
}
.market-terminal-156 .top100-kpis-128 .kpi-note{display:none!important}
@media(max-width:1040px){
  .market-terminal-156 .institutional-page-head{
    grid-template-columns:1fr!important;
    align-items:start!important;
    gap:14px!important;
    padding-top:14px!important;
  }
  .market-terminal-156 .market-hub-actions{
    justify-content:flex-start!important;
    min-width:0!important;
    flex-wrap:wrap!important;
  }
}
@media(max-width:700px){
  .market-terminal-156 .top100-kpis-128{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:1fr!important;gap:8px!important;margin:0 0 12px!important;border:0!important;background:transparent!important;overflow:visible!important}
  .market-terminal-156 .top100-kpis-128 .kpi,.market-terminal-156 .top100-kpis-128 .kpi:last-child{grid-column:auto!important;min-width:0!important;min-height:96px!important;height:100%!important;padding:14px 15px!important;border:1px solid rgba(112,153,177,.14)!important;border-radius:13px!important;background:linear-gradient(145deg,#091721 0%,#08121a 72%,#071018 100%)!important;box-shadow:none!important}
  .market-terminal-156 .top100-kpis-128 .kpi-label{font-size:9px!important;line-height:1.2!important;letter-spacing:.12em!important;color:#718b9a!important}
  .market-terminal-156 .top100-kpis-128 .kpi-value{margin-top:8px!important;font-size:25px!important;line-height:1.05!important;font-weight:560!important;letter-spacing:-.035em!important;color:#f1f5f7!important;overflow-wrap:anywhere!important}
  .market-terminal-156 .top100-kpis-128 .kpi:after{display:none!important}
  .market-terminal-156 .institutional-page-head{
    min-height:0!important;
    padding:12px 0 16px!important;
    gap:12px!important;
  }
  .market-terminal-156 .institutional-page-head h1{font-size:28px!important}
  .market-terminal-156 .institutional-page-head p{font-size:10px!important}
  .market-terminal-156 .source-health-141{
    display:flex!important;
    width:max-content!important;
    max-width:100%!important;
    margin:7px 0 0!important;
    transform:none!important;
  }
  .market-terminal-156 .market-hub-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    gap:7px!important;
  }
  .market-terminal-156 .market-hub-actions>.active-ranking-tabs,
  .market-terminal-156 .market-hub-actions>.venue-state-control{
    width:100%!important;
  }
  .market-terminal-156 .active-ranking-tabs,
  .market-terminal-156 .venue-state-tabs{width:100%!important}
  .market-terminal-156 .active-ranking-tabs button,
  .market-terminal-156 .venue-state-tabs button{flex:1 1 0!important;min-width:0!important}
  .market-terminal-156 #viewRefresh{grid-column:1/-1!important;width:100%!important}
}
