/* ASRION MAX · Final Black Convergence v13.17.93
   Loaded last on purpose. This is the final visual authority for Intelligence / MAX.
   Runtime hooks, layout logic, data attributes and interactions are untouched. */

body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"]{
  --max-final-bg:#030305;
  --max-final-panel:#09090d;
  --max-final-panel-2:#0d0c12;
  --max-final-panel-3:#121018;
  --max-final-line:rgba(247,245,251,.075);
  --max-final-line-violet:rgba(139,92,246,.28);
  --max-final-text:#f7f5fb;
  --max-final-soft:#c9c3cf;
  --max-final-muted:#8c8593;
  --max-final-violet:#8b5cf6;
  --max-final-violet-2:#a78bfa;
  --max-final-green:#72cf9e;
  --max-final-red:#ef7d8b;
  background:
    radial-gradient(circle at 88% 0,rgba(139,92,246,.065),transparent 24%),
    radial-gradient(circle at 8% 100%,rgba(109,40,217,.035),transparent 28%),
    #030305!important;
  background-color:#030305!important;
  color:var(--max-final-text)!important;
}

body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] [data-asrion-max-workspace],
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .imax-grid-v31,
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .max-shell{
  background:transparent!important;
}

/* Final black surfaces */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-panel,.max-kpi,.max-detail-card,.max-inline-lens,.max-workspace-hero-v23,.max-column-v23,.max-access-card-v23,
  .asrion-ai-panel-v24,.asrion-ai-summary-v24>section,.ai-hyp-grid-v24>section,.ai-empty-v24,
  .r60-research,.r60-list-card,.r60-detail-card,.r60-ai-card,.r60-caps>div,.r60-trading-caps>div,
  .r60-hypotheses article,.r60-detail-grid article,.r60-ai-columns article,.r60-intake-grid>div,.r60-score-grid>div,
  .r60-intake,.r60-gaps,.r60-ai-warning,.r60-intake-empty,
  .v42-max-panel,.v42-max-metric,.v44-list-row,.v44-condition,.v44-event,.v44-change
){
  background:linear-gradient(180deg,var(--max-final-panel-2),var(--max-final-panel))!important;
  background-color:var(--max-final-panel)!important;
  border-color:var(--max-final-line)!important;
  box-shadow:none!important;
}

/* Headers */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-panel-head,.asrion-ai-head-v24,.r60-section-title
){
  background:#0b0a10!important;
  border-bottom-color:var(--max-final-line)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-panel-head h2,.asrion-ai-head-v24 h2,.r60-section-title h3,.r60-head h2,.r60-detail-head h3
){
  color:var(--max-final-text)!important;
}

/* Hypothesis cards */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.max-hyp,.r60-hyp){
  background:rgba(255,255,255,.012)!important;
  border-color:rgba(255,255,255,.05)!important;
  color:var(--max-final-soft)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.max-hyp,.r60-hyp):hover{
  background:rgba(139,92,246,.055)!important;
  border-color:rgba(139,92,246,.19)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.max-hyp.active,.r60-hyp.active){
  background:linear-gradient(90deg,rgba(139,92,246,.14),rgba(139,92,246,.025))!important;
  border-color:rgba(139,92,246,.32)!important;
  box-shadow:inset 3px 0 0 var(--max-final-violet)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-hyp .rank,.max-hyp em,.r60-hyp .rank,.r60-hyp .score,.r60-detail-score>strong
){color:var(--max-final-violet-2)!important}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.max-hyp b,.r60-hyp .main b){color:#f0edf3!important}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.max-hyp small,.r60-hyp .main small){color:var(--max-final-muted)!important}

/* Buttons / filters / chips */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-action,.imax-action-v31,.r60-btn,.r60-intake-empty button,.r60-trading-caps button,
  .r60-filterbar button,.r60-ai-modes button,.r60-filterbar select,[data-ai-rescan]
){
  background:#0d0c12!important;
  border-color:rgba(247,245,251,.09)!important;
  color:#c9c3cf!important;
  box-shadow:none!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-action,.imax-action-v31,.r60-btn,.r60-intake-empty button,.r60-trading-caps button,
  .r60-filterbar button,.r60-ai-modes button,[data-ai-rescan]
):hover{
  background:#15111d!important;
  border-color:rgba(139,92,246,.30)!important;
  color:#fff!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-action.gold,.imax-action-v31.primary,.r60-btn.primary,.r60-filterbar button.active,.r60-ai-modes button.active,[data-ai-rescan]
){
  background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;
  border-color:#8b5cf6!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(109,40,217,.18)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.r60-pill.gold,.max-badge,.max-access-eyebrow-v23){
  background:rgba(139,92,246,.09)!important;
  border-color:rgba(139,92,246,.24)!important;
  color:#c4b5fd!important;
}

/* Status / identity accents */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .imax-status-v31 span{
  background:#0d0c12!important;
  border-color:var(--max-final-line)!important;
  color:#a7a1ad!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .imax-status-v31 span:first-child{
  background:rgba(139,92,246,.11)!important;
  border-color:rgba(139,92,246,.26)!important;
  color:#ddd6fe!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .intel-toolbar-state-v27 span:last-child{
  background:rgba(139,92,246,.08)!important;
  border-color:rgba(139,92,246,.22)!important;
  color:#c4b5fd!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .intel-section-label-v27 span,.intel-section-label-v27 small,.r60-eyebrow,.r60-section-title span,.r60-detail-head span
){color:var(--max-final-muted)!important}

/* Forms */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea,.r60-ask textarea
){
  background:#050507!important;
  border-color:rgba(247,245,251,.09)!important;
  color:#f5f2f7!important;
  box-shadow:none!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea,.r60-ask textarea
):focus{
  border-color:rgba(139,92,246,.48)!important;
  box-shadow:0 0 0 3px rgba(139,92,246,.08)!important;
}

/* AI result blocks */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.r60-ai-answer,.r60-ai-regime){
  background:rgba(139,92,246,.04)!important;
  border-color:rgba(139,92,246,.13)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .r60-ai-answer>span{color:var(--max-final-violet-2)!important}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .r60-protocol>div{
  background:#09090d!important;
  border-left-color:#7c3aed!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .r60-score-grid>div>div{background:#17141d!important}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .r60-score-grid i{
  background:linear-gradient(90deg,#6d28d9,#a78bfa)!important;
}

/* Market-command / supplemental cards inside MAX */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.v44-list-row,.v44-condition,.v44-event,.v44-change){
  border-color:rgba(247,245,251,.06)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .max-kpi[data-v44-kpi]::before{
  background:linear-gradient(90deg,#6d28d9,#a78bfa)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] .max-kpi[data-v44-kpi="engine"]::before{
  background:var(--max-final-green)!important;
}

/* Text hierarchy */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-detail p,.max-detail-card p,.asrion-ai-summary-v24 p,.asrion-ai-summary-v24 li,
  .ai-hyp-grid-v24 p,.ai-hyp-grid-v24 li,.r60-head p,.r60-detail-head p,.r60-hypotheses p,
  .r60-detail-grid p,.r60-ai-columns p,.r60-ai-answer p,.r60-ai-regime p,.r60-intake-grid p
){color:var(--max-final-soft)!important}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(
  .max-kpi span,.max-detail-card span,.max-context-strip span,.r60-muted,.r60-provenance,.r60-ai-confidence,.r60-gaps
){color:var(--max-final-muted)!important}

/* Semantic colors stay semantic */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.ai-verified-v24,.r60-pill.green,.r60-state[data-state="ok"]){color:var(--max-final-green)!important}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.r60-empty.error,.auth-status.error){color:var(--max-final-red)!important}

/* Empty/loading states */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.engine-empty,.r60-empty,.r60-ai-loading){
  background:#07070a!important;
  border-color:var(--max-final-line)!important;
  color:var(--max-final-muted)!important;
}

/* Tables inside MAX */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] table{
  background:transparent!important;
  color:var(--max-final-soft)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] th{
  background:#0b0a10!important;
  color:#d9d4df!important;
  border-color:rgba(247,245,251,.06)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] td{
  background:transparent!important;
  color:#bcb6c3!important;
  border-color:rgba(247,245,251,.05)!important;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] tr:hover td{background:rgba(139,92,246,.025)!important}

/* Scrollbars */
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.max-hyp-list,.r60-hyp-list){
  scrollbar-width:thin;
  scrollbar-color:rgba(139,92,246,.22) transparent;
}
body.asr-current-v131824[data-asrion-vnext] [data-terminal-view="max"] :where(.max-hyp-list,.r60-hyp-list)::-webkit-scrollbar-thumb{
  background:rgba(139,92,246,.22)!important;
  border-radius:99px;
}

/* Global terminal chrome visible while using MAX: remove residual steel/blue from side tools/search. */
body.asr-current-v131824[data-asrion-vnext] .asrion-vnext-rail,
body.asr-current-v131824[data-asrion-vnext] .vx-rail-head,
body.asr-current-v131824[data-asrion-vnext] .vx-rail-foot{
  background:#07070a!important;
  border-color:rgba(247,245,251,.07)!important;
}
body.asr-current-v131824[data-asrion-vnext] .vx-rail-toggle{
  background:#0d0c12!important;
  border-color:rgba(247,245,251,.09)!important;
  color:#aaa3b1!important;
}
body.asr-current-v131824[data-asrion-vnext] .vx-rail-toggle:hover{
  background:#15111d!important;
  border-color:rgba(139,92,246,.30)!important;
  color:#fff!important;
}
body.asr-current-v131824[data-asrion-vnext] .vx-rail-item:hover{
  background:rgba(139,92,246,.055)!important;
  border-color:rgba(139,92,246,.14)!important;
}
body.asr-current-v131824[data-asrion-vnext] .vx-rail-item.active{
  background:linear-gradient(90deg,rgba(139,92,246,.16),rgba(139,92,246,.035))!important;
  border-color:rgba(139,92,246,.24)!important;
  color:#f3edff!important;
  box-shadow:inset 3px 0 0 #8b5cf6!important;
}
body.asr-current-v131824[data-asrion-vnext] .vx-search-results{
  background:rgba(7,7,10,.99)!important;
  border-color:rgba(139,92,246,.20)!important;
}
body.asr-current-v131824[data-asrion-vnext] .vx-search-result:hover,
body.asr-current-v131824[data-asrion-vnext] .vx-search-result.is-selected{
  background:rgba(139,92,246,.075)!important;
  border-color:rgba(139,92,246,.18)!important;
}
body.asr-current-v131824[data-asrion-vnext] .vx-search-result-icon{
  background:#111018!important;
  color:#c4b5fd!important;
}
