/* Alpha Stochastic Research — sitewide current UI v13.18.24
   Final visual convergence layer for non-React/public and authenticated legacy routes.
   It does not replace application/business runtimes; it normalizes structure, contrast,
   spacing, controls and branding to the current black / violet ASR system. */

body.asr-current-v131824{
  --asr-bg:#050507;
  --asr-panel:#0b0b10;
  --asr-panel-2:#101018;
  --asr-panel-3:#15131d;
  --asr-line:#282530;
  --asr-line-soft:rgba(247,245,251,.075);
  --asr-text:#f7f5fb;
  --asr-muted:#9a95a3;
  --asr-muted-2:#746e7c;
  --asr-violet:#a98dfb;
  --asr-violet-2:#7656d8;
  --asr-gold:#d9b36c;
  --asr-ok:#72cf9e;
  --asr-danger:#ef7d8b;
  --asr-radius:18px;
  min-height:100vh;
  background:
    radial-gradient(circle at 12% -8%,rgba(118,86,216,.12),transparent 28%),
    radial-gradient(circle at 92% 8%,rgba(169,141,251,.07),transparent 24%),
    var(--asr-bg)!important;
  color:var(--asr-text)!important;
  color-scheme:dark;
}
body.asr-current-v131824 *,body.asr-current-v131824 *:before,body.asr-current-v131824 *:after{box-sizing:border-box}
body.asr-current-v131824 :where(h1,h2,h3,h4,h5,strong,b){color:var(--asr-text)}
body.asr-current-v131824 :where(p,small,.muted,.form-note){color:var(--asr-muted)}
body.asr-current-v131824 :where(a){text-underline-offset:3px}
body.asr-current-v131824 :where(code,kbd){border:1px solid var(--asr-line-soft);border-radius:8px;background:#09080d;color:#d9ccff;padding:.15em .4em}
body.asr-current-v131824 :where(hr){border:0;border-top:1px solid var(--asr-line-soft)}
body.asr-current-v131824 :where(:focus-visible){outline:2px solid var(--asr-violet)!important;outline-offset:3px!important}

/* Top-level chrome. */
body.asr-current-v131824>header,
body.asr-current-v131824 .site-header,
body.asr-current-v131824 .legal84-header{
  border-color:var(--asr-line-soft)!important;
  background:rgba(5,5,7,.9)!important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
body.asr-current-v131824>footer,
body.asr-current-v131824 .site-footer{
  border-color:var(--asr-line-soft)!important;
  background:#07070a!important;
}
body.asr-current-v131824>header img,
body.asr-current-v131824 .site-header img,
body.asr-current-v131824 .legal84-brand img{border-radius:12px}
body.asr-current-v131824 :where(nav a,nav button){transition:color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease}

/* Shared controls. */
body.asr-current-v131824 :where(.button,.lr-btn,.las22-btn,.q58-btn,.legal84-button){
  border-color:rgba(247,245,251,.12)!important;
  border-radius:12px!important;
  background:#111018!important;
  color:#ded9e7!important;
  box-shadow:none!important;
  font-weight:760!important;
}
body.asr-current-v131824 :where(.button,.lr-btn,.las22-btn,.q58-btn,.legal84-button):hover:not(:disabled){
  transform:translateY(-1px);
  border-color:rgba(169,141,251,.48)!important;
  background:#171321!important;
  color:#fff!important;
}
body.asr-current-v131824 :where(.button-primary,.button-gold,.lr-btn-primary,.las22-btn-primary,.primary){
  border-color:rgba(169,141,251,.58)!important;
  background:linear-gradient(135deg,var(--asr-violet),var(--asr-violet-2))!important;
  color:#09070d!important;
}
body.asr-current-v131824 :where(.button-soft,.button-secondary,.secondary){background:#0d0c12!important;color:#d8d2df!important}
body.asr-current-v131824 :where(input:not([type=checkbox]):not([type=radio]),select,textarea){
  width:100%;
  border:1px solid rgba(247,245,251,.12)!important;
  border-radius:11px!important;
  background:#09080d!important;
  color:var(--asr-text)!important;
  box-shadow:none!important;
}
body.asr-current-v131824 :where(input:not([type=checkbox]):not([type=radio]),select,textarea)::placeholder{color:#716b79!important;opacity:1}
body.asr-current-v131824 :where(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{border-color:rgba(169,141,251,.5)!important;box-shadow:0 0 0 3px rgba(169,141,251,.08)!important;outline:0}
body.asr-current-v131824 :where(input[type=checkbox],input[type=radio]){accent-color:var(--asr-violet)}

/* Shared containers and cards. */
body.asr-current-v131824 :where(.portal-welcome,.ws-panel-card,.portal-card,.portal-empty,.admin-library-intro,.ecosystem-row,.airy-row,.card,.panel,.surface){
  border-color:var(--asr-line-soft)!important;
}
body.asr-current-v131824 :where(.ws-panel-card,.portal-card,.admin-library-intro,.ecosystem-row,.airy-row){
  background:linear-gradient(180deg,rgba(16,16,24,.96),rgba(9,9,13,.97))!important;
  box-shadow:0 18px 55px rgba(0,0,0,.18)!important;
}
body.asr-current-v131824 .portal-empty{background:#0a090e!important;color:var(--asr-muted)!important;border-style:dashed!important}
body.asr-current-v131824 .portal-kicker,
body.asr-current-v131824 .eyebrow{color:var(--asr-violet)!important}
body.asr-current-v131824 .status-pill{border-color:rgba(247,245,251,.1)!important;background:#0b0a10!important;color:#b7afc0!important}
body.asr-current-v131824 .status-pill.ok{border-color:rgba(114,207,158,.25)!important;background:rgba(50,132,88,.1)!important;color:#9fe3bd!important}
body.asr-current-v131824 .status-pill.danger{border-color:rgba(239,125,139,.25)!important;background:rgba(119,39,51,.1)!important;color:#ffabb5!important}

/* Authenticated workspace rhythm. */
body.asr-current-v131824.auth-premium-v131806 .portal-main,
body.asr-current-v131824.auth-premium-v131806 main{background:transparent!important}
body.asr-current-v131824.auth-premium-v131806 .container,
body.asr-current-v131824.auth-premium-v131806 .ws-container{width:min(1480px,calc(100% - 40px));margin-inline:auto}
body.asr-current-v131824.auth-premium-v131806 .portal-welcome{
  border:1px solid rgba(169,141,251,.14)!important;
  border-radius:24px!important;
  background:radial-gradient(circle at 88% 0%,rgba(169,141,251,.11),transparent 34%),linear-gradient(180deg,#0d0c13,#08080c)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.22)!important;
}
body.asr-current-v131824.auth-premium-v131806 .portal-welcome h1{letter-spacing:-.045em!important}
body.asr-current-v131824.auth-premium-v131806 .ws-metric-grid>article{border-color:var(--asr-line-soft)!important;background:#0b0a10!important;border-radius:16px!important}
body.asr-current-v131824.auth-premium-v131806 .ws-metric-grid>article strong{color:var(--asr-text)!important}
body.asr-current-v131824.auth-premium-v131806 .ws-tabs{gap:6px!important;border-color:var(--asr-line-soft)!important}
body.asr-current-v131824.auth-premium-v131806 .ws-tabs button{border-radius:10px!important;color:#938c9c!important}
body.asr-current-v131824.auth-premium-v131806 .ws-tabs button:hover{background:rgba(169,141,251,.07)!important;color:#d9d0e8!important}
body.asr-current-v131824.auth-premium-v131806 .ws-tabs button.active{background:rgba(118,86,216,.16)!important;color:#e6dcff!important;box-shadow:inset 0 0 0 1px rgba(169,141,251,.18)!important}
body.asr-current-v131824.auth-premium-v131806 details{border-color:var(--asr-line-soft)}

/* Admin Ecosystem / Applications — deliberately structured for long recruitment queues. */
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .ecosystem-tab-groups{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;margin:22px 0!important;
}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .ecosystem-tab-groups>div{
  min-width:0;padding:14px;border:1px solid var(--asr-line-soft);border-radius:16px;background:#0a090e;
}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .ecosystem-tab-groups>div>span{display:block;margin:0 0 8px;color:#716a79;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .ecosystem-tabs{display:flex!important;flex-wrap:wrap!important;border:0!important;padding:0!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-panel="applications"]>.ws-panel-card{padding:22px!important;border-radius:22px!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .asr-course-library-head{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,.62fr)!important;gap:18px!important;align-items:end!important;padding:18px 0!important;border-bottom:1px solid var(--asr-line-soft)!important;
}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-application-search]{min-height:44px!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .ecosystem-list[data-application-list]{display:grid!important;gap:12px!important;padding-top:16px!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-application-row]{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(250px,.34fr)!important;gap:22px!important;align-items:start!important;padding:20px!important;border-radius:18px!important;
}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-application-row]>div:first-child{min-width:0}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-application-row] h3{margin:5px 0 7px!important;font-size:20px!important;letter-spacing:-.025em!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-application-row] p{margin:5px 0!important;line-height:1.55!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-actions{display:grid!important;gap:12px!important;justify-items:stretch!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-actions>.status-pill{justify-self:start}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-actions .button-row{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-actions .button{width:100%!important;justify-content:center!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .compact-select{display:grid!important;gap:6px!important;color:#7f7889!important;font-size:10px!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-custom-responses{margin-top:14px!important;border:1px solid var(--asr-line-soft)!important;border-radius:13px!important;background:#09080d!important;overflow:hidden!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-custom-responses summary{padding:11px 13px!important;color:#c7bfd0!important;cursor:pointer!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-answer-list{display:grid!important;gap:1px!important;background:var(--asr-line-soft)!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-answer-row{display:grid!important;grid-template-columns:minmax(160px,.35fr) minmax(0,1fr)!important;gap:14px!important;padding:10px 12px!important;background:#0c0b11!important}
body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-answer-row span{color:#776f80!important;font-size:11px!important}

/* Legacy public suites / products / legal pages: preserve behavior, converge visual language. */
body.asr-current-v131824:is(.asr-legal-v131784,[class*="asr-public-v"],.certificate-page,.q58-page,.qdoc-loading,.asrion-terminal-v131718,.asrion-control57-page){background-color:var(--asr-bg)!important;color:var(--asr-text)!important}
body.asr-current-v131824.asr-legal-v131784 :where(.legal84-card,.legal84-panel,.legal84-section,.legal84-callout){border-color:var(--asr-line-soft)!important;background:linear-gradient(180deg,#0d0c12,#09080d)!important;box-shadow:none!important}
body.asr-current-v131824.asr-legal-v131784 :where(h1,h2,h3,strong){color:var(--asr-text)!important}
body.asr-current-v131824.asr-legal-v131784 :where(p,li,small){color:#a39dab!important}
body.asr-current-v131824[class*="asr-public-v"] :where(.section,.section-soft,.public-section){background:transparent!important;border-color:var(--asr-line-soft)!important}
body.asr-current-v131824[class*="asr-public-v"] :where(.public-card,.product-card,.testimonial-card,.verify-card,.faq-item){border-color:var(--asr-line-soft)!important;background:linear-gradient(180deg,#0e0d14,#09090d)!important;color:var(--asr-text)!important;box-shadow:none!important}
body.asr-current-v131824[class*="asr-public-v"] :where(h1,h2,h3,h4,strong){color:var(--asr-text)!important}
body.asr-current-v131824[class*="asr-public-v"] :where(p,small,li){color:#a39dab!important}
body.asr-current-v131824.q58-page :where(.q58-card,.q58-panel,.q58-shell-card),
body.asr-current-v131824.qdoc-loading :where(.qdoc-card,.qdoc-panel),
body.asr-current-v131824.asrion-terminal-v131718 :where(.terminal-card,.terminal-panel,[class*="panel"]),
body.asr-current-v131824.asrion-control57-page :where(.control57-card,.control57-panel,[class*="panel"]){border-color:var(--asr-line-soft)!important}

/* Current premium specialty pages still inherit the exact same tokens. */
body.asr-current-v131824.leadership-resources-v131823,
body.asr-current-v131824.challenge-premium-v131819,
body.asr-current-v131824.challenge-terminal-premium-v131819{--asr-violet:#a98dfb;--asr-violet-2:#7656d8;--asr-bg:#050507}

/* Tables and dense operational data. */
body.asr-current-v131824 table{border-collapse:separate;border-spacing:0;width:100%}
body.asr-current-v131824 :where(th,td){border-color:var(--asr-line-soft)!important}
body.asr-current-v131824 th{background:#0b0a10!important;color:#aaa2b2!important;font-size:10px!important;letter-spacing:.08em!important;text-transform:uppercase!important}
body.asr-current-v131824 td{background:rgba(9,8,13,.82)!important;color:#d7d1df!important}

@media(max-width:980px){
  body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .ecosystem-tab-groups{grid-template-columns:1fr!important}
  body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-application-row]{grid-template-columns:1fr!important}
  body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-actions{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:720px){
  body.asr-current-v131824.auth-premium-v131806 .container,
  body.asr-current-v131824.auth-premium-v131806 .ws-container{width:min(100% - 24px,1480px)!important}
  body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .asr-course-library-head{grid-template-columns:1fr!important}
  body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] [data-application-row]{padding:16px!important;border-radius:15px!important}
  body.asr-current-v131824[data-asr-current-route="admin-ecosystem/index.html"] .application-answer-row{grid-template-columns:1fr!important;gap:4px!important}
}
@media(prefers-reduced-motion:reduce){body.asr-current-v131824 *,body.asr-current-v131824 *:before,body.asr-current-v131824 *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
