/* Runtime terminal visual authority.
 * Mounted/re-appended last by RuntimePhysicalAuthority after route/lazy CSS settles.
 * This preserves protected historical imports while making one physical layer authoritative.
 */
:root{
  --hlc-runtime-bg:#081426;
  --hlc-runtime-surface:#0d1a2d;
  --hlc-runtime-surface-2:#10243e;
  --hlc-runtime-line:rgba(199,210,227,.14);
  --hlc-runtime-text:#f8fafc;
  --hlc-runtime-muted:#aebdd0;
  --hlc-runtime-accent:#60a5fa;
}

/* AUTH — force the actual AuthShell and the surrounding public shell into one dark account surface. */
html:has(#root .hlc-auth-shell),
body:has(#root .hlc-auth-shell),
#root:has(.hlc-auth-shell),
#root .hlc-public-shell:has(.hlc-auth-shell),
#root .hlc-public-shell:has(.hlc-auth-shell)>.hlc-route-content,
#root .hlc-public-shell:has(.hlc-auth-shell) footer{
  background:var(--hlc-runtime-bg)!important;
  background-color:var(--hlc-runtime-bg)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
}
#root .hlc-public-shell:has(.hlc-auth-shell) .hlc-route-visual-banner{display:none!important}
#root .hlc-auth-shell,
#root .hlc-auth-shell *{
  box-shadow:none!important;
}
#root .hlc-auth-shell,
#root .hlc-auth-shell :is(.hlc-auth-brand,.hlc-auth-card,.hlc-auth-form-heading,.hlc-auth-method-tabs,.hlc-auth-card-footer,.hlc-auth-divider,.hlc-auth-provider-grid){
  background:var(--hlc-runtime-bg)!important;
  background-color:var(--hlc-runtime-bg)!important;
  background-image:none!important;
  border-color:var(--hlc-runtime-line)!important;
  color:var(--hlc-runtime-text)!important;
}
#root .hlc-auth-shell :is(h1,h2,h3,label,strong,.hlc-auth-card-brand,.hlc-auth-eyebrow){
  color:var(--hlc-runtime-text)!important;
  -webkit-text-fill-color:var(--hlc-runtime-text)!important;
}
#root .hlc-auth-shell :is(p,small,span){
  color:var(--hlc-runtime-muted)!important;
  -webkit-text-fill-color:var(--hlc-runtime-muted)!important;
}
#root .hlc-auth-shell a{color:#93c5fd!important;-webkit-text-fill-color:#93c5fd!important}
#root .hlc-auth-shell .hlc-auth-form :is(input,select,textarea){
  background:var(--hlc-runtime-surface)!important;
  background-color:var(--hlc-runtime-surface)!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:1px solid rgba(199,210,227,.28)!important;
  border-radius:8px!important;
}
#root .hlc-auth-shell .hlc-auth-form input:-webkit-autofill,
#root .hlc-auth-shell .hlc-auth-form input:-webkit-autofill:hover,
#root .hlc-auth-shell .hlc-auth-form input:-webkit-autofill:focus{
  -webkit-text-fill-color:#fff!important;
  -webkit-box-shadow:0 0 0 1000px var(--hlc-runtime-surface) inset!important;
  box-shadow:0 0 0 1000px var(--hlc-runtime-surface) inset!important;
  caret-color:#fff!important;
}
#root .hlc-auth-shell .hlc-auth-method-tabs button{
  background:var(--hlc-runtime-surface)!important;
  background-image:none!important;
  border:1px solid var(--hlc-runtime-line)!important;
  color:#dbeafe!important;
  -webkit-text-fill-color:#dbeafe!important;
}
#root .hlc-auth-shell .hlc-auth-method-tabs button[aria-pressed="true"]{background:#16345a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#root .hlc-auth-shell .hlc-auth-form>button[type="submit"]{
  background:#2563eb!important;background-image:none!important;border-color:#2563eb!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* AUTHENTICATED ROOT — remove the purple page wash at the shell itself. */
#root .hlc-signed-in-shell,
#root .hlc-signed-in-shell>.hlc-route-content,
#root .hlc-signed-in-shell>.hlc-route-content>main{
  background:var(--hlc-runtime-bg)!important;
  background-color:var(--hlc-runtime-bg)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
}
#root .hlc-signed-in-shell :is(header,.hlc-navbar,.hlc-navbar-shell,.hlc-mobile-tabbar,.hlc-home-topbar,.hlc-home-topbar-v2,.hlc-messages-header){
  background:#0b1729!important;
  background-color:#0b1729!important;
  background-image:none!important;
  border-color:var(--hlc-runtime-line)!important;
}
#root .hlc-signed-in-shell .hlc-mobile-tabbar :is(a,button){background:transparent!important;background-image:none!important}
#root .hlc-signed-in-shell .hlc-mobile-tabbar :is(a,button)[aria-current="page"]{background:var(--hlc-runtime-surface-2)!important;color:#93c5fd!important;border-color:rgba(96,165,250,.28)!important}

/* Shared operational surfaces visible in the failed physical proof. */
#root .hlc-signed-in-shell :is(.hlc-home-workspace,.hlc-work-home,.hlc-messages-workspace,.hlc-community-hub,.hlc-community-workspace,.hlc-agent-workspace){
  background:var(--hlc-runtime-bg)!important;
  background-color:var(--hlc-runtime-bg)!important;
  background-image:none!important;
  color:var(--hlc-runtime-text)!important;
}
#root .hlc-signed-in-shell :is(.hlc-parent-index-header,.hlc-home-live-line,.hlc-home-metric-strip,.hlc-home-focus-panel,.hlc-home-schedule-panel,.hlc-home-ai-rail,.hlc-messages-progressive-header,.hlc-messages-empty-action,.hlc-community-commandbar,.hlc-community-v2-row,.hlc-community-v2-context-card){
  background:var(--hlc-runtime-surface)!important;
  background-color:var(--hlc-runtime-surface)!important;
  background-image:none!important;
  border-color:var(--hlc-runtime-line)!important;
  box-shadow:none!important;
  color:var(--hlc-runtime-text)!important;
}
#root .hlc-signed-in-shell .hlc-parent-index-header{
  min-height:0!important;margin:0!important;padding:0 0 14px!important;border:0!important;border-bottom:1px solid var(--hlc-runtime-line)!important;border-radius:0!important;background:transparent!important;
}
#root .hlc-signed-in-shell .hlc-parent-index-header h1{font-size:clamp(26px,7vw,34px)!important;line-height:1.05!important}
#root .hlc-signed-in-shell .hlc-parent-agent-link{background:var(--hlc-runtime-surface-2)!important;background-image:none!important;color:#dbeafe!important;border:1px solid rgba(96,165,250,.25)!important;border-radius:8px!important}

/* Eliminate white islands in the authenticated app without altering behavior. */
#root .hlc-signed-in-shell :is(.hlc-agent-team-header,.hlc-agent-chat-stage,.hlc-agent-action-workbench,.hlc-agent-result-rail,.hlc-agent-result-rail>section,.hlc-agent-history,.hlc-agent-handoff,.hlc-agent-team-switcher,.hlc-agent-operating-grid,.hlc-agent-history-grid,.hlc-agent-capability-list),
#root .hlc-signed-in-shell :is(.hlc-agent-team-header,.hlc-agent-chat-stage,.hlc-agent-action-workbench,.hlc-agent-result-rail,.hlc-agent-history,.hlc-agent-handoff,.hlc-agent-team-switcher) *{
  border-color:var(--hlc-runtime-line)!important;
}
#root .hlc-signed-in-shell :is(.hlc-agent-team-header,.hlc-agent-chat-stage,.hlc-agent-action-workbench,.hlc-agent-result-rail>section,.hlc-agent-history,.hlc-agent-handoff){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
#root .hlc-signed-in-shell .hlc-agent-workspace :is(button,input,select,textarea){
  background:var(--hlc-runtime-surface)!important;background-image:none!important;color:var(--hlc-runtime-text)!important;-webkit-text-fill-color:var(--hlc-runtime-text)!important;border-color:var(--hlc-runtime-line)!important;
}
#root .hlc-signed-in-shell .hlc-agent-workspace :is(h1,h2,h3,strong){color:var(--hlc-runtime-text)!important;-webkit-text-fill-color:var(--hlc-runtime-text)!important}
#root .hlc-signed-in-shell .hlc-agent-workspace :is(p,small){color:var(--hlc-runtime-muted)!important;-webkit-text-fill-color:var(--hlc-runtime-muted)!important}
#root .hlc-signed-in-shell .hlc-agent-workspace .hlc-agent-team-switcher{background:transparent!important;background-image:none!important;box-shadow:none!important}
#root .hlc-signed-in-shell .hlc-agent-workspace .hlc-agent-team-switcher :is(a,button){background:var(--hlc-runtime-surface-2)!important;background-image:none!important;color:#dbeafe!important;-webkit-text-fill-color:#dbeafe!important}

@media(max-width:720px){
  #root .hlc-auth-shell{width:100%!important;max-width:520px!important;margin:0 auto!important;padding:18px!important;border:0!important;border-radius:0!important}
  #root .hlc-auth-brand{padding:0 0 14px!important}
  #root .hlc-auth-card{padding:16px 0 0!important}
  #root .hlc-auth-steps{display:none!important}
  #root .hlc-signed-in-shell .hlc-agent-workspace{padding:16px 16px 112px!important}
  #root .hlc-signed-in-shell .hlc-agent-workspace :is(.hlc-agent-team-header,.hlc-agent-chat-stage,.hlc-agent-action-workbench,.hlc-agent-result-rail>section,.hlc-agent-history,.hlc-agent-handoff){padding:14px 0!important;margin:0!important;border-radius:0!important;border-width:0 0 1px!important}
}
